Skip to content

Permission mode spontaneously switches from bypass/dontAsk to 'accept edits' during session #36473

Description

@AtomicallyBeyond

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

  1. Set defaultMode to dontAsk in settings.json
  2. Start a Claude Code session
  3. Work normally (file edits, bash commands, agent launches)
  4. 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

Activity

  1. github-actions commented on Mar 28, 2026

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  2. locked as resolved and limited conversation to collaborators on Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions