fix(tui): compact detailed sidebar metrics - #3858
Merged
Merged
Conversation
trungutt
approved these changes
Jul 28, 2026
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
Eff,Ctx, andCostforms without the decorative effort gauge at constrained and default widthsFixes #3856
Before and after
Effort ▰▰▰▰▱▱ highContext 30% · Cost $0.13Eff high · Ctx 30% · Cost $0.13Effort ▱▱▱▱▱▱ offCtx 6%Cost $0.0042Eff off · Ctx 6%Cost $0.0042The existing issue screenshot captures the visual before state. The table above shows the exact ANSI-stripped rendering pinned by the updated tests; no replacement screenshot is included because the result depends on the active roster and terminal width.
Issue expectations
Eff,Ctx, andCosthigh,off,minimal,auto, and token budgetsValidation
task linttask buildenv -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy task testgo test ./pkg/tui/components/sidebar ./pkg/tui/page/chat -count=1 -racegit diff --checkThe full test suite requires the workspace HTTP proxy variables to be unset because the injected localhost proxy intentionally intercepts private-address requests used by SSRF tests.