You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Asking copilot to run dotnet build /t:Target results in a prompt for access to directory outside the allowed location #1015
When copilot wants to run dotnet build /t:TestTarget command, the Copilot CLI will prompt the user like this:
╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Allow directory access │
│ │
│ Copilot is attempting to read the following path outside your allowed directory list. │
│ │
│ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │
│ │ /t:TestTarget │ │
│ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ Do you want to add these directories to the allowed list? │
│ │
│ ❯ 1. Yes │
│ 2. No (Esc) │
│ │
│ Confirm with number keys or ↑↓ keys and Enter, Cancel with Esc │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
This is on Windows where such path is non-sense, but even on Linux such path is basically impossible. It also means that the user can't tell the copilot CLI to allow this execution for future executions, requiring prompt every time.
Activity
dogmatic69 commentedon Jan 17, 2026
duplicate of #884 #884 (comment)
RyanHecht commentedon Jan 21, 2026
Going to close this as a duplicate of #884 -- this is on the team's radar and we want to improve the path detection heuristics!
RyanHecht commentedon Jan 21, 2026
RyanHecht commentedon Jan 21, 2026
Sorry, wrong issue: #159 and #67 are more appropriate