Footer ignores custom model displayName and drops Vertex AI model info despite hideModelInfo=false

Aperta Adatta ai principianti
#30,482 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@bitwizard25 ci sta già lavorando.

Dal 27/11/2026.

  • #30490 di @bitwizard25 — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
cli, frontend

Direzione di ricerca

Leggi packages/cli/src/ui/components/Footer.tsx, in particolare la visualizzazione del modello e l’adattamento alla larghezza del footer citati nell’issue, poi controlla packages/core/src/config/models.ts per getDisplayString. Segui i test esistenti del footer per trovare la copertura delle etichette dei modelli e dei layout per terminali stretti. Il lavoro è completato quando il footer mostra il displayName breve configurato se ci sta, mentre le richieste continuano a usare il nome completo della risorsa Vertex AI.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

status/need-triage
What happened?

In Gemini CLI 0.70.0, the footer does not show the selected model even though ui.footer.hideModelInfo is false.

I use Vertex AI with fully qualified model resource names and custom entries in modelConfigs.modelDefinitions. Each entry has a short displayName. Dynamic model configuration is enabled.

The footer shows workspace, branch, sandbox, and context usage, followed by an ellipsis, but no model information.

스크린샷 2026-11-26 오전 10 36 43

Relevant configuration, reduced to one model with the project ID redacted:

{
  "security": {
    "auth": {
      "selectedType": "vertex-ai"
    }
  },
  "experimental": {
    "dynamicModelConfiguration": true
  },
  "model": {
    "name": "projects/REDACTED_PROJECT/locations/us/publishers/google/models/gemini-3.8-flash"
  },
  "modelConfigs": {
    "modelDefinitions": {
      "projects/REDACTED_PROJECT/locations/us/publishers/google/models/gemini-3.8-flash": {
        "displayName": "gemini-3.8-flash",
        "tier": "custom",
        "isVisible": true
      }
    }
  },
  "ui": {
    "footer": {
      "hideModelInfo": false,
      "hideContextPercentage": false
    }
  }
}

Steps to reproduce:

  1. Configure a supported Vertex AI model using its fully qualified resource name and a short custom displayName.
  2. Enable dynamic model configuration and set ui.footer.hideModelInfo to false.
  3. Start Gemini CLI in a Git repository, with the default footer order.
  4. Use a terminal width where the short display name would fit alongside the other items, but the full resource path would not.
  5. Observe that the model item disappears and an ellipsis is shown.
What did you expect to happen?

The footer should use the configured displayName, so the model remains visible when that short name fits. The full Vertex resource path should still be used for API requests.

Client information
  • Gemini CLI: 0.70.0, installed via Homebrew
  • Platform: macOS 26.5, arm64
  • Node.js available in the reporting environment: v22.22.0
  • Authentication: vertex-ai
  • Observed in Plan mode, without sandboxing

These details were collected from the installation and environment; they are not a full /about transcript.

Login information

Vertex AI, using custom model definitions keyed by fully qualified model resource names.

Anything else we need to know?

Source inspection suggests the following cause:

  • Footer.tsx calls getDisplayString(model) without passing the configuration.
  • getDisplayString requires that configuration to read a custom displayName.
  • Footer width fitting consequently budgets for the full resource path and drops the entire column if it does not fit.

An isolated check using the installed 0.70.0 functions reproduced this behavior: with a representative 120-column layout, the 80-character redacted resource path was dropped, whereas the 16-character display name fit.

The same footer call is present in v0.71.1 and current main at the time of reporting. Those versions were inspected, not tested interactively.

Widening the terminal or moving the model item earlier using /footer can expose the full path, but does not make the footer honor displayName.

Lingua principale
TypeScript
Stelle
109k
Fork
15k
Merge medio
1g 24m
PR unite (30g)
91

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di google-gemini/gemini-cli

Tutte le issue di google-gemini/gemini-cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.