Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.333 ·

New setting makes Claude Code wait for the host's first message before starting

With CLAUDE_CODE_AWAIT_FIRST_MESSAGE set, Claude Code holds turns it queued for itself until the host program sends its first message

Use it now Notable New Features
JSON All of v2.1.333
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
SDKArea: what it touches
New FeaturesKind: in v2.1.333,
What probably matters to youSection of the release
What

Some programs run Claude Code inside themselves, for example through the SDK. Such a program is called the host here. Claude Code can queue up messages for itself, which would make it start a turn (a round of work) on its own.

When the environment variable CLAUDE_CODE_AWAIT_FIRST_MESSAGE is set, Claude Code keeps those self-queued messages back. It releases them once the host has sent its first message. It also logs how many messages it kept.

Why

A host that embeds Claude Code, including one resuming an earlier session, can be sure Claude Code does not start working on its own before the host has said anything.

See this entry in the whole of v2.1.333 →

Feedback