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

Abierto Apto para principiantes
#30,482 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@bitwizard25 ya está trabajando en esto.

Desde el 27/11/2026.

  • #30490 de @bitwizard25 — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
78/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript
Área
cli, frontend

Línea de trabajo

Lee packages/cli/src/ui/components/Footer.tsx, especialmente la visualización del modelo y el ajuste al ancho del footer mencionados en el issue; después, consulta packages/core/src/config/models.ts para ver getDisplayString. Sigue las pruebas existentes del footer para encontrar la cobertura de las etiquetas de modelo y las distribuciones con terminales estrechos. La tarea estará terminada cuando el footer muestre el displayName corto configurado si cabe, mientras que las solicitudes sigan usando el nombre completo del recurso de Vertex AI.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
109k
Forks
15k
Merge medio
1 d 24 min
PR fusionados (30 d)
91

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de google-gemini/gemini-cli

Todos los issues de google-gemini/gemini-cli

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.