github / github/copilot-cli

Background explore agents take 140+ seconds and return after agent has already found answers

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

描述

### Describe the bug

The agent launched two background agents early in the investigation. Both took ~140 seconds to complete. By the time they returned results, the agent had already found most of the same information through direct grep/view calls. This consumed resources without meaningfully accelerating the investigation in this case

### Affected version

GitHub Copilot CLI 1.0.36

### Steps to reproduce the behavior

1. Ask the agent to investigate a large codebase
2. Agent launches multiple background agents
3. Agent also starts direct investigation with grep/view
4. Observe explore agents complete after the direct investigation has progressed past the agents' scope

### Expected behavior

The agent should either wait for agents before duplicating work, or cancel agents once the main thread has found the same info, or better calibrate when to use agents vs direct investigation based on complexity

### Additional context

_No response_

贡献指南

打开贡献指南

调研方向

按照列出的步骤在大型代码库中复现延迟,并比较 background-agent 的完成情况与直接使用 grep/view 进行调查的结果。追踪 background-agent 的调度和取消入口,然后定义并验证一项一致的策略:当直接调查已经覆盖相同范围时,避免重复工作。

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

评估

技术栈
shell
领域
cli
Issue 类型
缺陷
难度
5/5
预计耗时
一周以上
活跃度
冷清
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

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