diff --git a/packages/cli/src/ui/components/__snapshots__/Footer.test.tsx.snap b/packages/cli/src/ui/components/__snapshots__/Footer.test.tsx.snap
index be6f152e9f..495446eb0a 100644
--- a/packages/cli/src/ui/components/__snapshots__/Footer.test.tsx.snap
+++ b/packages/cli/src/ui/components/__snapshots__/Footer.test.tsx.snap
@@ -1,8 +1,8 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
-exports[` > footer configuration filtering (golden snapshots) > renders complete footer in narrow terminal (baseline narrow) > complete-footer-narrow 1`] = `" ...s/to/make/it/long no sandbox Manual (gemini-pro) /model (100%)"`;
+exports[` > footer configuration filtering (golden snapshots) > renders complete footer in narrow terminal (baseline narrow) > complete-footer-narrow 1`] = `" ...s/to/make/it/long no sandbox gemini-pro /model (100%)"`;
-exports[` > footer configuration filtering (golden snapshots) > renders complete footer with all sections visible (baseline) > complete-footer-wide 1`] = `" ...irectories/to/make/it/long no sandbox (see /docs) Manual (gemini-pro) /model (100% context left)"`;
+exports[` > footer configuration filtering (golden snapshots) > renders complete footer with all sections visible (baseline) > complete-footer-wide 1`] = `" ...irectories/to/make/it/long no sandbox (see /docs) gemini-pro /model (100% context left)"`;
exports[` > footer configuration filtering (golden snapshots) > renders footer with CWD and model info hidden to test alignment (only sandbox visible) > footer-only-sandbox 1`] = `" no sandbox (see /docs)"`;
diff --git a/packages/core/src/config/models.test.ts b/packages/core/src/config/models.test.ts
index c9c1145686..55b1751484 100644
--- a/packages/core/src/config/models.test.ts
+++ b/packages/core/src/config/models.test.ts
@@ -9,6 +9,7 @@ import {
resolveModel,
resolveClassifierModel,
isGemini2Model,
+ getDisplayString,
DEFAULT_GEMINI_MODEL,
PREVIEW_GEMINI_MODEL,
DEFAULT_GEMINI_FLASH_MODEL,
@@ -22,6 +23,43 @@ import {
DEFAULT_GEMINI_MODEL_AUTO,
} from './models.js';
+describe('getDisplayString', () => {
+ it('should return Auto (Gemini 3) for preview auto model', () => {
+ expect(getDisplayString(PREVIEW_GEMINI_MODEL_AUTO)).toBe('Auto (Gemini 3)');
+ });
+
+ it('should return Auto (Gemini 2.5) for default auto model', () => {
+ expect(getDisplayString(DEFAULT_GEMINI_MODEL_AUTO)).toBe(
+ 'Auto (Gemini 2.5)',
+ );
+ });
+
+ it('should return concrete model name for pro alias', () => {
+ expect(getDisplayString(GEMINI_MODEL_ALIAS_PRO, false)).toBe(
+ DEFAULT_GEMINI_MODEL,
+ );
+ expect(getDisplayString(GEMINI_MODEL_ALIAS_PRO, true)).toBe(
+ PREVIEW_GEMINI_MODEL,
+ );
+ });
+
+ it('should return concrete model name for flash alias', () => {
+ expect(getDisplayString(GEMINI_MODEL_ALIAS_FLASH, false)).toBe(
+ DEFAULT_GEMINI_FLASH_MODEL,
+ );
+ expect(getDisplayString(GEMINI_MODEL_ALIAS_FLASH, true)).toBe(
+ PREVIEW_GEMINI_FLASH_MODEL,
+ );
+ });
+
+ it('should return the model name as is for other models', () => {
+ expect(getDisplayString('custom-model')).toBe('custom-model');
+ expect(getDisplayString(DEFAULT_GEMINI_FLASH_LITE_MODEL)).toBe(
+ DEFAULT_GEMINI_FLASH_LITE_MODEL,
+ );
+ });
+});
+
describe('supportsMultimodalFunctionResponse', () => {
it('should return true for gemini-3 model', () => {
expect(supportsMultimodalFunctionResponse('gemini-3-pro')).toBe(true);
diff --git a/packages/core/src/config/models.ts b/packages/core/src/config/models.ts
index cc6fc4e36c..ca87ee2d40 100644
--- a/packages/core/src/config/models.ts
+++ b/packages/core/src/config/models.ts
@@ -110,17 +110,15 @@ export function getDisplayString(
case DEFAULT_GEMINI_MODEL_AUTO:
return 'Auto (Gemini 2.5)';
case GEMINI_MODEL_ALIAS_PRO:
- return `Manual (${
- previewFeaturesEnabled ? PREVIEW_GEMINI_MODEL : DEFAULT_GEMINI_MODEL
- })`;
+ return previewFeaturesEnabled
+ ? PREVIEW_GEMINI_MODEL
+ : DEFAULT_GEMINI_MODEL;
case GEMINI_MODEL_ALIAS_FLASH:
- return `Manual (${
- previewFeaturesEnabled
- ? PREVIEW_GEMINI_FLASH_MODEL
- : DEFAULT_GEMINI_FLASH_MODEL
- })`;
+ return previewFeaturesEnabled
+ ? PREVIEW_GEMINI_FLASH_MODEL
+ : DEFAULT_GEMINI_FLASH_MODEL;
default:
- return `Manual (${model})`;
+ return model;
}
}