github / github/copilot-cli

Custom agent selection reverts to Default agent mid-session

未关闭
#4,047 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:agents area:sessions
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

**Description**
When starting a session with a specific custom agent explicitly selected for the initial prompt, the agent selection reverts to the Default agent as the session progresses (during subsequent reasoning/turns).

**Steps to reproduce**
1. Start a new session/kickoff prompt with a specific custom agent selected.
2. Observe the initial prompt runs under the selected agent.
3. As the conversation continues and further thinking/turns happen, the session shows/reverts to the 'Default agent'.

**Expected behavior**
The explicitly selected custom agent should remain active for the duration of the session (or at least persist across turns) unless the user explicitly changes it.

**Actual behavior**
Agent selection reverts to Default agent after the initial prompt.

**Additional context**
Reported via Copilot CLI session. Unclear whether this is a UI display issue (mislabeling) or an actual functional reversion of agent config underneath.

贡献指南

打开贡献指南

调研方向

首先,在使用所选自定义代理的 Copilot CLI 会话中重现该问题,然后在后续轮次中比较显示的代理与代理配置。跟踪会话和代理选择的入口点,以确定这种回退是功能性的还是仅仅是显示问题;当所选自定义代理在多个轮次中保持活动状态,并且该行为由回归测试覆盖时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
shell
领域
cli
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
50/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。