Context
Health checks, agent summaries, security audits, gateway init, and TUI use the default agent for ordering and as a display anchor. Post-gut, display order should follow agents.list order — first configured is first displayed, no special "default" marker.
Depends on #1575 (schema field removal).
What
- Replace default-agent-first ordering with list-order semantics across all display sites
- Remove any "default" badges/markers from health, status, TUI output
- Empty agent list → show "no agents configured" instead of phantom default
Acceptance Criteria
Files
src/commands/health.ts, src/commands/agents.config.ts
src/security/fix.ts, src/security/audit-extra.async.ts
src/gateway/server.impl.ts, src/gateway/server/health-state.ts
src/gateway/hooks.ts, src/gateway/assistant-identity.ts
src/tui/tui.ts
src/commands/agents.commands.identity.ts, src/commands/agents.commands.bind.ts
src/telegram/bot.ts, src/telegram/bot-handlers.ts
src/commands/agents.commands.list.ts — formats the (default) tag (lines 23, 102–103, 107)
src/commands/agents.providers.ts — has summaryIsDefault (lines 147, 179)
src/commands/channels/add.ts:143 — uses isDefault for display label
Context
Health checks, agent summaries, security audits, gateway init, and TUI use the default agent for ordering and as a display anchor. Post-gut, display order should follow
agents.listorder — first configured is first displayed, no special "default" marker.Depends on #1575 (schema field removal).
What
Acceptance Criteria
agents.listorder (first in config = first displayed)resolveDefaultAgentIdreferences)Files
src/commands/health.ts,src/commands/agents.config.tssrc/security/fix.ts,src/security/audit-extra.async.tssrc/gateway/server.impl.ts,src/gateway/server/health-state.tssrc/gateway/hooks.ts,src/gateway/assistant-identity.tssrc/tui/tui.tssrc/commands/agents.commands.identity.ts,src/commands/agents.commands.bind.tssrc/telegram/bot.ts,src/telegram/bot-handlers.tssrc/commands/agents.commands.list.ts— formats the(default)tag (lines 23, 102–103, 107)src/commands/agents.providers.ts— hassummaryIsDefault(lines 147, 179)src/commands/channels/add.ts:143— usesisDefaultfor display label