Skip to content

Preserve raw response usage metadata - #41980

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/6d79b1b4c92ac11abf43ec98f380b4868288a701
Sep 1, 2026
Merged

Preserve raw response usage metadata#41980
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/6d79b1b4c92ac11abf43ec98f380b4868288a701

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 1, 2026

Copy link
Copy Markdown

Preserve raw response usage metadata

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.

## 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
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/6d79b1b4c92ac11abf43ec98f380b4868288a701 branch from f550dab to e017e93 Compare September 1, 2026 05:18
@copyberry
copyberry Bot merged commit e017e93 into main Sep 1, 2026
25 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/6d79b1b4c92ac11abf43ec98f380b4868288a701 branch September 1, 2026 05:19
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 1, 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.