mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-07-10 01:39:25 +00:00
fix(kimi-code): skip masking empty API key input to avoid ghost dot (#66)
This commit is contained in:
parent
e2b2b46fc9
commit
8ddfc0433e
2 changed files with 6 additions and 1 deletions
5
.changeset/fix-api-key-empty-dot.md
Normal file
5
.changeset/fix-api-key-empty-dot.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@moonshot-ai/kimi-code": patch
|
||||
---
|
||||
|
||||
Fix API key input dialog showing a masked dot in empty state.
|
||||
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue