[DOCS] `/bg` preservation of MCP/settings/add-dir/plugin flags across respawn is undocumented
Documentation Type
Missing documentation (feature not documented)
Documentation Location
https://code.claude.com/docs/en/agent-view
Section/Topic
From inside a session, Settings, plugins, and MCP servers, and the background-session respawn lifecycle
Current Documentation
The docs currently say:
Run/backgroundor its alias/bgto move the current conversation into a background session. Pass a prompt such as/bg run the test suite and fix any failuresto 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.
Later on the same page they say:
Agent view accepts the same configuration flags asclaudefor loading settings, plugins, MCP servers, and additional directories. Each flag applies to agent view itself and is passed through to every session you dispatch from it, so a plugin or MCP server you load this way is available in those sessions too.--settings <file-or-json>--add-dir <path>--plugin-dir <path>--mcp-config <file-or-json>--strict-mcp-config
The lifecycle section also says:
Once a session finishes and sits unattached for about an hour, the supervisor stops its process to free resources. The transcript and state stay on disk, and the next time you attach, peek, or reply, the supervisor starts a fresh process from where it left off.
What's Wrong or Missing?
Changelog v2.1.143 says:
/bgnow preserves--mcp-config,--settings,--add-dir,--plugin-dir, and--strict-mcp-config, so backgrounded sessions keep their MCP servers and settings across respawn.
The current agent-view page documents three related pieces separately:
/bgstarts a fresh background process.claude agentspasses configuration flags through to sessions dispatched from agent view.- Finished background sessions are later restarted from saved state.
What it does not say is that these same session-scoped configuration flags are preserved when you background an already-running session with /bg, and that they remain in effect when the background session is respawned later.
That leaves a concrete documentation gap for MCP- and config-dependent workflows. A reader cannot tell from the current page whether a session started with custom MCP servers, settings overrides, added directories, plugin directories, or --strict-mcp-config will keep those inputs after /bg forks the session and the supervisor later restarts it.
Suggested Improvement
Add a short note to agent-view near the /bg and session-lifecycle documentation stating that backgrounding an interactive session preserves these session-level startup flags across later respawns.
Suggested wording:
If the current session was started with--mcp-config,--settings,--add-dir,--plugin-dir, or--strict-mcp-config, running/bgcarries those settings into the forked background session. They stay in effect if the session is later restarted from saved state.
This would make it clear that /bg preserves the same MCP servers, settings overrides, added directories, plugin directories, and strict MCP behavior after idle retirement or any other respawn described on the page.
Impact
Medium - Makes feature difficult to understand
Additional Context
Affected Pages:
| Page | Line(s) | Context |
|------|---------|---------|
| https://code.claude.com/docs/en/agent-view | 250-252, 326-338, 372 | Documents /bg, agent-view flag pass-through, and respawn behavior separately, but not that /bg preserves --mcp-config, --settings, --add-dir, --plugin-dir, and --strict-mcp-config across respawn |
Total scope: 1 page affected
Source: Changelog v2.1.143
Changelog entry: /bg now preserves --mcp-config, --settings, --add-dir, --plugin-dir, and --strict-mcp-config, so backgrounded sessions keep their MCP servers and settings across respawn.
3 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Issue #59593 Verification
Title: [DOCS]
/bgpreservation of MCP/settings/add-dir/plugin flags across respawn is undocumentedIssue Date: 2026-05-16
Verification Date: 2026-05-31
Status: RESOLVED
---
Issue Summary
This issue reports that the
agent-viewdocumentation did not state that configuration flags (--mcp-config,--settings,--add-dir,--plugin-dir,--strict-mcp-config) are preserved when a session is backgrounded with/bgand later respawned from saved state. The changelog for v2.1.143 added this behavior but the docs lagged behind.---
Verification Results
Claim 1:
/bgpreservation of configuration flags across respawn is undocumentedStatus: RESOLVED
At https://code.claude.com/docs/en/agent-view, the "From inside a session" section now includes an explicit paragraph (lines 271-282) documenting exactly this behavior:
The respawn lifecycle is documented later on the same page (lines 457-458), confirming that stopped sessions "start a fresh process from where it left off." Together, these sections establish that configuration flags persist across
/bgand through later respawns.The suggested wording in the issue ("If the current session was started with
--mcp-config,--settings,--add-dir,--plugin-dir, or--strict-mcp-config, running/bgcarries those settings into the forked background session...") has been addressed. The documentation now covers all the flags the issue listed, plus--fallback-modeland--allow-dangerously-skip-permissions.Verdict: The documentation gap has been filled. The page now clearly states that configuration flags carry through to backgrounded sessions and persist through respawn.
---
Current State
| Claim | Status |
|-------|--------|
|
/bgpreservation of configuration flags across respawn is undocumented | RESOLVED |---
Suggested Fix
N/A - issue has been resolved.
---
References
/add-dircarry-through---
Conclusion & Recommendation
Primary Concern: The
agent-viewpage did not document that/bgpreserves configuration flags across session respawn.Resolution Status: RESOLVED
Recommendation: CLOSE
The documentation now explicitly lists the configuration flags that carry through to backgrounded sessions and describes the respawn lifecycle that preserves them. The gap reported by the issue has been fully addressed.
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.