Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix(desktop): hydrate jsonrpc control state before diffing defaults

7 months ago

f85e00c
Authored
mweinbach3/22/2026, 2:43:08 PM
Add a JSON-RPC cowork/session/state/read control method so desktop bootstrap can hydrate the workspace control session's provider/model, session settings, and editable config before computing workspace-default diffs.

Restore truthful control-socket waiter diagnostics by tracking in-flight waits for control session readiness, workspace session listing, and session snapshot reads.

Keep the local workspace runtime in sync after workspace default applies so repeated saves do not resend redundant cowork/session/defaults/apply calls.

Update schema/docs/generated JSON-RPC artifacts and add focused desktop/server regressions covering bootstrap hydration, bundled legacy event envelopes, waiter accounting, and no-op workspace resaves.

Parentfa02ecd

11 files changed
  • apps/desktop/src/app/store.actions/workspaceDefaults.ts+28−1
  • apps/desktop/src/app/store.helpers/controlSocket.ts+175−72
  • apps/desktop/test/control-socket.test.ts+119−0
  • apps/desktop/test/jsonrpc-single-connection.test.ts+4−0
  • apps/desktop/test/workspace-settings-sync.test.ts+136−4
  • docs/generated/websocket-jsonrpc.d.ts+4−2
  • docs/generated/websocket-jsonrpc.schema.json+99−0
docs/websocket-protocol.md
+3
−0
  • src/server/jsonrpc/schema.ts+9−0
  • src/server/startServer.ts+31−0
  • test/server.jsonrpc.control.test.ts+28−0