{"version":"2.1.330","anchor":"headless-repl-session-reports-held-on-max-turnsbudget","canonical_anchor":"headless-repl-session-reports-held-on-max-turnsbudget","heading":"Headless runs hold back REPL reports when they hit the turn or budget limit","tier":"notice","area":"Headless","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/headless-repl-session-reports-held-on-max-turnsbudget","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### Headless runs hold back REPL reports when they hit the turn or budget limit\n\nWhen a headless run stops at its turn or budget limit, reports from a REPL session are now held back or interrupted\n\n**Unclear.** It is not clear which conditions switch this handling on.\n\n**What**\n\nA headless run is one with no interactive screen, such as a script calling Claude Code. A headless run can stop because it reached its maximum number of turns (`error_max_turns`) or its spending limit (`error_max_budget_usd`). When that happens, reports from a REPL session, where Claude runs code, are now held back or interrupted.\n\nWhether results from that code carry over now depends on whether the REPL still has work outstanding. Before, it depended only on whether more messages were waiting in the queue.\n\n**Why**\n\nRuns that use the REPL now end more cleanly when a limit stops them.\n\n- Area: Headless\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}