[BUG] `claude agents --allow-dangerously-skip-permissions` defaults to bypass instead of allowing it

Status Fixed / completed
Reported on v2.1.142
Maintainer reply ✓ Yes — bogini
Activity 4 comments · opened May 15, 2026 · closed May 27, 2026
💡 Likely answer: A maintainer (bogini, collaborator) responded on this thread — see the highlighted reply below.

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Following the fix in #58380, claude agents --allow-dangerously-skip-permissions has two problems:

  1. It defaults new sessions to bypass permissions mode. The expected behavior for --allow-dangerously-skip-permissions is to make bypass available as a mode you can cycle to, not to force it as the default. That's what --dangerously-skip-permissions is for.
  1. It doesn't let you switch existing sessions to bypass permissions. If I attach to a session that was dispatched without the flag, there's no way to enable bypass on it after the fact.

What Should Happen?

  1. --allow-dangerously-skip-permissions should start sessions in the normal default permission mode, but include bypass permissions in the Shift+Tab cycle so the user can opt into it per-session.
  2. Attaching to an existing session from agent view should respect the agent view's permission flags, or at minimum let the user cycle into bypass if the flag was set.

Steps to Reproduce

  1. Run claude agents --allow-dangerously-skip-permissions
  2. Dispatch a new session
  3. Observe it starts in bypass permissions mode (should start in default mode with bypass available)
  4. Attach to a pre-existing session that was dispatched without the flag
  5. Try to cycle to bypass permissions via Shift+Tab — it's not available

Claude Model

Opus

Is this a regression?

No, new feature (shipped in v2.1.142 via #58380)

Claude Code Version

2.1.142

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Ghostty / zsh

View original on GitHub ↗

4 Comments

github-actions[bot] · 5 months ago

Found 1 possible duplicate issue:

  1. https://github.com/anthropics/claude-code/issues/58785

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

jonathanlaniado · 5 months ago

Not a duplicate. #58785 is about auto mode's Shift+Tab cycle having a blank label and only partially bypassing permissions. This is about claude agents --allow-dangerously-skip-permissions incorrectly defaulting dispatched sessions to bypass mode (instead of just making it available to cycle to), and not applying to existing sessions.

bogini collaborator · 4 months ago

Addressed by a merged fix. Please reopen with a fresh repro if you still see this on a current version.

github-actions[bot] · 2 months ago

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.