Show estimated thread usage in /status - #38281
Merged
copyberry[bot] merged 1 commit intoAug 13, 2026
Merged
Conversation
## What changed - Extend `account/usage/read` with an optional `threadId` request and a backward-compatible `threadUsage` response containing estimated credits, optional USD cost, and model, reasoning, speed, and token breakdowns. - Fetch thread usage for eligible Business and Enterprise plans when `/status` is opened, then update the rendered status card asynchronously. - Preserve terminal scrollback when replacing a visible status-card tail, and append a refreshed card when the original tail can no longer be updated. ## Testing - Add app-server coverage for authentication, canonical thread IDs, unavailable billing routes, and malformed IDs. - Add TUI coverage for usage formatting, stale responses, retries, history updates, terminal reflow, and scrollback preservation. GitOrigin-RevId: 49300914b3fba917c0f08e8595363e04e5ba6d37
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/49300914b3fba917c0f08e8595363e04e5ba6d37
branch
from
August 13, 2026 00:30
74abb25 to
f1a1fce
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/49300914b3fba917c0f08e8595363e04e5ba6d37
branch
August 13, 2026 00:32
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.
Show estimated thread usage in
/statusWhat changed
account/usage/readwith an optionalthreadIdrequest and abackward-compatible
threadUsageresponse containing estimated credits,optional USD cost, and model, reasoning, speed, and token breakdowns.
/statusis opened, then update the rendered status card asynchronously.
append a refreshed card when the original tail can no longer be updated.
Testing
unavailable billing routes, and malformed IDs.
updates, terminal reflow, and scrollback preservation.