[DOCS] `/bg` and `←` detach docs omit `--allow-dangerously-skip-permissions` preservation for backgrounded sessions
Documentation Type
Missing documentation (feature not documented)
Documentation Location
https://code.claude.com/docs/en/agent-view
Section/Topic
"Permission mode, model, and effort" in the agent view guide
Current Documentation
The docs currently say:
The permission mode depends on how you started the session. Backgrounding an existing session with/bgor←keeps the current permission mode, so a session you switched toacceptEditsorautostays in that mode after detaching. Dispatching from the agent view input or runningclaude --bgfrom your shell uses thedefaultModefrom that directory's settings, or thepermissionModefrom the dispatched subagent's frontmatter.
And the permission-modes page says:
bypassPermissions: appears after you start with--permission-mode bypassPermissions,--dangerously-skip-permissions, or--allow-dangerously-skip-permissions; the--allow-variant adds the mode to the cycle without activating it
What's Wrong or Missing?
The agent-view page explains that /bg and ← keep the current permission mode after detaching, but it does not document the narrower v2.1.143 behavior where detaching also preserves --allow-dangerously-skip-permissions.
That omission matters because --allow-dangerously-skip-permissions does not start the session in bypassPermissions; it only makes bypassPermissions available later in the Shift+Tab cycle. A reader who backgrounds a session with /bg or ← cannot tell from the current docs whether the forked background worker still has bypassPermissions available to cycle into, or whether that optional mode is lost during detach.
Suggested Improvement
Add a short note to agent-view near the detach/background permission-mode description clarifying that /bg and ← preserve --allow-dangerously-skip-permissions when they fork a background worker.
For example:
Before:
Backgrounding an existing session with/bgor←keeps the current permission mode...
After:
Backgrounding an existing session with/bgor←keeps the current permission mode. If the attached session was started with--allow-dangerously-skip-permissions, the forked background worker also keepsbypassPermissionsavailable in itsShift+Tabcycle.
This could also cross-reference the permission-modes page so readers understand the difference between --dangerously-skip-permissions and --allow-dangerously-skip-permissions.
Impact
Medium - Makes feature difficult to understand
Additional Context
Affected Pages:
| Page | Line(s) | Context |
|------|---------|---------|
| https://code.claude.com/docs/en/agent-view | 308-314 | Detach/background behavior explains preserved permission mode but not preservation of --allow-dangerously-skip-permissions for the forked worker |
| https://code.claude.com/docs/en/permission-modes | 34-40 | Explains that --allow-dangerously-skip-permissions adds bypassPermissions to the Shift+Tab cycle, which is the behavior readers need when interpreting detached background workers |
Total scope: 2 pages affected
Version context: Changelog v2.1.143 says /bg and ← detach now preserve --allow-dangerously-skip-permissions, so the forked worker keeps bypass-permissions available in its Shift+Tab cycle.
3 Comments
Verified against the latest docs; this still appears unresolved.
Issue #59595 Verification
Title: [DOCS]
/bgand←detach docs omit--allow-dangerously-skip-permissionspreservation for backgrounded sessionsIssue Date: 2026-05-16
Verification Date: 2026-06-23
Status: RESOLVED
---
Issue Summary
This issue reports that the
agent-viewpage documents that/bgand←keep the current permission mode after detaching, but it does not document the v2.1.143 behavior where detaching also preserves--allow-dangerously-skip-permissions, so a reader cannot tell whether the forked background worker still hasbypassPermissionsavailable in itsShift+Tabcycle. The issue suggests adding a note clarifying that/bgand←preserve--allow-dangerously-skip-permissionswhen they fork a background worker.---
Verification Results
Claim 1: The
agent-viewpage does not document that/bgand←preserve--allow-dangerously-skip-permissionsStatus: RESOLVED
At https://code.claude.com/docs/en/agent-view, lines 282-289, the "From inside a session" section lists the configuration flags that carry through to the backgrounded session, including:
At the same page, line 293, the docs add an explicit note about the implication of carrying this flag through:
At https://code.claude.com/docs/en/agent-view, line 412, the
claude agentsflag description also documents that--allow-dangerously-skip-permissionsmakesbypassPermissionsavailable in each dispatched session'sShift+Tabcycle without starting in that mode.Verdict: The current
agent-viewpage explicitly documents that--allow-dangerously-skip-permissionsis one of the configuration flags that carries through to the backgrounded session, and clarifies that this keepsbypassPermissionsreachable in the backgrounded session — directly addressing the concern raised in the issue.---
Claim 2: The
permission-modespage lacks a clear cross-reference explaining the difference between--dangerously-skip-permissionsand--allow-dangerously-skip-permissionsStatus: RESOLVED
At https://code.claude.com/docs/en/permission-modes, line 37, the docs state:
At https://code.claude.com/docs/en/cli-reference, line 57, the CLI flag description reinforces this distinction:
Verdict: Both pages distinguish
--dangerously-skip-permissions(starts in bypass mode) from--allow-dangerously-skip-permissions(adds the mode to the cycle without activating it), and theagent-viewpage already cross-references both thepermission-modesandcli-referencepages for these flags.---
Current State
| Claim | Status |
|-------|--------|
| The
agent-viewpage documents that/bgand←preserve--allow-dangerously-skip-permissions| RESOLVED || The
permission-modespage distinguishes--allow-from non---allow-variants | RESOLVED |---
Suggested Fix
N/A - issue has been resolved.
---
References
--allow-dangerously-skip-permissions.--allow-dangerously-skip-permissionsthrough keepsbypassPermissionsreachable in the backgrounded session.claude agentsaccepting--allow-dangerously-skip-permissionsto makebypassPermissionsavailable in each dispatched session'sShift+Tabcycle.bypassPermissionsbecomes available in theShift+Tabcycle, including the--allow-variant.--allow-dangerously-skip-permissionsflag and its behavior./bgand←-detach preserve--allow-dangerously-skip-permissions.---
Conclusion & Recommendation
Primary Concern: The
agent-viewpage did not document that/bgand←detach preserve--allow-dangerously-skip-permissionsfor the forked background worker.Resolution Status: RESOLVED
Recommendation: CLOSE
The current
agent-viewdocumentation explicitly lists--allow-dangerously-skip-permissionsamong the configuration flags that carry through to the backgrounded session and clarifies that this keepsbypassPermissionsreachable in the backgrounded session'sShift+Tabcycle.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.