nexus/packages
Mikhail Batukhtin 01fb97e8da fix(codex-local): handle spawn error event in CodexRpcClient
When the `codex` binary is absent from PATH, Node.js emits an `error`
event on the ChildProcess. Because `CodexRpcClient` only subscribed to
`exit` and `data` events, the `error` event was unhandled — causing
Node to throw it as an uncaught exception and crash the server.

Add an `error` handler in the constructor that rejects all pending RPC
requests and clears the queue. This makes a missing `codex` binary a
recoverable condition: `fetchCodexRpcQuota()` rejects, `getQuotaWindows()`
catches the error and returns `{ ok: false }`, and the server stays up.

The fix mirrors the existing pattern in `runChildProcess`
(packages/adapter-utils/src/server-utils.ts) which already handles
`ENOENT` the same way for the main task execution path.
2026-03-29 14:20:55 +03:00
..
adapter-utils feat(hermes): upgrade hermes-paperclip-adapter + UI adapter + skills + detectModel 2026-03-28 01:34:48 +01:00
adapters fix(codex-local): handle spawn error event in CodexRpcClient 2026-03-29 14:20:55 +03:00
db Add the inbox mine tab and archive flow 2026-03-26 16:09:43 -05:00
plugins fix: add npm provenance package metadata 2026-03-17 16:01:48 -05:00
shared Merge pull request #1655 from paperclipai/pr/pap-795-company-portability 2026-03-23 19:45:05 -05:00