Explicit code-review subagent model override is ignored
还没有人认领这个 Issue。
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
Describe the bug
The built-in code-review subagent is configured to use gpt-5.6-luna, but Copilot CLI starts it with gpt-5.6-sol.
The parent session was using gpt-5.6-luna, and the configured per-agent model was also gpt-5.6-luna. The configured value is silently ignored or replaced.
This matters because the selected subagent model can affect review quality, model availability, and AI Credit consumption.
Observed evidence
The effective configuration contains:
{
"subagents": {
"agents": {
"code-review": {
"model": "gpt-5.6-luna",
"effortLevel": "high",
"contextTier": "default"
}
}
}
}
The parent assistant was using gpt-5.6-luna, but the task request and subagent event selected gpt-5.6-sol:
{
"type": "tool.execution_start",
"data": {
"toolName": "task",
"arguments": {
"agent_type": "code-review",
"model": "gpt-5.6-sol"
},
"model": "gpt-5.6-luna"
}
}
{
"type": "subagent.started",
"data": {
"agentName": "code-review",
"model": "gpt-5.6-sol"
}
}
Affected version
1.0.79
Steps to reproduce the behavior
The same behavior occurred in repeated reviews from the same session.
- On Windows x64, configure the built-in
code-reviewsubagent to usegpt-5.6-lunathrough/subagents. - Start a Copilot CLI session and select
gpt-5.6-luna. - Run
/reviewand request a code review. - Inspect the session timeline or the corresponding file under
~/.copilot/session-state/*/events.jsonl. - Observe that the
code-reviewsubagent is started withgpt-5.6-sol.
Expected behavior
The code-review subagent should use the explicitly configured gpt-5.6-luna model.
If the requested model cannot be used, Copilot CLI should report the fallback clearly and identify the effective model instead of silently selecting another model.
Additional context
- Operating system: Windows 11 Pro
- Architecture: x64
- Shell: command prompt
The global settings file also contains a default model of gpt-5.6-terra, but the affected session was explicitly switched to gpt-5.6-luna. This is therefore not simply a mismatch with the global default model.
The behavior appears related to https://github.com/github/copilot-cli/issues/4377
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用 /subagents 和 /review 在 Windows x64 上复现该问题,然后检查 ~/.copilot/session-state/*/events.jsonl。将配置的代码审查模型与 task 和 subagent.started 事件进行比较。明确配置的模型被使用,或任何回退都连同其实际使用的模型得到清楚报告,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- shell
- 领域
- ai, cli
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100