Home

mweinbach / agent-coworker

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

refactor: run codex app-server over Bun.spawn streaming subprocess

3 months ago

e067a28
Authored
Cursor Agent7/1/2026, 11:09:58 PM
Phase 5 of the Bun-native migration. spawnCodexAppServer returns a
StreamingSubprocess; the JSON-RPC client parses NDJSON stdout via
subscribeLines instead of node:readline, writes stdin through the Bun
FileSink, and keeps the SIGTERM-then-SIGKILL stop escalation. Resolver
version/help probes and tar extraction move to execFileCompat (SIGKILL on
probe timeout preserved via the new killSignal option).

Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>

Parent781741c

4 files changed
  • src/providers/codexAppServerClient.ts+50−46
  • src/providers/codexAppServerResolver.ts+30−47
  • src/utils/execFileCompat.ts+4−2
  • test/providers/codex-app-server-client.test.ts+2−5