Repository navigation
test(proxies): pin cached_tokens for codex CLI transport and commandcode ACP (#3114) - #3127
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 4 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review SummaryThis 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. |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3114. Queue task 4536 (follow-up to triage task 4535, which verified the gap on main
ada2d88a).What
Test-only change pinning the two
prompt_tokens_details.cached_tokensemission paths PR #2164 left unpinned:cached_input_tokens: 93surfaces asusage.prompt_tokens_details.cached_tokensin both the non-streaming response and the streaming end chunk; the resumed turn (stub usage has no cached value) assertsprompt_tokens_detailsis omitted entirely.cacheReadTokens) drivessession/promptusage withcacheReadTokens: 77and assertscached_tokens: 77non-streaming and streaming, plus omission when the ACP result carries no cache value.No proxy logic touched.
Verification (laptop)
bin/commandcode-proxy.test.mjs: 2/2 pass (existing + new).bin/codex-proxy.test.mjs: the codex suite cannot run against the stub on this NixOS laptop —findCodexBinaryprefers/run/current-system/sw/bin/codexover$HOME/.local/bin/codex, so the proxy runs the real CLI (401s). Verified instead in a mount namespace with/run/current-systemmasked (CI-like): new test +successful run is unchangedpass; full-file failure set is byte-identical to clean main (10 masked-env artifacts, pre-existing). CI should be authoritative for this file.Observation (not fixed here, out of scope): that candidate order makes the codex-proxy suite un-runnable on NixOS dev machines — worth a follow-up issue if the fleet wants laptop-runnable proxy tests.
Need help on this PR? Tag
@codesmith-botwith what you need.