--dangerously-skip-permissions flag stops working after exiting Plan Mode

Resolved 💬 6 comments Opened Mar 28, 2026 by nock-in-mook Closed May 6, 2026

Bug Report

Description

When Claude Code is launched with the --dangerously-skip-permissions flag, entering and then exiting Plan Mode causes the flag to stop working. After returning to normal execution mode, Claude begins prompting for tool permissions again, even though the session was started with --dangerously-skip-permissions.

Steps to Reproduce

  1. Start Claude Code with --dangerously-skip-permissions
  2. Use the session normally (no permission prompts, as expected)
  3. Enter Plan Mode
  4. Exit Plan Mode back to normal execution
  5. Claude now prompts for permissions on tool calls that were previously auto-approved

Expected Behavior

The --dangerously-skip-permissions flag should persist for the entire session, regardless of mode changes.

Actual Behavior

After exiting Plan Mode, the --dangerously-skip-permissions flag appears to be lost, and Claude starts requesting permissions for tool usage.

Reproducibility

Reproduced multiple times across different sessions on Windows 11.

Environment

  • OS: Windows 11
  • Shell: bash (Git Bash)

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗