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.