Home

mweinbach / agent-coworker

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

fix: defer server startup readiness work

3 months ago

bb2ea88
Authored
mweinbach7/4/2026, 5:17:25 PM
Start the WebSocket server before managed runtime/bootstrap/prompt preload completes so clients can list/read/hydrate threads during startup.

Run managed runtime setup and default global skill bootstrap concurrently, publish startup readiness through health/diagnostics, and hold turn/start, turn/steer, and command execution until readiness resolves.

Update session warmup to wait for readiness and add regression coverage for health, pending turn admission, command admission, deterministic provider catalogs, and subprocess compatibility under the Bun test harness.

Parent3eccb87

20 files changed
  • docs/diagnostics.md+3−3
  • docs/generated/websocket-jsonrpc.d.ts+1−1
  • docs/generated/websocket-jsonrpc.schema.json+1−1
  • docs/websocket-protocol.md+1−1
  • src/server/jsonrpc/routes/commands.ts+1−0
  • src/server/jsonrpc/routes/turn.ts+2−0
  • src/server/jsonrpc/routes/types.ts+5−0
  • src/server/jsonrpc/schema.runtime.ts+6−0
src/server/runtime/ServerRuntime.ts
+126
−25
  • src/server/runtime/SessionRegistry.ts+32−7
  • src/server/startServer.ts+13−2
  • src/utils/execFileCompat.ts+44−50
  • test/execFileCompat.test.ts+25−97
  • test/fixtures/execFileCompatChild.ts+100−0
  • test/fixtures/subprocessChild.ts+71−0
  • test/jsonrpc.commands-route.test.ts+7−1
  • test/jsonrpc/flow.turnStart.test.ts+58−0
  • test/providers/connection-catalog.test.ts+69−49
  • test/server.test.ts+56−12
  • test/subprocess.test.ts+25−62