From aab3d003e025a302272884bc7b9e0814c795d262 Mon Sep 17 00:00:00 2001 From: Hypatia May Date: Fri, 31 Jul 2026 11:51:26 +0800 Subject: [PATCH] docs(tui): clarify compaction disposal outcome --- packages/ui/tui/src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/ui/tui/src/index.ts b/packages/ui/tui/src/index.ts index cadd63e9bb..33690804cc 100644 --- a/packages/ui/tui/src/index.ts +++ b/packages/ui/tui/src/index.ts @@ -1603,6 +1603,9 @@ export function createTuiChat( // TUI stays mounted. Retained agents accept deliveries after detachment, so // without this a later send would drive a zombie agent/session; mark // disposed so dispatchMessage reports it instead. + // The hard clear also retires live compaction. A later compact/end is + // intentionally presentation-silent: this disposal notice owns the + // terminal outcome, and no animation may survive agent detachment. clearStatus() appendNotice(`Agent "${agent.id}" was disposed.`, 'warning') disposed = true