You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
SessionsArea: what it touches
ImprovementsKind: in v2.1.281,
ImprovementsSection of the release
What
A background session is a Claude Code session that keeps running after you leave it, started with claude --bg, /bg or the left arrow. Claude Code also sometimes relaunches itself. This release changes what such a session inherits from the one that started it.
Permission setup takes a new relaunchSessionAddDirs input and also reads addDirs from the background session's permission rules. It adds those directories as session directories and merges any new ones into the session's list, returned as inheritedSessionDirectories. Directories passed with --add-dir still count as command-line directories.
Sending a session to the background with the left arrow now includes addDirs in its permission rules, not only its allow and deny rules. The agents dispatch now takes extra arguments from a helper instead of only --restricted.
Workspace trust (whether you have told Claude Code to trust a folder):
When claude --bg or /bg dispatches a session, the environment passed to it can now include CLAUDE_BG_WORKSPACE_TRUSTED set to 1. This happens only when the launcher passes a trusted flag.
When a background or bridge session reattaches, Claude Code now checks whether trust is recorded for the directory. It also accepts CLAUDE_BG_WORKSPACE_TRUSTED when a path check passes.
If trust is missing, it logs "Workspace trust is not recorded for this directory; continuing as an untrusted session (hooks and project settings env stay off)". It then skips the steps that need trust: loading hooks held for trust, warming the recall index and watching memory. Before, these steps ran without a trust check.
If the trust variable is absent, was dropped by the background service (reattachEnvDropped), or the dispatch had to be rescued, a warning is logged. When the session is started from a shell, the warning is also printed to the terminal. It says the session started without the terminal's home-directory trust, "so hooks and project settings from your home directory stay off in it".
Why
Directories you added during a session are no longer lost when it moves to the background or relaunches. A reattached session no longer loads hooks (your own commands that run on events) or project settings without a trust decision. When trust does not carry over, you are told why those hooks and settings are missing instead of finding out by surprise.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed sinceAnthropic's documentation has since written up /bg, on Manage multiple agents with agent view.| v2.1.281 | A [`--setting-sources`](/docs/en/cli-reference#cli-flags) restriction [carries over](#what-carries-over-when-you-background) to a session you background with `←` or `/bg` and to the sessions you dispatch from agent view. Befor…agent-viewsee the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up /bg, on Manage multiple agents with agent view.
Anthropic's release notes agreeFixed --setting-sources (and SDK settingSources) not being forwarded to spawned sessions: teammates, /bg, claude agents sessions and…
The name it cites is new in this buildNew in this build: CLAUDE_BG_WORKSPACE_TRUSTED