Describe the bug
Release notes for v1.0.12 say:
Read .claude/settings.json and .claude/settings.local.json as additional repo config sources
With following .claude/settings.json:
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"permissions": { "allow": ["Bash(npx eslint)"] }
}
Asking copilot to run npx eslint still pops up a permission question to the user.
Running copilot --allow-tool='shell(npx eslint)' does work as expected however.
Affected version
GitHub Copilot CLI 1.0.12
Steps to reproduce the behavior
- Put following json in
.claude/settings.json:
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"permissions": { "allow": ["Bash(npx eslint)"] }
}
- Run
copilot
- Ask "please run npx eslint"
- Observe that copilot asks the user for permission
Expected behavior
Copilot should not ask the user for permission, just like when running copilot --allow-tool='shell(npx eslint)'
Additional context
OS: Windows
Terminal: Windows Terminal
Shell: Git Bash and Powershell (both tested)
Describe the bug
Release notes for v1.0.12 say:
With following
.claude/settings.json:{ "$schema": "https://json.schemastore.org/claude-code-settings.json", "permissions": { "allow": ["Bash(npx eslint)"] } }Asking copilot to run npx eslint still pops up a permission question to the user.
Running
copilot --allow-tool='shell(npx eslint)'does work as expected however.Affected version
GitHub Copilot CLI 1.0.12
Steps to reproduce the behavior
.claude/settings.json:{ "$schema": "https://json.schemastore.org/claude-code-settings.json", "permissions": { "allow": ["Bash(npx eslint)"] } }copilotExpected behavior
Copilot should not ask the user for permission, just like when running
copilot --allow-tool='shell(npx eslint)'Additional context
OS: Windows
Terminal: Windows Terminal
Shell: Git Bash and Powershell (both tested)