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; }