From 2963547a98c5f2a79f05a9e99109fe3832252640 Mon Sep 17 00:00:00 2001 From: dtzp555 Date: Sun, 31 May 2026 17:25:08 +1000 Subject: [PATCH] docs(providers): fix review-noted comment nits (dup token + OCP line-ref 783-784) Independent review (Iron Rule 10) findings 1+2, both non-blocking comment-only. Co-Authored-By: Claude --- lib/providers/anthropic.mjs | 2 +- lib/providers/codex.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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