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

@@ -1,4 +1,4 @@
import type { SessionInfo, SlashCategory, Usage } from './types.js'
import type { SessionInfo, SlashCategory, SubagentStatus, Usage } from './types.js'
export interface GatewaySkin {
banner_hero?: string
@@ -394,7 +394,7 @@ export interface SubagentEventPayload {
output_tokens?: number
parent_id?: null | string
reasoning_tokens?: number
status?: 'completed' | 'failed' | 'interrupted' | 'queued' | 'running'
status?: SubagentStatus
subagent_id?: string
summary?: string
task_count?: number