Skip to content

Commit a50f2ae

Browse files
committed
feat(tui): hint at /login and /connect when /model has no models
Replace the bare "No models configured." error with a notice that points users to /login for Kimi and /connect for other providers.
1 parent 401125f commit a50f2ae

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@moonshot-ai/kimi-code": patch
3+
---
4+
5+
Show a hint pointing to /login (Kimi) and /connect (other providers) when /model is opened with no configured models.

apps/kimi-code/src/tui/kimi-tui.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4334,7 +4334,10 @@ export class KimiTUI {
43344334
private showModelPicker(selectedValue: string = this.state.appState.model): void {
43354335
const entries = Object.entries(this.state.appState.availableModels);
43364336
if (entries.length === 0) {
4337-
this.showError('No models configured.');
4337+
this.showNotice(
4338+
'No models configured',
4339+
'Run /login to sign in to Kimi, or /connect to add another provider from a model catalog.',
4340+
);
43384341
return;
43394342
}
43404343
this.mountEditorReplacement(

0 commit comments

Comments
 (0)