Repository navigation
fix(claude): cache the GPT-6.2 system prompt on Codex login - #9019
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
✅ Deterministic PR hygiene checks passed. |
✅ READY
Review readiness checklist
✅ 4/4 boxes ticked. This pull request is already Ready for Review. Hygiene✅ Deterministic PR hygiene checks passed. |
…locale Review follow-up for lidge-jun#9019. The placement paragraph moves from structure/data-planes/inbound-compat.md (which it pushed to 606 of 600 lines) to structure/providers/codex-installation-identity.md, an owner of src/adapters/openai-responses/passthrough.ts. The es, fr, ja, ko, ru, tr, zh-cn and zh-tw Claude Code guides get the same table rows as English: the GPT-6.2 Sol/Astra system-prompt placement and messages[].role "system" translated to developer messages in place. The endpoint test adds a GPT-6.2 request without a system prompt, which must send no instructions and prepend nothing.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Maintainer integration into
This is maintainer integration, not an independent approval. |
Summary
Verification
Live cache check
Paired replays of three requests produced by Claude Code 2.1.329 in one tool-free session, using GPT-6.2 Sol via Codex Login. Each pair shared the same system text and conversation, with a separate cache key per variant. The top-level system prompt stayed stable across all three turns. Counts are cached input tokens / total input tokens, as reported by the Responses API.
Local checks
bun run typecheckpassed with Bun 1.4.4.bun test --test-name-pattern 'carries cache affinity and system placement' tests/claude-integration/claude-messages-endpoint.test.tspassed all 3 cases for GPT-6.2 Sol, Astra, and the GPT-6.1 control.bun test --isolate --parallel=2 tests/claude-integration/claude-inbound-cache-stabilize.test.ts tests/claude-integration/claude-tool-loading-destinations.test.ts tests/claude-integration/claude-native-fast-1m-ingress.test.tspassed all 66 tests.bun run privacy:scanandgit diff --check upstream/dev...HEADpassed.bun run test:changedrun on the original fork base reached the 900-second timeout (exit 124) after reporting 73 failed tests. Local validation on this branch covers the focused checks above.Maintainer follow-up (review round)
structure/data-planes/inbound-compat.md(it had reached 606 of 600 lines and failedstructure:check) tostructure/providers/codex-installation-identity.md, an owner ofsrc/adapters/openai-responses/passthrough.ts.instructions, nothing prepended); the placement test now has 4 cases and fails 2 of them onorigin/dev's adapter.dev. On the merged head:bun run typecheck,bun run structure:checkandbun scripts/file-size-ratchet.tsexit 0;claude-messages-endpoint+claude-inbound-cache-stabilizewith--isolate106 pass; docs parity tests 445 pass. Independent review: APPROVE-WITH-NITS, nit fixed.Checklist
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
Required local validation passed; commands, results, and any full-suite exception are documented.
I pushed my PR to a recent dev commit (at most 10 behind; a maintainer may still ask for the exact tip before merge).
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.
Summary by CodeRabbit