docs(tui): simplify compaction state comment

This commit is contained in:
Hypatia May
2026-07-31 13:57:18 +08:00
parent 7a92f23ad4
commit 9ca52cbcf0

View File

@@ -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()