Skip to content

fix(tui): show usage and team roster in the collapsed sidebar band from startup#3727

Merged
Sayt-0 merged 1 commit into
mainfrom
fix/sidebar-band-startup-usage-and-roster
Jul 17, 2026
Merged

fix(tui): show usage and team roster in the collapsed sidebar band from startup#3727
Sayt-0 merged 1 commit into
mainfrom
fix/sidebar-band-startup-usage-and-roster

Conversation

@Sayt-0

@Sayt-0 Sayt-0 commented Jul 17, 2026

Copy link
Copy Markdown
Member

With the sidebar rendered as a band (sidebar_position: top or bottom), two pieces of information shown by the vertical sidebar were missing:

Issue Cause Fix
Context/cost absent at startup, only appearing after the first message tokenUsageSummary() returned "" while sessionUsage was empty, unlike the vertical Token Usage tab which always renders The band renders the same usage line unconditionally (◉ 0 $0.00 before any usage); the hide-usage setting is still honored
Team roster not visible when running a multi-agent config agentSummaryCollapsed() showed only the current agent plus a bare +N count The band lists every team agent by name in its accent color, after the current agent and its model

Band rendering, before

 New session
 █ ~/repo (main)
 ▶ root openai/gpt-3.5-turbo +2 · █ 1 tool

Band rendering, after

 New session
 █ ~/repo (main)                                  ◉ 0 $0.00
 ▶ root openai/gpt-3.5-turbo · planner · reviewer · █ 1 tool

Notes

  • CollapsedViewModel.LineCount and RenderCollapsedView derive from the same view model, so the band height accounts for the extra content (including wrapping) with no layout change.
  • Behavior verified end to end with the tuitest harness (top sidebar, simple agent and team) at startup.

Tests

  • TestTokenUsageSummary_Empty replaced by TestTokenUsageSummary_NoUsageYet_ShowsZeroLine (the band now shows the zero line).
  • New TestCollapsedInfoLine_ShowsTeamRoster pins the roster names in the band and the removal of the +N count.

…om startup

The top/bottom sidebar band omitted the token usage line until the first
message and reduced the team to a "+N" count. Render the same usage line
as the vertical Token Usage tab even before any usage is recorded, and
list every team agent by name in its accent color so the roster stays
visible in band mode.
@Sayt-0
Sayt-0 requested a review from a team as a code owner July 17, 2026 16:41
@Sayt-0
Sayt-0 enabled auto-merge July 17, 2026 16:42
@aheritier aheritier added area/tui For features/issues/fixes related to the TUI kind/fix PR fixes a bug (maps to fix:). Use on PRs only. labels Jul 17, 2026
@Sayt-0
Sayt-0 merged commit 66a9488 into main Jul 17, 2026
14 checks passed
@Sayt-0
Sayt-0 deleted the fix/sidebar-band-startup-usage-and-roster branch July 17, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/tui For features/issues/fixes related to the TUI kind/fix PR fixes a bug (maps to fix:). Use on PRs only.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants