From 2d1cad56763f7ca972818261fe0683fa9e06e7d5 Mon Sep 17 00:00:00 2001 From: liruifengv Date: Wed, 1 Jul 2026 11:56:15 +0800 Subject: [PATCH] docs(kimi-code): correct transcript-window trim comment about metadata retention --- apps/kimi-code/src/tui/kimi-tui.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/kimi-code/src/tui/kimi-tui.ts b/apps/kimi-code/src/tui/kimi-tui.ts index 736d197fb..ac9d50a04 100644 --- a/apps/kimi-code/src/tui/kimi-tui.ts +++ b/apps/kimi-code/src/tui/kimi-tui.ts @@ -1830,8 +1830,9 @@ export class KimiTUI { // Only trim the logical entries (LLM context). Rendered children are NOT // destroyed — they commit into native scrollback, and the engine releases - // them once they scroll off-screen. Old components whose entry was trimmed - // stay in the tree; their metadata entry simply returns undefined. + // them once they scroll off-screen. Old components stay in the tree, and + // their metadata (keyed by component) is retained alongside them, so + // getTranscriptComponentEntry still resolves them. this.state.transcriptEntries = this.state.transcriptEntries.filter((e) => !toRemove.has(e)); return true; }