fix(kimi-code): skip masking empty API key input to avoid ghost dot (#66)

This commit is contained in:
7Sageer 2026-05-26 16:02:49 +08:00 committed by GitHub
parent e2b2b46fc9
commit 8ddfc0433e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
"@moonshot-ai/kimi-code": patch
---
Fix API key input dialog showing a masked dot in empty state.

View file

@ -106,7 +106,7 @@ export class ApiKeyInputDialogComponent extends Container implements Focusable {
const subtitleLine = truncateToWidth(subtitleStyled, innerWidth, '…');
const footerLine = truncateToWidth(footerStyled, innerWidth, '…');
const rawInputLine = this.input.render(innerWidth)[0] ?? '> ';
const inputLine = maskInputLine(rawInputLine);
const inputLine = this.input.getValue() === '' ? rawInputLine : maskInputLine(rawInputLine);
const contentLines: string[] = [titleLine, '', subtitleLine, '', inputLine, '', footerLine];