From dfc55a5c977dbff657e1da74ff5c2b9d488807be Mon Sep 17 00:00:00 2001 From: qer Date: Mon, 3 Aug 2026 16:37:55 +0800 Subject: [PATCH] fix(tui): make the /login already-logged-in notice visible (#2559) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The "Already logged in. Model configuration refreshed." confirmation was rendered with the default dim text color, so users easily missed it and assumed /login did nothing. Render it with the theme's success color, matching the success styling used by the login spinner's "✓ Logged in." line. Co-authored-by: Mira Bot --- .changeset/login-already-logged-in-visibility.md | 4 ++++ apps/kimi-code/src/tui/commands/auth.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 .changeset/login-already-logged-in-visibility.md diff --git a/.changeset/login-already-logged-in-visibility.md b/.changeset/login-already-logged-in-visibility.md new file mode 100755 index 000000000..265ebed5a --- /dev/null +++ b/.changeset/login-already-logged-in-visibility.md @@ -0,0 +1,4 @@ +--- +"@moonshot-ai/kimi-code": patch +--- +Render the "/login" already-logged-in confirmation in the success color instead of dim text, so the "Already logged in. Model configuration refreshed." message is clearly visible. diff --git a/apps/kimi-code/src/tui/commands/auth.ts b/apps/kimi-code/src/tui/commands/auth.ts index 773638485..a44b4fab5 100644 --- a/apps/kimi-code/src/tui/commands/auth.ts +++ b/apps/kimi-code/src/tui/commands/auth.ts @@ -74,7 +74,7 @@ async function handleKimiCodeOAuthLogin(host: SlashCommandHost): Promise { already_logged_in: alreadyLoggedIn, }); if (alreadyLoggedIn) { - host.showStatus('Already logged in. Model configuration refreshed.'); + host.showStatus('Already logged in. Model configuration refreshed.', 'success'); } } catch (error) { const cancelled = controller.signal.aborted;