You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
Headless ModeArea: what it touches
ImprovementsKind: in v2.1.271,
ImprovementsSection of the release
What
In headless sessions (running without the interactive terminal UI), a turn waits for its turn-event hooks to finish before ending. That wait now races against new input arriving on the message queue: if a hook queues new input while the turn is waiting, the current turn ends immediately so the new input can run right away, and the still-pending hook events are carried over to be settled alongside the next turn instead of being lost.
Separately, the start of a turn now kicks off a "memory snapshot" fetch, replacing a previous call, wrapped in error handling so a failure doesn't stop the turn.
Why
This stops headless turns from stalling when a hook queues new work, letting that work run without dropping the hook results that were still in progress.