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

Claude Code v2.1.309 ·

Headless sessions can report a turn that starts before setup finishes

In headless mode, a turn that starts before the startup message was sent now triggers an optional onTurnBeganBeforeInit callback

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

In headless mode, Claude Code runs without its interactive screen and is driven by another program. A turn is one exchange where Claude handles a message. Sometimes a turn begins before the startup message has been sent. When that happens, the session now calls an optional onTurnBeganBeforeInit callback, which is a function the controlling program can supply. If that function fails, the error is logged and the turn carries on.

Why

Programs that run Claude Code can measure when turns begin before startup has finished. A fault in their own callback will not stop the turn.

Read from
Names in the bundleonTurnBeganBeforeInit

See this entry in the whole of v2.1.309 →

Feedback