{"version":"2.1.337","anchor":"headless-turn-permission-denial-handling-and-attach-order","canonical_anchor":"headless-turn-permission-denial-handling-and-attach-order","heading":"Headless runs track permission denials differently and leave some usage out of totals","tier":"notice","area":"Elsewhere","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/headless-turn-permission-denial-handling-and-attach-order","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### Headless runs track permission denials differently and leave some usage out of totals\n\nHeadless turns now record permission denials as they happen, block disallowed tools from the start, and leave some usage out of the reported totals\n\n**Unclear.** Which usage counts as following unbilled usage, and so is now left out of the totals, is not clear.\n\n**What**\n\nA headless run is Claude Code working without its interactive screen, for example when another program drives it through the SDK (the developer kit for building on Claude Code). Several things in how a headless turn runs are different now:\n\n- Permission denials, the times a tool call is refused, are recorded as they happen.\n\n- Tools that are not allowed are blocked at the start of each turn.\n\n- The order of attached files and the list of saved files are passed along with your input when it is processed.\n\n- A certain kind of usage, recorded as following unbilled usage, is no longer added to the usage totals. Before, all usage was added.\n\n- If the turn is cancelled, it now stops through one extra step.\n\nA tool call is Claude using one of its tools, such as reading a file or running a command.\n\n**Why**\n\nIf you read usage or billing figures from headless or SDK sessions, the totals can now differ from before because some usage is left out.\n\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}