gut(agents): replace default-agent display ordering with list-order semantics#2286
Merged
alexey-pelykh merged 2 commits intomainfrom Apr 11, 2026
Merged
Conversation
…emantics (#1580) Remove the `isDefault` field from `AgentSummary` and `AgentHealthSummary`, replace default-agent-first ordering with `agents.list` order, and strip all "(default)" badges from display output across CLI, health, TUI, and Web UI. Empty agent lists now show "no agents configured" instead of a phantom default. The `summaryIsDefault` provider-listing flag becomes `isSoleAgent` so the sole configured agent still shows all providers. Security fix now scans the filesystem for agent directories in addition to configured agents, ensuring permissions are tightened for all existing agent state regardless of config presence. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
9ff8d86 to
c5efe9a
Compare
c5efe9a to
15e7ec9
Compare
This was referenced Apr 24, 2026
alexey-pelykh
added a commit
that referenced
this pull request
Apr 24, 2026
…#2555) 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>
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
isDefaultfield fromAgentSummary,AgentHealthSummary, and all UI types — agents now display inagents.listorder with no special "default" marker(default)/[default]badges from all display output: health, agents list, TUI, channels add, Web UI agent panels and nodessummaryIsDefaultprovider-listing flag withisSoleAgent— sole configured agent still shows all providersCloses #1580
Test plan
npx tsgo --noEmit)pnpm lint)pnpm format)resolveDefaultAgentIdreferences remain in any listed fileisDefaultagent references remain in display output🤖 Generated with Claude Code