Home

mweinbach / agent-coworker

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

fix(desktop): teardown JSON-RPC workspace state on removeWorkspace

7 months ago

9ba88df
Authored
mweinbach3/22/2026, 6:36:34 PM
- Add disposeWorkspaceJsonRpcState and call it only from removeWorkspace
- Clear jsonRpcSocket/controlSocket/threadEventReducer per-workspace maps and
  block late async work after permanent deletion
- Reject skill install waiters when control state is disposed without store refs
- Extend workspace-settings-sync tests for teardown vs restart semantics

Made-with: Cursor

Parent0579dab

6 files changed
  • apps/desktop/src/app/store.actions/workspace.ts+2−0
  • apps/desktop/src/app/store.helpers.ts+19−1
  • apps/desktop/src/app/store.helpers/controlSocket.ts+117−0
  • apps/desktop/src/app/store.helpers/jsonRpcSocket.ts+46−1
  • apps/desktop/src/app/store.helpers/threadEventReducer.ts+97−0
  • apps/desktop/test/workspace-settings-sync.test.ts+149−6