[FEATURE] Agent view dispatch should support --allow-dangerously-skip-permissions

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

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

There's no way to set the permission mode when dispatching a session from the agent view input. If I want to run a session with --allow-dangerously-skip-permissions, it's just not possible from agent view.

The current workarounds are:

  • Set defaultMode in settings to apply globally, which is too broad
  • Set permissionMode in a subagent's frontmatter, which requires creating a subagent definition for what should be a one-off dispatch

Proposed Solution

Support --allow-dangerously-skip-permissions (or a shorthand) as a modifier when dispatching from the agent view input. Could be:

  • A prefix/flag in the dispatch input itself
  • A keybinding that toggles the permission mode for the next dispatch (e.g., Ctrl+P to cycle through modes before hitting Enter)
  • A persistent setting within agent view that applies to all new dispatches from that session

The existing guard (requiring the user to have accepted bypass mode interactively at least once) should still apply.

Priority

Medium - Would be very helpful

Feature Category

Interactive mode (TUI) / Agent view

Additional Context

Related to #39889, which covers the same gap for mobile/desktop dispatch. This is specifically about the CLI claude agents TUI.

View original on GitHub ↗

10 Comments

github-actions[bot] · 3 months ago

Found 1 possible duplicate issue:

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

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 · 3 months ago

Not a duplicate. #39889 is about mobile/desktop dispatch ignoring the user's saved model and permission-mode preferences. This is about the CLI claude agents TUI having no mechanism at all to specify --allow-dangerously-skip-permissions when dispatching a session from the input.

JaimeOrtegaxyz · 3 months ago

+1 on this one.

Also: once you're inside a session that was dispatched from agent view (without the flag), Shift+Tab cycling doesn't include bypass permissions either (since its never started that way), so there's no in-session recovery.

Anything started from agent view is effectively locked out from using --dangerously-skip-permissions, which greatly reduces it's usefulness.

Simplest fix imo would have it be persistent. If I have a session running with certain permissions, I would rarely want to change them and would almost always prefer to start again with the last permissions used (and can easily cycle to something different inside the session in the few occasions when I don't).

kenzo47 · 3 months ago

Same here, agents is pretty much unusable for me without this feature, I guess I'll stick to 6 terminal tabs for now.

Stener1 · 3 months ago

+1. Adding another shape of this same problem:

If I launch the parent session with claude --permission-mode bypassPermissions in a separate terminal
and then dispatch a child via /bg, the child still prompts — consistently for
every Bash call, and intermittently for other tool uses (file edits etc.). The
parent's mode doesn't inherit; the child falls back to defaultMode from
settings or the subagent's permissionMode frontmatter, per the docs.

That means even users who have already accepted bypass interactively (and
launched the parent with it) can't get a /bg-dispatched session to run
unattended without editing settings.json or creating a subagent definition for
what should be a one-off.

Two ways this could be solved, either would work for me:

  1. Inherit from parent session — if the parent was launched with

bypassPermissions (and the user has accepted that mode previously), /bg
dispatches inherit it by default.

  1. The flag/keybinding approach already proposed in the OP — e.g. a prefix

in the dispatch input, or Ctrl+P to cycle modes before Enter.

(1) feels like the least-surprise behavior since the parent shell explicitly
opted in. Running multiple agent-view windows is the main use case the feature
seems designed for, and right now each /bg dispatch needs the user back at
the keyboard for Bash calls in particular, which defeats the point.

bogini collaborator · 3 months ago

Thanks for the request — landed.

claude agents now accepts --permission-mode, --model, and --effort to set defaults for every session you dispatch from that view:

claude agents --permission-mode plan --model opus --effort high

The active defaults appear in the footer below the dispatch input, and the header shows the model that dispatched sessions will use. The existing bypass/auto consent guard still applies — those modes are refused until you've accepted them once interactively.

Shipping in v2.1.142 (tomorrow).

jonathanlaniado · 3 months ago

@bogini, claude agents --allow-dangerously-skip-permissions does not work properly.

  1. It defaults to bypass permissions for new chats, which is not the expected functionality for --allow-dangerously-skip-permissions. That is only expected for --dangeously-skip-permissions.
  2. It does not allow you to choose bypass permissions for existing chats.
goutham1220 · 3 months ago

@jonathanlaniado Found that you can run claude agents --permission-mode bypassPermissions which allows you to dispatch agents with bypass permissions; FYI that any existing agents in the view will not inherit bypass permissions -- you will have to redispatch another agent to handle that task autonomously

jonathanlaniado · 3 months ago

@goutham1220 Right, --permission-mode bypassPermissions works for new sessions. The issue is specifically with --allow-dangerously-skip-permissions, which should only make bypass available in the Shift+Tab cycle without defaulting to it. Right now it behaves identically to --dangerously-skip-permissions, which defeats the purpose of having two separate flags.

The existing session limitation is also a gap since there's no way to opt an already-running session into bypass after the fact.

Filed #59406 to track both.

github-actions[bot] · 1 month 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.