Repository navigation
Add per-thread usage queries to the backend client - #38270
Merged
copyberry[bot] merged 1 commit intoAug 12, 2026
Merged
copyberry[bot] merged 1 commit into
copyberry[bot] merged 1 commit into
Conversation
## What changed - Add `Client::get_thread_usage` for querying authoritative estimated credit and dollar usage for a thread across both supported backend path styles. - Expose usage totals and optional model, reasoning effort, speed, and token breakdowns through `ThreadUsage` and `ThreadUsageBreakdownGroup`. - Reject responses that do not include the requested thread. ## Testing - Cover endpoint paths, request serialization, complete and partial usage responses, and mismatched thread IDs. GitOrigin-RevId: 16c83590b2c804e0182b4493cf2aa39206029c77
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/16c83590b2c804e0182b4493cf2aa39206029c77
branch
from
August 12, 2026 22:59
3fc51dc to
842fae2
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/16c83590b2c804e0182b4493cf2aa39206029c77
branch
August 12, 2026 23:00
willyansete7
temporarily deployed
to
issue-triage
August 12, 2026 23:01 — with
GitHub Actions
Inactive
willyansete7
temporarily deployed
to
issue-triage
August 12, 2026 23:01 — with
GitHub Actions
Inactive
willyansete7
temporarily deployed
to
issue-triage
August 12, 2026 23:01 — with
GitHub Actions
Inactive
willyansete7
temporarily deployed
to
issue-triage
August 12, 2026 23:02 — with
GitHub Actions
Inactive
This branch was previously deployed
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.
Add per-thread usage queries to the backend client
What changed
Client::get_thread_usagefor querying authoritative estimated creditand dollar usage for a thread across both supported backend path styles.
breakdowns through
ThreadUsageandThreadUsageBreakdownGroup.Testing
responses, and mismatched thread IDs.