Skip to content

feat(agents): color the agent status dot as a traffic light#71

Closed
Junyi-99 wants to merge 1 commit into
mainfrom
feature/agent-status-colors
Closed

feat(agents): color the agent status dot as a traffic light#71
Junyi-99 wants to merge 1 commit into
mainfrom
feature/agent-status-colors

Conversation

@Junyi-99

Copy link
Copy Markdown
Member

What

The Agents tab already showed a status glyph before each agent ( working / idle / waiting / · unknown) but drew it in the default text color. This tints the glyph as a traffic light:

  • 🟢 green = actively working
  • 🔴 red = not working (idle)
  • 🟡 yellow = waiting for the user
  • gray = unknown

Shape and color always agree, so the cue still works for colorblind users and on monochrome terminals.

How

The render path wraps the sectioned-list's basic_style in a closure and, on the Agents tab, recolors only the leading glyph span of each agent row (recolor_agent_dot). Focus/bold styling and the location text are untouched; project rows and placeholder rows (no agents / detecting…) pass through unchanged. Colors come from the theme's semantic success / error / warning / dim slots, so every theme gets sensible values. No dependency change — the color is derived from the glyph the model already picks.

Test

cargo build, cargo clippy clean; cargo test 421 passing.

🤖 Generated with Claude Code

The Agents-tab status glyph already encoded state by shape (●○◐·) but
rendered in the default text color. Tint it: green = working, red = not
working (idle), yellow = waiting for the user, gray = unknown.

Wrap the sectioned-list render in a closure over `basic_style` and
recolor only the leading glyph span on agent rows, leaving focus/bold
styling and the location text untouched. Project rows pass through
unchanged. No crate change — the dot color is derived from the existing
glyph, so shape and color always agree.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Junyi-99 Junyi-99 closed this Jun 14, 2026
@Junyi-99 Junyi-99 deleted the feature/agent-status-colors branch June 14, 2026 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant