Describe the bug
When I was using the Copilot CLI, I noticed that it was reading files it shouldn't be, as there's a rule that it can't read files like config files, for example.
The CLI, ignoring the settings, reads the file using the PowerShell command Get-Content.
The setting works because when I use Copilot with chat (in Ask or Agent mode), it refuses to read the file because it doesn't have the necessary permissions/rights.
Affected version
No response
Steps to reproduce the behavior
Ask the Copilot CLI to read a file it doesn't have permission to access.
Expected behavior
Like Coplit Chat, it responds that it cannot read this file because it doesn't have the necessary permissions/rights.
Additional context
No response