You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
Cloud SessionsArea: what it touches
ImprovementsKind: in v2.1.288,
ImprovementsSection of the release
Unclear The exact wording the errors now use in each case is not known.
What
Claude Code can start a cloud session from the command line with --cloud or --environment. It can also run headless, meaning non-interactively, with no chat screen, as in claude -p. When you misuse these options, the error messages used to name --environment no matter which flag you had typed. Before, a headless run without a prompt said: Error: non-interactive --environment requires a prompt (positional or stdin).
The flag name in these errors is now filled in from the flag you actually used, rather than hardcoded as --environment.
The text in front of the message is also filled in and is no longer always Error: .
The message saying an option cannot be combined with --continue is built from that same prefix.
Why
If you started a session with --cloud, the error now points at --cloud instead of a flag you never typed, so it is easier to see what to fix. Scripts that match on the exact wording of these errors may need updating.
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 sinceA small documentation edit on Run Claude Code programmatically touched a line naming --continue after this was published.Use `--continue` to continue the most recent conversation, or `--resume` with a session ID to continue a specific conversation. On Claude Code v2.1.257 or later, when you pass `--continue`, Claude Code opens a [background session](/docs/en…headlesssee the edit
Confirmed sinceAnthropic's documentation has since written up --continue, on Claude Code changelog.* Fixed plan mode not being restored when resuming a session with `--continue` or `--resume <session-id>` in the terminalchangelogsee the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtThe exact wording the errors now use in each case is not known.
Anthropic's documentation agreesAnthropic's documentation has since written up --continue, on Claude Code changelog.