Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/indent-askuserquestion-answer.md
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 2 additions & 2 deletions apps/kimi-code/src/tui/components/messages/tool-call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -2012,7 +2012,7 @@ export class ToolCallComponent extends Container {
for (const [question, answer] of Object.entries(answers as Record<string, unknown>)) {
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;
}
Expand Down