Skip to content

core: preserve last model ids in feedback tags#21026

Merged
sayan-oai merged 1 commit into
mainfrom
codex/feedback-last-request-id
May 4, 2026
Merged

core: preserve last model ids in feedback tags#21026
sayan-oai merged 1 commit into
mainfrom
codex/feedback-last-request-id

Conversation

@sayan-oai
Copy link
Copy Markdown
Collaborator

@sayan-oai sayan-oai commented May 4, 2026

Why

Feedback reports do not currently surface a direct pointer to the last model call, so investigations may require searching through many requests in a session to find the bad response. Preserve the last model-side IDs at response-stream time so immediate feedback reports carry that breadcrumb.

What changed

  • Record last_model_request_id when a Responses stream exposes an upstream request ID.
  • Record last_model_response_id when the model response completes.
  • Add unit coverage for the emitted feedback tags.

Verification

  • cargo test -p codex-core client::tests::response_stream_records_last_model_feedback_ids

@sayan-oai sayan-oai changed the title core: preserve model ids in feedback tags core: preserve last model ids in feedback tags May 4, 2026
@sayan-oai sayan-oai marked this pull request as ready for review May 4, 2026 16:44
@sayan-oai sayan-oai requested a review from a team as a code owner May 4, 2026 16:44
@sayan-oai sayan-oai merged commit 8126af3 into main May 4, 2026
26 checks passed
@sayan-oai sayan-oai deleted the codex/feedback-last-request-id branch May 4, 2026 19:46
@github-actions github-actions Bot locked and limited conversation to collaborators May 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants