When resuming a --print session, MCP task-sidecar restoration (restoreMcpTasks) is checked against a "tasks gate" before running. That gate function currently always returns false unconditionally, with no dependency on any runtime flag or env var, so the restore path always logs a skip message and returns; restoreMcpTasks is unreachable in this build.
Names in the bundle--print
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.
Added since
A small documentation edit on CLI reference touched a line naming --print after this was published.
| `--bg`, `--background` | Start the session as a [background agent](/docs/en/agent-view) and return immediately. Prints the session ID and management commands. Combine with `--exec` to run a shell command as a background job instead of a …cli-reference see the edit
Confirmed since
Anthropic's documentation has since written up --print, on Claude Code changelog.
* Fixed PermissionRequest hooks not firing in `--print` modechangelog see the edit
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agrees
Anthropic's documentation has since written up --print, on Claude Code changelog.