VS Code: bypass permissions mode resets to edit on extension reload
Resolved 💬 2 comments Opened Mar 20, 2026 by paulelliotco Closed Mar 20, 2026
What happens
When I set the permission mode to bypass permissions in the VS Code extension, it switches back to edit mode on its own. This happens when the extension host restarts or the window reloads.
What I expected
The mode should stay on bypass permissions since that's what my settings say to do.
My setup
My global settings file (~/.claude/settings.json) already has the right config:
{
"permissions": {
"defaultMode": "bypassPermissions"
},
"skipDangerousModePermissionPrompt": true
}
Even with both of these set, the extension keeps falling back to edit mode. I have to manually switch it back every time.
Steps to see this
- Set
defaultModetobypassPermissionsin~/.claude/settings.json - Open a project in VS Code
- Start a Claude Code session — it correctly starts in bypass mode
- Wait for the extension host to restart (or reload the window)
- The mode is now back to edit instead of bypass
What I think is going on
It seems like the extension reads the setting on first load but doesn't keep it when it restarts. The session-level mode gets lost and the extension doesn't re-read the config to set it again.
Environment
- macOS (Darwin 25.2.0)
- VS Code with Claude Code extension
- Claude Code using Opus model
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗