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
defaultMode to dontAsk in 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
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 insettings.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
Steps to Reproduce
defaultModetodontAskin settings.jsonAdditional 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