github / github/copilot-cli

Autopilot on PowerShell does not ask for permission and keeps looping forever and discussing with itself how it doesnt have access rights

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

描述

### Describe the bug

At least Copilot is saying that this might be a PowerShell issue. It is not completing the task because it keeps failing for permission reasons to change files but doesnt ask for permission. In background agent it fails silently without giving any feedback. It keeps up draining tokens by infinitely looping on this issue (as recently on any issue)

### Affected version

GitHub Copilot CLI 1.0.40

### Steps to reproduce the behavior

1. Open PowerShell
2. Go into autopilot mode
3. Especially terrible Anthropic models work recently on Copilot, so maybe select "Sonnet 4.6"
4. Give it some but to fix
5. Also ideally something that starts a background agents
6. Both wont fix anything

### Expected behavior

Asks for permission or terminate immediate after recognizing that it does not have the correct permissions, instead of draining tokens

### Additional context

_No response_

贡献指南

打开贡献指南

调研方向

Start by reproducing the behavior in PowerShell with GitHub Copilot CLI 1.0.40, using autopilot mode and a task that changes files or starts a background agent. Capture where the permission failure occurs and how the loop continues. Done means the CLI requests permission or terminates promptly with feedback instead of continuing to consume tokens.

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

评估

技术栈
powershell
领域
cli
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

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