diff --git a/lib/providers/anthropic.mjs b/lib/providers/anthropic.mjs index a249990..862bc7e 100644 --- a/lib/providers/anthropic.mjs +++ b/lib/providers/anthropic.mjs @@ -980,7 +980,7 @@ async function* _spawnAndStream(irRequest, authContext, spawnImpl, isolationCtx) console.error(JSON.stringify({ ts: new Date().toISOString(), level: 'warn', event: 'stdin_write_error', error: e.message })); }); } - // OCP server.mjs:586-587: proc.stdin.write(prompt); proc.stdin.end(); + // OCP server.mjs:783-784: proc.stdin.write(prompt); proc.stdin.end(); proc.stdin.write(prompt); proc.stdin.end(); diff --git a/lib/providers/codex.mjs b/lib/providers/codex.mjs index c3aad10..668fe9b 100644 --- a/lib/providers/codex.mjs +++ b/lib/providers/codex.mjs @@ -508,7 +508,7 @@ async function* _spawnAndStream(irRequest, authContext, spawnImpl, isolationCtx) // Guard stdin writes against EPIPE (child may close stdin before we finish // writing — e.g. on auth error, bad model, or oversized prompt). // Port of OCP server.mjs:780. - // Authority: codex CLI Codex CLI reference (https://developers.openai.com/codex/cli/reference) + // Authority: Codex CLI reference (https://developers.openai.com/codex/cli/reference) // observed behaviour — fast-failing spawn closes stdin before OLP finishes writing. // ALIGNMENT.md Rule 2: no CLI operation changed; guard is a Node stream safety net. // The typeof guard protects test-injected mock stdin objects that are plain