fix(tui): make the /login already-logged-in notice visible (#2559)

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 <mira-bot@moonshot.cn>
This commit is contained in:
qer 2026-08-03 16:37:55 +08:00 committed by GitHub
parent 29c9e2ab20
commit dfc55a5c97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -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.

View file

@ -74,7 +74,7 @@ async function handleKimiCodeOAuthLogin(host: SlashCommandHost): Promise<void> {
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;