claude-code - 💡(How to fix) Fix [DOCS] Agent view docs omit that `/bg` preserves the current permission mode [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#58865Fetched 2026-05-14 03:37:33
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
labeled ×2

Fix Action

Fix / Workaround

To move a session you already have open into agent view, run /bg inside it, or press on an empty prompt to background it and open agent view in one step. The session keeps running and appears as a row alongside the ones you dispatched.

A dispatched session reads its settings and permission mode from the directory it runs in, the same as if you had started claude there. Dispatching from the agent view input doesn't pass a permission mode, so the session uses the defaultMode from that directory's settings or the permissionMode from the dispatched subagent's frontmatter.

The current page documents how to background an existing session and separately explains how newly dispatched sessions choose a permission mode, but it never states what happens to the active mode when you background the session you are already in.

RAW_BUFFERClick to expand / collapse

Documentation Type

Missing documentation (feature not documented)

Documentation Location

https://code.claude.com/docs/en/agent-view

Section/Topic

"From inside a session" and "Permission mode and settings"

Current Documentation

The Agent view page currently says:

To move a session you already have open into agent view, run /bg inside it, or press on an empty prompt to background it and open agent view in one step. The session keeps running and appears as a row alongside the ones you dispatched.

Run /background or its alias /bg to move the current conversation into a background session. Pass a prompt such as /bg run the test suite and fix any failures to give one more instruction first.

Backgrounding from an interactive session starts a fresh process that resumes from the saved conversation, so running subagents, monitors, and background commands do not transfer to it.

A dispatched session reads its settings and permission mode from the directory it runs in, the same as if you had started claude there. Dispatching from the agent view input doesn't pass a permission mode, so the session uses the defaultMode from that directory's settings or the permissionMode from the dispatched subagent's frontmatter.

What's Wrong or Missing?

As of v2.1.141, backgrounding the current session via /bg or the empty-prompt arrow shortcut preserves the session's current permission mode.

The current page documents how to background an existing session and separately explains how newly dispatched sessions choose a permission mode, but it never states what happens to the active mode when you background the session you are already in.

That leaves an important gap for users who switch to plan, acceptEdits, auto, or another non-default mode before backgrounding. The docs currently do not tell them that the backgrounded session keeps that active mode instead of recalculating from the directory's defaultMode.

Suggested Improvement

Add an explicit note in the Agent view docs that distinguishes these two cases:

  1. Dispatching a new background session from agent view or claude --bg uses the launched session's configured mode (--permission-mode, subagent frontmatter, or the directory's defaultMode).
  2. Backgrounding the current session with /bg or the empty-prompt arrow shortcut preserves the current session's active permission mode.

Suggested wording for the existing page:

When you background the session you're already in with /bg or the empty-prompt arrow shortcut, Claude preserves the session's current permission mode. This differs from dispatching a new background session from agent view, which starts with the mode configured for that directory or launch command.

Impact

Medium - Makes feature difficult to understand

Additional Context

Affected Pages:

PageLine(s)Context
https://code.claude.com/docs/en/agent-view65, 248-250, 296-300Documents /bg, the empty-prompt arrow shortcut, and how dispatched sessions choose a mode, but does not state that backgrounding the current session preserves its active permission mode

Total scope: 1 page affected

Version context: This gap was found while cross-referencing the v2.1.141 release entry about background agents preserving the current permission mode.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [DOCS] Agent view docs omit that `/bg` preserves the current permission mode [1 participants]