From 9b5f85a10e0854e9f44cd68b209b632ad5c6c590 Mon Sep 17 00:00:00 2001 From: Alice39s Date: Sat, 13 Jun 2026 19:33:51 +0900 Subject: [PATCH] fix(tui): indent, italicize, and dim AskUserQuestion answer arrow --- .changeset/indent-askuserquestion-answer.md | 5 +++++ apps/kimi-code/src/tui/components/messages/tool-call.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/indent-askuserquestion-answer.md diff --git a/.changeset/indent-askuserquestion-answer.md b/.changeset/indent-askuserquestion-answer.md new file mode 100644 index 000000000..75a0212a9 --- /dev/null +++ b/.changeset/indent-askuserquestion-answer.md @@ -0,0 +1,5 @@ +--- +"@moonshot-ai/kimi-code": patch +--- + +Indent, italicize, and dim the answer arrow in AskUserQuestion result cards so answers sit visually nested under their questions. diff --git a/apps/kimi-code/src/tui/components/messages/tool-call.ts b/apps/kimi-code/src/tui/components/messages/tool-call.ts index 983d1bf8c..20116725e 100644 --- a/apps/kimi-code/src/tui/components/messages/tool-call.ts +++ b/apps/kimi-code/src/tui/components/messages/tool-call.ts @@ -1994,7 +1994,7 @@ export class ToolCallComponent extends Container { } if (typeof parsed !== 'object' || parsed === null) return false; - const accent = (text: string) => currentTheme.fg('primary', text); + const answerArrow = (text: string) => currentTheme.italicFg('textDim', text); const answers = (parsed as { answers?: unknown }).answers; const note = (parsed as { note?: unknown }).note; @@ -2012,7 +2012,7 @@ export class ToolCallComponent extends Container { for (const [question, answer] of Object.entries(answers as Record)) { const answerText = typeof answer === 'string' ? answer : JSON.stringify(answer); this.addChild(new Text(` ${currentTheme.dim('Q')} ${question}`, 0, 0)); - this.addChild(new Text(` ${accent('→')} ${answerText}`, 0, 0)); + this.addChild(new Text(` ${answerArrow('→')} ${answerText}`, 0, 0)); } return true; }