Home

mweinbach / agent-coworker

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

fix: wait for JSON-RPC turn request acceptance

7 months ago

49b5c3b
Authored
mweinbach3/22/2026, 1:28:37 PM
Make turn/start and turn/steer wait for the first real session outcome before replying so JSON-RPC callers do not get guessed success payloads while the session is still deciding whether to accept the request.

Use the existing session-event capture helper to promote session_busy and steer_accepted into request results, convert session-level rejections into JSON-RPC errors, add focused server-flow regressions, and record the verification evidence in tasks/todo.md.

Parentf2ec5cc

3 files changed
  • src/server/startServer.ts+66−6
  • tasks/todo.md+12−0
  • test/server.jsonrpc.flow.test.ts+125−0