Uh oh!
There was an error while loading. Please reload this page.
feat(opencode): display cached token count inline in TUI - #23111
Open
bainos wants to merge 1 commit into
Open
Conversation
bainos
commented
Apr 17, 2026
ContributorAuthor
bainosforce-pushed
the
feat/tui-cache-display
branch
2 times, most recently
from
April 29, 2026 12:26
3c3107e to
d686247Comparebainosforce-pushed
the
feat/tui-cache-display
branch
2 times, most recently
from
May 4, 2026 21:55
94ddc20 to
cc89ae1Comparebainosforce-pushed
the
feat/tui-cache-display
branch
from
May 8, 2026 06:13
cc89ae1 to
45b3bb3Comparebainosforce-pushed
the
feat/tui-cache-display
branch
from
May 27, 2026 20:30
45b3bb3 to
1fcb807CompareShows cache tokens inline when non-zero: - Sidebar context: "68,356 tokens (12.5K cached)" - Subagent footer: same format with percentage - Prompt footer: same format with percentage Implementation: - Extract cached tokens separately before summing - Show only when cached > 0 to reduce noise - Use existing Locale.number() for consistent formatting - Applied to all 3 TUI locations that display token usage
bainosforce-pushed
the
feat/tui-cache-display
branch
from
June 17, 2026 05:47
1fcb807 to
159bbd1CompareHi everyone, any updates on this? |
6 tasks
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 freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
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.


Issue for this PR
Closes#23109
Type of change
What does this PR do?
Shows `(N cached)` inline next to the token count in the sidebar context panel, prompt footer, and subagent footer when `cache.read + cache.write > 0`. No change when zero.
How did you verify your code works?
Tested locally with Bedrock Sonnet 4.6. See screenshot below.
Checklist