Repository navigation
fix(codex): strip server-generated IDs from response items in input to prevent 404 errors #1397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
diegosouzapw
merged 7 commits into
cheaper-inference:release/v3.6.9
from
Gi99lin:fix/codex-prompt-caching-alignment
Apr 18, 2026
Merged
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
be22f30
feat(codex): align prompt caching with official openai/codex client
Gi99lin 5731ecf
fix(docker): copy postinstallSupport.mjs before npm ci in Dockerfile
Copilot 5f7032d
fix(codex): don't force store=false or delete previous_response_id
Gi99lin 42a4596
fix(codex): default store=true for proxy clients
Gi99lin c32164b
fix(codex): strip stored response item references from input
Gi99lin be1b9ed
fix(codex): strip server-generated IDs from input items (not just refs)
Gi99lin 3e66ffc
fix(codex): revert regex typo in getResponsesSubpath
Gi99lin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The regular expression contains a typo:
?(two spaces and a question mark) has been added at the end. This will cause the match to fail for standard endpoint paths like/responsesor/responses/compactbecause it will expect trailing spaces in the URL. It should be reverted to the original?to correctly match the optional subpath.