Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: support previous_response_id in /v1/responses endpoint#10

Open
wonsik-song wants to merge 1 commit into
EvanZhouDev:main from
wonsik-song:feat/previous-response-id-support
Open

feat: support previous_response_id in /v1/responses endpoint #10
wonsik-song wants to merge 1 commit into
EvanZhouDev:main from
wonsik-song:feat/previous-response-id-support

Conversation

@wonsik-song

@wonsik-song wonsik-song commented Apr 20, 2026

Copy link
Copy Markdown

Summary

  • Remove the 400 error guard that rejected previous_response_id and item_reference in /v1/responses
  • Enable CodexResponsesState on the server (was hardcoded to false), allowing local caching of conversation history
  • When previous_response_id is present and cached locally, the prior input/output is expanded before forwarding to upstream
  • When not cached, the previous_response_id is passed through to upstream as-is

Test plan

  • Updated existing test rejects previous_response_id on the stateless responses endpointforwards previous_response_id to upstream when not cached locally
  • Verified all server tests pass (7 pass, 0 fail)
  • Manually tested via adb shell curl against local server

🤖 Generated with Claude Code

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer

@cp89cyber cp89cyber cp89cyber approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /