mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-08-04 05:51:03 +00:00
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:
parent
29c9e2ab20
commit
dfc55a5c97
2 changed files with 5 additions and 1 deletions
4
.changeset/login-already-logged-in-visibility.md
Executable file
4
.changeset/login-already-logged-in-visibility.md
Executable 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.
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue