Subagent started with unsupported model fails the whole session
还没有人认领这个 Issue。
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
Describe the bug
In a long running agent session on autopilot (~2 hours), with plenty use of subagents, the main agent was Opus 5, but started gemini-3.6-flash when building and executing tasks. Later during that same autopilot session gemini-3.6-flash was no longer supported. The main agent attempts to launch gemini-3.6-flash agent again, which results in this error:
Execution failed: CAPIError: 400 The requested model is not supported.
This breaks the entire session and the main agent stops. Instead the main agent should have seen that error, been able to react on it and try to find a different model it could use (e.g. Haiku, GPT Luna), and launch the subagent
Affected version
GitHub Copilot CLI 1.0.79.
Steps to reproduce the behavior
- Have a session running where you instruct the main agent to launch subagents using a model that you are going to retract from the pool of models
- On your side, change which models are supported to ban a model that you made the session use
- See the subagent fail and the main agent fail together
Expected behavior
The main agent should have seen that error, been able to react on it and try to find a different model it could use (e.g. Haiku, GPT Luna), and launch the subagent
Additional context
No response
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先跟踪 CLI 如何启动 subagents 并传播模型执行错误。没有指定文件或测试,因此先定位 session 和 subagent 的错误处理入口;完成的标准是,不受支持的 subagent 模型失败不再终止 main session,并且可以针对另一个模型进行处理。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- shell
- 领域
- cli
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100