Repository navigation
feat(tui): show session tokens and cache rate in the footer - #364
Merged
Merged
Conversation
Replace the unused footer flag / change-count slot with session API totals and a prompt-cache hit rate. Keep the context bar. Show `0 · —` until the provider reports prompt tokens.
The usage slot is wider than the old flag, so the 60-col fixture middle-truncates `mymodel` past the old `odel` substring.
mohitranka
added a commit
that referenced
this pull request
Aug 21, 2026
* feat(tui): show session tokens and cache rate in the footer Replace the unused footer flag / change-count slot with session API totals and a prompt-cache hit rate. Keep the context bar. Show `0 · —` until the provider reports prompt tokens. * test(tui): accept a shorter model tail on the narrow footer The usage slot is wider than the old flag, so the 60-col fixture middle-truncates `mymodel` past the old `odel` substring.
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
* feat(tui): show session tokens and cache rate in the footer Replace the unused footer flag / change-count slot with session API totals and a prompt-cache hit rate. Keep the context bar. Show `0 · —` until the provider reports prompt tokens. * test(tui): accept a shorter model tail on the narrow footer The usage slot is wider than the old flag, so the 60-col fixture middle-truncates `mymodel` past the old `odel` substring.
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
* feat(tui): show session tokens and cache rate in the footer Replace the unused footer flag / change-count slot with session API totals and a prompt-cache hit rate. Keep the context bar. Show `0 · —` until the provider reports prompt tokens. * test(tui): accept a shorter model tail on the narrow footer The usage slot is wider than the old flag, so the 60-col fixture middle-truncates `mymodel` past the old `odel` substring.
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 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.
Summary
⚑/N changesslot with session token usage and cache hit rate.12.4k · 81% cache, or0 · —until the provider reports prompt tokens.prompt + completion. Rate iscache_read / prompt_tokens.prompt_tokens/completion_tokensso the footer does not walk the transcript each frame.Why
The right-hand slot was an inert flag, or a change count that hid anything else the moment the tree was dirty. Session spend and cache already exist on
SessionTokenUsagebut only showed up in/statusand on exit.Test plan
cargo test --package forge-tui --lib --locked -- footer activity theme::light_themecargo test --package forge-session --lib --locked -- snapshotcargo clippy --package forge-tui --package forge-session --all-targets --locked -- -D warnings