[DOCS] `/bg` preservation of MCP/settings/add-dir/plugin flags across respawn is undocumented

Status Fixed / completed
Maintainer reply None cached
Activity 3 comments · opened May 16, 2026 · closed Jun 1, 2026

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 /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.

Later on the same page they say:

Agent view accepts the same configuration flags as claude for 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:

/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.

The current agent-view page documents three related pieces separately:

  1. /bg starts a fresh background process.
  2. claude agents passes configuration flags through to sessions dispatched from agent view.
  3. 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 /bg carries 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.

View original on GitHub ↗

3 Comments

github-actions[bot] · 5 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/59590
  2. https://github.com/anthropics/claude-code/issues/59594
  3. https://github.com/anthropics/claude-code/issues/59595

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

coygeek · 4 months ago

Issue #59593 Verification

Title: [DOCS] /bg preservation of MCP/settings/add-dir/plugin flags across respawn is undocumented
Issue Date: 2026-05-16
Verification Date: 2026-05-31
Status: RESOLVED

---

Issue Summary

This issue reports that the agent-view documentation did not state that configuration flags (--mcp-config, --settings, --add-dir, --plugin-dir, --strict-mcp-config) are preserved when a session is backgrounded with /bg and later respawned from saved state. The changelog for v2.1.143 added this behavior but the docs lagged behind.

---

Verification Results

Claim 1: /bg preservation of configuration flags across respawn is undocumented

Status: 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:

Configuration flags from the original launch carry through to the backgrounded session, so its MCP servers, settings, and fallback model remain in effect: --mcp-config and --strict-mcp-config --settings --add-dir --plugin-dir --fallback-model --allow-dangerously-skip-permissions Directories you added during the session with /add-dir also carry through.

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 /bg and 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 /bg carries those settings into the forked background session...") has been addressed. The documentation now covers all the flags the issue listed, plus --fallback-model and --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 |
|-------|--------|
| /bg preservation of configuration flags across respawn is undocumented | RESOLVED |

---

Suggested Fix

N/A - issue has been resolved.

---

References

  • URL: https://code.claude.com/docs/en/agent-view
  • Lines 271-282: "Configuration flags from the original launch carry through to the backgrounded session, so its MCP servers, settings, and fallback model remain in effect" — lists all six flags plus /add-dir carry-through
  • Lines 457-458: Supervisor stops idle session processes but "the next time you attach, peek, or reply… the supervisor starts a fresh process from where it left off" — establishes respawn preserves state

---

Conclusion & Recommendation

Primary Concern: The agent-view page did not document that /bg preserves 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.

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.