You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[TASK] Dim the tool-count tick and cross in the sub-agent list when the count is 0 #1498
The sub-agent list stats line (└ 3 ✓ 0 ✗ · 1.2k tokens) always renders the tick in the success color and the cross in the error color, even when the count next to it is 0. A red ✗ next to a 0 reads as "something failed" when nothing did, and a green ✓ next to a 0 is equally misleading. The icons should only take their status color once their count is greater than 0; at 0 they should be rendered in the dim theme color like the token figure next to them.
Where
internal/presentation/tui/components/subagent_list.go - statsView builds the line and hard-codes success / error for icons.CheckMark / icons.CrossMark regardless of stats.ToolsSucceeded / stats.ToolsFailed.
internal/presentation/tui/components/subagent_list_test.go - the existing stats-line assertions (wantLive, want around line 433) compare on plain text, so they keep passing; add a color assertion for the 0 case.
The per-row outcome icon in rowView (one ✓ or ✗ per finished sub-agent) is not a count and should keep its color.
Acceptance Criteria
✓ is rendered in the success color only when ToolsSucceeded > 0, otherwise in the dim color.
✗ is rendered in the error color only when ToolsFailed > 0, otherwise in the dim color.
The counts, spacing and alignment of the stats line are unchanged (existing statsView tests still pass).
A test covers a run with 0 failures and asserts the cross is not rendered in the error color.
The per-sub-agent outcome icon in rowView is unchanged.
changed the title [-][TASK] Make the ticks and x colorful once it's greater than 0[/-][+][TASK] Dim the tool-count tick and cross in the sub-agent list when the count is 0[/+]on Oct 2, 2026
Done. Implementation is pushed and the PR is ready for review.
Change - internal/presentation/tui/components/subagent_list.go, statsView: instead of hard-coding success on the tick and error on the cross, each icon now starts from the dim theme color and only switches to its status color when its own count is positive (ToolsSucceeded > 0, ToolsFailed > 0). Counts, spacing and padding are untouched, so the line keeps its width and alignment. The per-row outcome icon in rowView is a single result rather than a count, so it keeps its color.
Test - TestSubagentListStatsIconsDimAtZero in subagent_list_test.go is table-driven over the four count combinations (both zero, both positive, zero failures, zero successes). It builds the expected line from a real style provider with pinned dim / success / error colors and compares it exactly, which proves the cross of a run with 0 failures does not carry the error color. It skips when the terminal renders no colors, where the assertion would be vacuous.
Checks - task precommit:run passes (tidy, mocks, go fmt, import aliases, golangci-lint 0 issues, markdownlint) and go test ./internal/presentation/tui/components/ -run 'TestSubagentList|TestCompactCount' passes, including the unchanged stats-line assertions.
Activity
[-][TASK] Make the ticks and x colorful once it's greater than 0[/-][+][TASK] Dim the tool-count tick and cross in the sub-agent list when the count is 0[/+]edenreich commentedon Oct 2, 2026
@infer /model deepseek/deepseek-flash can you work on this?
inference-gateway-maintainer commentedon Oct 2, 2026
Model:
deepseek/deepseek-flash· View JobTodos
Pull Request
#1504
✅ Infer Result: Success
Done. Implementation is pushed and the PR is ready for review.
Change -
internal/presentation/tui/components/subagent_list.go,statsView: instead of hard-codingsuccesson the tick anderroron the cross, each icon now starts from thedimtheme color and only switches to its status color when its own count is positive (ToolsSucceeded > 0,ToolsFailed > 0). Counts, spacing and padding are untouched, so the line keeps its width and alignment. The per-row outcome icon inrowViewis a single result rather than a count, so it keeps its color.Test -
TestSubagentListStatsIconsDimAtZeroinsubagent_list_test.gois table-driven over the four count combinations (both zero, both positive, zero failures, zero successes). It builds the expected line from a real style provider with pinneddim/success/errorcolors and compares it exactly, which proves the cross of a run with0failures does not carry theerrorcolor. It skips when the terminal renders no colors, where the assertion would be vacuous.Checks -
task precommit:runpasses (tidy, mocks,go fmt, import aliases, golangci-lint 0 issues, markdownlint) andgo test ./internal/presentation/tui/components/ -run 'TestSubagentList|TestCompactCount'passes, including the unchanged stats-line assertions.Tracking
docs/subagents.mdshows this line but never states the coloring rule: [DOCS] Note the dim-at-zero tool-count icons in the subagents Run Stats section docs#912.Model:
deepseek/deepseek-flash· Exit Code:0· Duration: 5m 42sTokens: 2,491,370 in · 26,656 out · 2,518,026 total (36 requests)
Cost: $0.0479 in · $0.016 out · $0.0639 total
Tool calls: 58 total · 100% success rate
Traces
Stats
Triggered by edenreich · Infer Action · OSS
inference-gateway-releaser commentedon Oct 3, 2026
🎉 This issue has been resolved in version 0.223.0 🎉
The release is available on:
Your semantic-release bot 📦🚀