anthropics / anthropics/claude-code

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

未关闭
#93,324 1 条评论 0 个 reaction 已指派 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 摘要。