Preflight Checklist
Related issue: #29159 covers the same root cause on Windows/AWS Bedrock. This report confirms the bug also affects macOS/Anthropic API.
What's Wrong?
The Claude Code VSCode extension executes Bash tool calls (date, hostname, gh issue list, etc.) without ever prompting for user approval, despite:
Initial Permission Mode set to default in VSCode Extension settings (@ext:Anthropic.claude-code Permission)
Allow Dangerously Skip Permissions unchecked (false) in VSCode Extension settings
~/.claude/settings.json having an empty permissions.allow list
Per documentation, default mode should ask before running Bash commands. The extension silently auto-approves them instead.
What Should Happen?
A permission prompt should appear before executing any Bash command, since allow list is empty and mode is default.
Error Messages/Logs
No error messages — commands execute silently without any prompt.
Steps to Reproduce
- Open VSCode with Claude Code extension in sidebar
- Set
Initial Permission Mode to default (VSCode settings: @ext:Anthropic.claude-code Permission)
- Ensure
Allow Dangerously Skip Permissions is unchecked
- Ensure
~/.claude/settings.json has empty allow list (see config below)
- Ask Claude to run any Bash command, e.g. "what is today's date?" or "what is the hostname?"
- Observe: command executes immediately with no approval prompt
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
Unknown
Claude Code Version
2.1.76 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
VS Code integrated terminal
Additional Information
~/.claude/settings.json:
{
"permissions": {
"allow": [],
"additionalDirectories": []
}
}
VSCode Extension settings (screenshot):
Claude Code: Initial Permission Mode = default
Claude Code: Allow Dangerously Skip Permissions = unchecked (false)
The CLI permission model and the VSCode extension appear to use separate permission enforcement paths. The extension does not honour the ~/.claude/settings.json allowlist, resulting in all Bash commands being silently auto-approved regardless of configuration.
Related issues:
Preflight Checklist
What's Wrong?
The Claude Code VSCode extension executes Bash tool calls (
date,hostname,gh issue list, etc.) without ever prompting for user approval, despite:Initial Permission Modeset todefaultin VSCode Extension settings (@ext:Anthropic.claude-code Permission)Allow Dangerously Skip Permissionsunchecked (false) in VSCode Extension settings~/.claude/settings.jsonhaving an emptypermissions.allowlistPer documentation,
defaultmode should ask before running Bash commands. The extension silently auto-approves them instead.What Should Happen?
A permission prompt should appear before executing any Bash command, since
allowlist is empty and mode isdefault.Error Messages/Logs
No error messages — commands execute silently without any prompt.
Steps to Reproduce
Initial Permission Modetodefault(VSCode settings:@ext:Anthropic.claude-code Permission)Allow Dangerously Skip Permissionsis unchecked~/.claude/settings.jsonhas emptyallowlist (see config below)Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
Unknown
Claude Code Version
2.1.76 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
VS Code integrated terminal
Additional Information
~/.claude/settings.json:
{ "permissions": { "allow": [], "additionalDirectories": [] } }VSCode Extension settings (screenshot):
Claude Code: Initial Permission Mode=defaultClaude Code: Allow Dangerously Skip Permissions= unchecked (false)The CLI permission model and the VSCode extension appear to use separate permission enforcement paths. The extension does not honour the
~/.claude/settings.jsonallowlist, resulting in all Bash commands being silently auto-approved regardless of configuration.Related issues: