-
Notifications
You must be signed in to change notification settings - Fork 72
feat: support previous_response_id in /v1/responses endpoint#10
Open
wonsik-song wants to merge 1 commit into
Open
feat: support previous_response_id in /v1/responses endpoint #10wonsik-song wants to merge 1 commit into
wonsik-song wants to merge 1 commit into
Conversation
Enable stateful conversation history via local CodexResponsesState caching. Requests using previous_response_id are expanded with prior input/output before forwarding upstream; responses are cached locally for subsequent turns. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
cp89cyber
cp89cyber
approved these changes
May 4, 2026
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.
Summary
previous_response_idanditem_referencein/v1/responsesCodexResponsesStateon the server (was hardcoded tofalse), allowing local caching of conversation historyprevious_response_idis present and cached locally, the prior input/output is expanded before forwarding to upstreamprevious_response_idis passed through to upstream as-isTest plan
rejects previous_response_id on the stateless responses endpoint→forwards previous_response_id to upstream when not cached locally7 pass, 0 fail)adb shell curlagainst local server🤖 Generated with Claude Code