Skip to content

gut(ui): strip residual 'default' agent pill badge — #2529 F3 (#2550)#2555

Merged
alexey-pelykh merged 1 commit intomainfrom
gut/ui-default-agent-badge-2550
Apr 24, 2026
Merged

gut(ui): strip residual 'default' agent pill badge — #2529 F3 (#2550)#2555
alexey-pelykh merged 1 commit intomainfrom
gut/ui-default-agent-badge-2550

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

Fixes #2550. Removes the residual bare-text .agent-pill rendering the
word "default" in the agents sidebar list and agent header, completing
the dead-code strip that #2286 started. #2286 stripped the
(default) / [default] bracketed forms but left this pill variant in
place.

Changes

  • Delete agentBadgeText() from ui/src/ui/views/agents-utils.ts
  • Remove the two call sites in ui/src/ui/views/agents.ts that
    consumed its output (agents list iteration + agent header meta row)
  • Remove the now-dead defaultId parameter from buildAgentContext,
    renderAgentHeader, and renderAgentOverview (pure pass-through —
    only fed agentBadgeText)

Preserved (explicit — per #2550 caveats):

  • .agent-pill base CSS class and .agent-pill.warn variant — still
    used at agents-panels-status-files.ts:447 for the "missing"
    indicator
  • Backend defaultId data flow for agent pre-selection —
    app-settings.ts:220, app-render.ts:117/155/569, app-chat.ts,
    src/commands/status.agent-local.ts are untouched
  • Selection-fallback use of defaultId at agents.ts:89-90

Scope note

Issue #2550's scope table references agents-utils.ts:242 for defaultId
param removal, but line 242 there is defaultModel?: unknown in
resolveEffectiveModelFallbacks — unrelated and live. Treated as a
line-number typo; the intended second defaultId param is
renderAgentHeader's at agents.ts:242. Handled.

Diff: 16 deletions, 0 additions across 2 files.

Test plan

Related: #2529 (parent audit), #2286 (prior partial gut).

🤖 Generated with Claude Code

Remove `agentBadgeText` function and its two call sites that rendered a
bare-text `.agent-pill` for `agentId === defaultId`. #2286 stripped the
`(default)` / `[default]` bracketed forms but left this bare pill variant
in place.

- Delete `agentBadgeText` from `ui/src/ui/views/agents-utils.ts`
- Remove the now-dead `defaultId` parameter from `buildAgentContext`,
  `renderAgentHeader`, and `renderAgentOverview` (pass-through only,
  previously fed `agentBadgeText`)
- Preserve the `.agent-pill` base class and `.agent-pill.warn` variant —
  still used by the "missing" indicator at
  `agents-panels-status-files.ts:447`
- Preserve the backend `defaultId` data flow used for agent
  pre-selection (`app-settings.ts`, `app-render.ts`, `app-chat.ts`,
  `src/commands/status.agent-local.ts`) — only the visual pill is
  removed

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@alexey-pelykh alexey-pelykh merged commit 16f3c9c into main Apr 24, 2026
16 checks passed
@alexey-pelykh alexey-pelykh deleted the gut/ui-default-agent-badge-2550 branch April 24, 2026 15:59
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.

gut(ui): strip residual 'default' agent badge from agents list (#2529 F3)

1 participant