From 6812ff78dbf649d921fefc53865ced712cc7e5b5 Mon Sep 17 00:00:00 2001 From: liruifengv Date: Tue, 2 Jun 2026 13:07:30 +0800 Subject: [PATCH] fix: show full model name in footer without truncating provider prefix --- .changeset/footer-model-name-full.md | 5 +++++ apps/kimi-code/src/tui/components/chrome/footer.ts | 8 +------- 2 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 .changeset/footer-model-name-full.md diff --git a/.changeset/footer-model-name-full.md b/.changeset/footer-model-name-full.md new file mode 100644 index 00000000..500287cc --- /dev/null +++ b/.changeset/footer-model-name-full.md @@ -0,0 +1,5 @@ +--- +"@moonshot-ai/kimi-code": patch +--- + +Show the full model name in the footer status bar instead of truncating the provider prefix. diff --git a/apps/kimi-code/src/tui/components/chrome/footer.ts b/apps/kimi-code/src/tui/components/chrome/footer.ts index b0807d69..38ce63ec 100644 --- a/apps/kimi-code/src/tui/components/chrome/footer.ts +++ b/apps/kimi-code/src/tui/components/chrome/footer.ts @@ -120,12 +120,6 @@ function tipsForIndex(index: number): { primary: string; pair: string | null } { return { primary: current.text, pair: current.text + TIP_SEPARATOR + next.text }; } -function shortenModel(model: string): string { - if (!model) return model; - const slash = model.lastIndexOf('/'); - return slash >= 0 ? model.slice(slash + 1) : model; -} - function modelDisplayName(state: AppState): string { const model = state.availableModels[state.model]; return model?.displayName ?? model?.model ?? state.model; @@ -245,7 +239,7 @@ export class FooterComponent implements Component { if (state.permissionMode === 'yolo') left.push(chalk.hex(colors.warning).bold('yolo')); if (state.planMode) left.push(chalk.hex(colors.primary).bold('plan')); - const model = shortenModel(modelDisplayName(state)); + const model = modelDisplayName(state); if (model) { const thinkingLabel = state.thinking ? ' thinking' : ''; const modelLabel = `${model}${thinkingLabel}`;