Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.229 ·

A whitespace-only prompt gets its own error

A prompt of only spaces to --print now gets its own clear error.

You'll notice Improvements
JSON All of v2.1.229
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
CLIArea: what it touches
ImprovementsKind: in v2.1.229,
ImprovementsSection of the release
What

Passing a prompt that contains only spaces or newlines to --print now reports that specifically instead of the generic missing-input error.

Details
  • Message: Error: Input contained only whitespace. Provide a prompt with text through stdin or as a prompt argument when using --print.
Evidence

Error: Input contained only whitespace. Provide a prompt with text through stdin or as a prompt argument when using --print

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

Read from
Names in the bundle--print
Since it was published

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 since Anthropic's documentation has since written up --print, on Claude Code changelog. * Fixed PermissionRequest hooks not firing in `--print` mode changelog see the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up --print, on Claude Code changelog.

See this entry in the whole of v2.1.229 →

Feedback