What
--fork-session starts a new session ID instead of reusing the original when you resume or continue. If you combine it with launching a cloud session, or with resuming or continuing one, Claude Code now stops with this error:
"Error: --fork-session can't fork a cloud session, so nothing was opened or sent."
Why
Before, nothing checked for this combination, so what happened was not defined. You now get a clear error and nothing runs.
Names in the bundle--fork-session
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 Use Claude Code in the cloud touched a line naming --fork-session after this was published.
| `--fork-session can't fork a cloud session, so nothing was opened or sent.` | To message the existing cloud session, run `claude -p "your message" --cloud <session-id>` without `--fork-session`. |claude-code-on-the-web see the edit
Confirmed since
Anthropic's documentation has since written up --fork-session, on Manage sessions.
Sessions created with `/branch` or `--fork-session` get their own session IDs and appear as separate rows.sessions 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 --fork-session, on Manage sessions.