Autopilot on PowerShell does not ask for permission and keeps looping forever and discussing with itself how it doesnt have access rights
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
- Open PowerShell
- Go into autopilot mode
- Especially terrible Anthropic models work recently on Copilot, so maybe select "Sonnet 4.6"
- Give it some but to fix
- Also ideally something that starts a background agents
- 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
Autopilot needs a no-progress circuit breaker. Repeated denials with the same normalized tool call should not be fed back indefinitely; after one failed permission path, the agent should surface a blocked state and stop consuming tokens. Background agents also need a routed approval channel or must be prohibited from requesting unavailable capabilities. Tests should cover PowerShell writes, non-interactive mode, subagents, lost permission UI, and repeated equivalent commands with different quoting.