Home

mweinbach / agent-coworker

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

fix(jsonrpc): stabilize reconnects and large journal reads

7 months ago

cf07d06
Authored
mweinbach3/22/2026, 5:33:05 PM
Add handshake timeouts and query-mode fallback so JSON-RPC sockets recover quickly when Bun subprotocol negotiation stalls. Batch journal persistence and replay, and lower CI test concurrency to keep the full suite stable under Bun.

Made-with: Cursor

Parentf6d7b21

13 files changed
  • .github/workflows/ci.yml+1−1
  • apps/desktop/src/app/store.helpers/controlSocket.ts+5−0
  • apps/desktop/src/app/store.helpers/jsonRpcSocket.ts+5−0
  • apps/desktop/test/jsonrpc-single-connection.test.ts+4−4
  • src/client/jsonRpcSocket.ts+191−22
  • src/server/jsonrpc/routes/threadAndTurn.ts+29−6
  • src/server/jsonrpc/threadReadProjector.ts+22−9
  • src/server/sessionDb.ts+14−0
  • src/server/sessionDb/repository.ts+43−21
  • src/server/startServer.ts+86−43
  • test/jsonrpcSocket.runtime.test.ts+79−8
  • test/server.jsonrpc.test.ts+2−2
  • test/session-db.test.ts+4−4