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

オープン 初心者向け
#30,482 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@bitwizard25 がすでに取り組んでいます。

2026年11月27日 から。

  • #30490 @bitwizard25 による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
cli, frontend

調査の方向性

packages/cli/src/ui/components/Footer.tsxを読み、特にissueで言及されているモデル表示とfooter幅への調整を確認し、次にpackages/core/src/config/models.tsでgetDisplayStringを調べてください。既存のfooterテストをたどり、モデルラベルと幅の狭い端末レイアウトのテスト範囲を確認してください。footerに設定済みの短いdisplayNameが収まる場合に表示され、リクエストでは引き続きVertex AIの完全なリソース名が使われる状態になれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
109k
フォーク
15k
平均マージ
1日 24分
マージ済み PR(30日)
91

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

google-gemini/gemini-cli のほかの issue

google-gemini/gemini-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。