Permission mode spontaneously switches from bypass/dontAsk to 'accept edits' during session
Resolved 💬 1 comment Opened Mar 20, 2026 by AtomicallyBeyond Closed Mar 20, 2026
Bug Description
Permission mode keeps spontaneously switching from bypass (dontAsk) to "accept edits on" during active sessions, despite the setting being correctly configured.
Settings
{
"permissions": {
"defaultMode": "dontAsk"
},
"skipDangerousModePermissionPrompt": true
}
Expected Behavior
Permission mode should stay on dontAsk (bypass) for the entire session since that's what's configured in settings.json.
Actual Behavior
The mode spontaneously reverts to "accept edits on" multiple times during a session. The user is not pressing any keybinding or changing settings — it just switches on its own.
Environment
- OS: Windows 10 Home 10.0.19045
- Shell: bash (Git Bash)
- Claude Code version: 2.1.80
- Status line: Custom PowerShell status line script configured
Steps to Reproduce
- Set
defaultModetodontAskin settings.json - Start a Claude Code session
- Work normally (file edits, bash commands, agent launches)
- Observe that permission mode switches to "accept edits on" without user action
Additional Context
This happens repeatedly during a single session, requiring the user to manually switch back to bypass mode each time. Very disruptive to workflow.
🤖 Generated with Claude Code
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗