Home

mweinbach / agent-coworker

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

fix(desktop): discard stale workspace responses

4 weeks ago

1241c38
Authored
mweinbach8/27/2026, 11:53:05 PM
Keep session refreshes owned by the latest request and reject replies from replaced sockets. Bootstrap shares an initiating read, survives caller cancellation, and cannot reclaim a disposed workspace or report readiness before queued bootstrap work finishes.

Added delayed-response, cold-connection, cancellation, replay, and disposal regressions. The unchanged real WebSocket integration and full project test suite pass.

Parentfa6e55f

5 files changed
  • apps/desktop/src/app/store.helpers/controlSocket.ts+61−23
  • apps/desktop/src/app/store.helpers/jsonRpcSocket.ts+7−2
  • apps/desktop/test/control-socket.lifecycle.test.ts+384−0
  • apps/desktop/test/control-socket.sessions.test.ts+85−0
  • apps/desktop/test/jsonrpc-single-connection.test.ts+0−4