Home

mweinbach / agent-coworker

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

test: harden subprocess fixtures and timeouts for Windows

2 months ago

7fd2736
Authored
Max Weinbach7/14/2026, 2:30:53 AM
- Mock codex app-server scripts now exit on stdin close instead of holding
  a setInterval keepalive; Bun's orphan reaper is Linux/macOS-only, so
  abnormal teardown previously left node.exe zombies on Windows.
- Nested bun-test spawns get explicit 60s test timeouts, 55s spawn
  timeouts, and try/finally kills so trees are reaped on outer failure.
- The three JSON-RPC replay flow files now apply the 45s timeout they
  imported but never used; Bun's 5s default was killing tests before the
  harness's own 15s diagnostic wait could fire.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Parent401bd97

8 files changed
  • test/execFileCompat.test.ts+34−19
  • test/fixtures/codexAppServerMock.ts+5−1
  • test/jsonrpc/flow.threads.test.ts+15−5
  • test/jsonrpc/flow.turnStart.test.ts+45−15
  • test/jsonrpc/flow.turnSteer.test.ts+33−11
  • test/mcp.local.integration.test.ts+42−22
  • test/runtime.codex-app-server.test.ts+129−139
  • test/subprocess.test.ts+36−21