From 9ca52cbcf00bca00dd83f644390a2d16ab464737 Mon Sep 17 00:00:00 2001 From: Hypatia May Date: Fri, 31 Jul 2026 13:57:18 +0800 Subject: [PATCH] docs(tui): simplify compaction state comment --- packages/ui/tui/src/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/ui/tui/src/index.ts b/packages/ui/tui/src/index.ts index 33690804cc..76ce6cc0f0 100644 --- a/packages/ui/tui/src/index.ts +++ b/packages/ui/tui/src/index.ts @@ -1531,9 +1531,7 @@ export function createTuiChat( recordEventUsage(tokens, event) if (event.type === 'turn/start' && runningStatus !== undefined) runningStatus.turn = event.data.turn if (event.type === 'assistant/message' && streaming?.isSettled()) streaming = undefined - // Standalone compaction runs while the agent remains idle, so only the - // live durable bracket can announce its in-flight state without mistaking - // a stale resumed orphan for current work. + // Track live standalone compaction state. if (event.type === 'compact/start' && event.data.turn === null) { if (compacting === undefined) { const startedAt = now()