test(codex-local): regression for CodexRpcClient spawn ENOENT

Add a Vitest case that mocks `node:child_process.spawn` so the child
emits `error` (ENOENT) after the constructor attaches listeners.
`getQuotaWindows()` must resolve with `ok: false` instead of leaving an
unhandled `error` event on the process.

Register `packages/adapters/codex-local` in the root Vitest workspace.

Document in DEVELOPING.md that a missing `codex` binary should not take
down the API server during quota polling.
This commit is contained in:
Mikhail Batukhtin 2026-03-29 14:41:25 +03:00
parent 01fb97e8da
commit c98af52590
4 changed files with 74 additions and 1 deletions

View file

@ -0,0 +1,7 @@
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
environment: "node",
},
});