Preserve raw response usage metadata - #41980
Merged
copyberry[bot] merged 1 commit intoSep 1, 2026
Merged
Conversation
## What changed - Include the complete upstream `response.usage` object in `ResponseUsageMetadata.metadata` while retaining the existing `amount` field. - Expose the metadata through `rawResponse/completed` notifications and update the generated JSON and TypeScript schemas. ## Testing - Cover SSE, WebSocket, turn, and compaction completion paths. GitOrigin-RevId: 6d79b1b4c92ac11abf43ec98f380b4868288a701
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/6d79b1b4c92ac11abf43ec98f380b4868288a701
branch
from
September 1, 2026 05:18
f550dab to
e017e93
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/6d79b1b4c92ac11abf43ec98f380b4868288a701
branch
September 1, 2026 05:19
chadsmith1973
temporarily deployed
to
issue-triage
September 1, 2026 05:20 — with
GitHub Actions
Inactive
chadsmith1973
temporarily deployed
to
issue-triage
September 1, 2026 05:20 — with
GitHub Actions
Inactive
chadsmith1973
temporarily deployed
to
issue-triage
September 1, 2026 05:20 — with
GitHub Actions
Inactive
samuelwupd2000-cpu
temporarily deployed
to
issue-triage
September 1, 2026 05:37 — with
GitHub Actions
Inactive
samuelwupd2000-cpu
temporarily deployed
to
issue-triage
September 1, 2026 05:37 — with
GitHub Actions
Inactive
samuelwupd2000-cpu
temporarily deployed
to
issue-triage
September 1, 2026 05:37 — with
GitHub Actions
Inactive
samuelwupd2000-cpu
temporarily deployed
to
issue-triage
September 1, 2026 05:39 — with
GitHub Actions
Inactive
caseclose
temporarily deployed
to
issue-triage
September 1, 2026 06:07 — with
GitHub Actions
Inactive
caseclose
temporarily deployed
to
issue-triage
September 1, 2026 06:07 — with
GitHub Actions
Inactive
caseclose
temporarily deployed
to
issue-triage
September 1, 2026 06:07 — with
GitHub Actions
Inactive
mriamnobody
temporarily deployed
to
issue-triage
September 1, 2026 06:12 — with
GitHub Actions
Inactive
mriamnobody
temporarily deployed
to
issue-triage
September 1, 2026 06:12 — with
GitHub Actions
Inactive
mriamnobody
temporarily deployed
to
issue-triage
September 1, 2026 06:12 — with
GitHub Actions
Inactive
imyaruzhao
temporarily deployed
to
issue-triage
September 1, 2026 06:16 — with
GitHub Actions
Inactive
cherish-ltt
temporarily deployed
to
issue-triage
September 1, 2026 06:36 — with
GitHub Actions
Inactive
cherish-ltt
temporarily deployed
to
issue-triage
September 1, 2026 06:36 — with
GitHub Actions
Inactive
cherish-ltt
temporarily deployed
to
issue-triage
September 1, 2026 06:38 — with
GitHub Actions
Inactive
silvermanphoto
temporarily deployed
to
issue-triage
September 1, 2026 06:40 — with
GitHub Actions
Inactive
silvermanphoto
temporarily deployed
to
issue-triage
September 1, 2026 06:40 — with
GitHub Actions
Inactive
silvermanphoto
temporarily deployed
to
issue-triage
September 1, 2026 06:40 — with
GitHub Actions
Inactive
silvermanphoto
temporarily deployed
to
issue-triage
September 1, 2026 06:41 — with
GitHub Actions
Inactive
hongyi-yang
temporarily deployed
to
issue-triage
September 1, 2026 06:48 — with
GitHub Actions
Inactive
hongyi-yang
temporarily deployed
to
issue-triage
September 1, 2026 06:48 — with
GitHub Actions
Inactive
hongyi-yang
temporarily deployed
to
issue-triage
September 1, 2026 06:48 — with
GitHub Actions
Inactive
bloodcarter
temporarily deployed
to
issue-triage
September 1, 2026 06:49 — with
GitHub Actions
Inactive
bloodcarter
temporarily deployed
to
issue-triage
September 1, 2026 06:49 — with
GitHub Actions
Inactive
bloodcarter
temporarily deployed
to
issue-triage
September 1, 2026 06:49 — with
GitHub Actions
Inactive
hongyi-yang
temporarily deployed
to
issue-triage
September 1, 2026 06:49 — with
GitHub Actions
Inactive
bloodcarter
temporarily deployed
to
issue-triage
September 1, 2026 06:50 — with
GitHub Actions
Inactive
xftxyz2001
temporarily deployed
to
issue-triage
September 1, 2026 07:08 — with
GitHub Actions
Inactive
xftxyz2001
temporarily deployed
to
issue-triage
September 1, 2026 07:08 — with
GitHub Actions
Inactive
xftxyz2001
temporarily deployed
to
issue-triage
September 1, 2026 07:08 — with
GitHub Actions
Inactive
okdesignops
temporarily deployed
to
issue-triage
September 1, 2026 07:12 — with
GitHub Actions
Inactive
okdesignops
temporarily deployed
to
issue-triage
September 1, 2026 07:12 — with
GitHub Actions
Inactive
okdesignops
temporarily deployed
to
issue-triage
September 1, 2026 07:12 — with
GitHub Actions
Inactive
okdesignops
temporarily deployed
to
issue-triage
September 1, 2026 07:13 — with
GitHub Actions
Inactive
Kiborgik
temporarily deployed
to
issue-triage
September 1, 2026 07:18 — with
GitHub Actions
Inactive
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Preserve raw response usage metadata
What changed
response.usageobject inResponseUsageMetadata.metadatawhile retaining the existingamountfield.rawResponse/completednotifications and updatethe generated JSON and TypeScript schemas.
Testing