claude-code - 💡(How to fix) Fix initialPermissionMode: bypassPermissions does not persist across VS Code restarts [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#47192Fetched 2026-04-13 05:39:01
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

claudeCode.initialPermissionMode set to bypassPermissions in VS Code settings does not persist across VS Code restarts (window reload or full application restart). Every time VS Code opens, the permission mode reverts to "Ask before edits."

Root Cause

claudeCode.initialPermissionMode set to bypassPermissions in VS Code settings does not persist across VS Code restarts (window reload or full application restart). Every time VS Code opens, the permission mode reverts to "Ask before edits."

RAW_BUFFERClick to expand / collapse

Description

claudeCode.initialPermissionMode set to bypassPermissions in VS Code settings does not persist across VS Code restarts (window reload or full application restart). Every time VS Code opens, the permission mode reverts to "Ask before edits."

Steps to Reproduce

  1. Set "claudeCode.initialPermissionMode": "bypassPermissions" in VS Code User settings
  2. Set "claudeCode.allowDangerouslySkipPermissions": true in VS Code User settings
  3. Also set "permissions": {"defaultMode": "bypassPermissions"} in:
    • ~/.claude/settings.json (global Claude config)
    • .claude/settings.local.json (project-level Claude config)
    • .vscode/settings.json (workspace-level VS Code config)
  4. Manually switch to bypass permissions mode in the session — works fine
  5. Close and reopen VS Code (or Reload Window)
  6. Permission mode has reverted to "Ask before edits"

Expected Behavior

Permission mode should persist as bypassPermissions across restarts when configured in settings.

Environment

  • VS Code Extension: anthropic.claude-code 2.1.101 (win32-x64)
  • Claude CLI: 2.1.104
  • OS: Windows 11 Pro 10.0.26200
  • Settings verified in four locations (user, global, project, workspace)

Notes

Setting bypass permissions manually each session works fine — only persistence across restarts is broken. This appears to be a state management issue where the extension ignores the configured initialPermissionMode on startup.

extent analysis

TL;DR

The claudeCode.initialPermissionMode setting may not be properly synchronized across different configuration files, leading to the permission mode reverting to "Ask before edits" after a VS Code restart.

Guidance

  • Verify that the claudeCode.initialPermissionMode setting is consistently set to bypassPermissions in all four locations: VS Code User settings, ~/.claude/settings.json, .claude/settings.local.json, and .vscode/settings.json.
  • Check for any potential conflicts between the global, project, and workspace settings that might be overriding the initialPermissionMode setting.
  • Try setting the claudeCode.initialPermissionMode to bypassPermissions only in the VS Code User settings and remove it from the other configuration files to see if the issue persists.
  • Consider checking the extension's documentation or issues page for any known problems related to state management or configuration persistence.

Example

No code snippet is provided as this issue appears to be related to configuration settings rather than code.

Notes

The issue might be specific to the anthropic.claude-code extension version 2.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING