anthropics / anthropics/claude-code

[Bug] Terminal UI displays incorrect model name when subagents launch or switch models

オープン
#93,324 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
area:agents area:tui duplicate platform:linux platform:vscode
主要言語
Python
スター
145k
フォーク
23.1k
PR マージ指標
PR 指標を取得中

説明

Describe the bug
When a subagent is launched, the actual underlying model works properly, but the terminal interface displays the incorrect model name. This mislabeling occurs when explicitly suggesting a different model or when an automatic model switch takes place.

Steps to Reproduce

Launch a subagent task inside Claude Code.

Pass an explicit model override or trigger an automatic model change.

Observe the model name reported in the terminal output.

Expected Behavior
The terminal UI should accurately reflect the active model name being used by the running subagent.

Actual Behavior
The subagent executes with the correct model, but the terminal UI displays an incorrect model label/name.

Environment Info

Platform: Linux

Terminal/Host: VS Code

Version: 2.1.267

Feedback ID: db47aa24-ba3a-49cc-8dea-36ff22851782

Errors
JSON

[]

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Reproduce the issue in Claude Code 2.1.267 on Linux through VS Code, using both an explicit subagent model override and an automatic model switch. Trace how the terminal UI obtains the model label during subagent launch and switching. Done means the terminal consistently displays the active underlying model in both cases, with regression coverage for each path.

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

評価

技術スタック
linux, vscode
領域
ai, cli
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

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

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