fix(tui): handle timeout/error subagent statuses in /agents (#26687)

Accept delegation timeout/error statuses in the TUI subagent model, normalize unknown status strings defensively, and harden /agents overlay rendering/sorting so unknown statuses cannot crash glyph/color lookup. Add regression tests for live event normalization and disk snapshot replay.
This commit is contained in:
brooklyn!
2026-05-15 20:19:02 -05:00
committed by GitHub
parent 566d8f0d75
commit 006937f7d0
8 changed files with 173 additions and 14 deletions

View File

@@ -17,6 +17,8 @@ export interface ActivityItem {
tone: 'error' | 'info' | 'warn'
}
export type SubagentStatus = 'completed' | 'error' | 'failed' | 'interrupted' | 'queued' | 'running' | 'timeout'
export interface SubagentProgress {
apiCalls?: number
costUsd?: number
@@ -36,7 +38,7 @@ export interface SubagentProgress {
parentId: null | string
reasoningTokens?: number
startedAt?: number
status: 'completed' | 'failed' | 'interrupted' | 'queued' | 'running'
status: SubagentStatus
summary?: string
taskCount: number
thinking: string[]