{"version":"2.1.331","anchor":"held-deny-resume-and-outside-text-turns-in-the-headless-engi","canonical_anchor":"held-deny-resume-and-outside-text-turns-in-the-headless-engi","heading":"Messages can be marked as arriving outside a normal turn, which changes queueing, headless runs and skill permission resets","tier":"notice","area":"SDK","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/held-deny-resume-and-outside-text-turns-in-the-headless-engi","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Messages can be marked as arriving outside a normal turn, which changes queueing, headless runs and skill permission resets\n\nA new outsideTextTurn marker on dispatched messages affects the message queue, headless sessions and when skill-granted permissions are reset\n\n**Unclear.** What sets `heldDenyResume`, and what a host program sees differently, is not shown.\n\n**What**\n\nA turn is one exchange where you send something and Claude answers. Messages Claude Code sends to Claude can now carry an `outsideTextTurn` marker. Several parts of Claude Code act on it:\n\n- The message queue: sent messages can carry `outsideTextTurn`, and delivering a message now also tells the queue to stop waiting (`settleWaiting()`).\n\n- Headless sessions, which run Claude Code with no interactive screen, for example from the SDK: turns marked `outsideTextTurn`, `pollEventDelivery` or `pollEmptyDispatch` are handled specially. Rows now carry `rowSource`. The session accepts `heldDenyResume`, and a denied permission whose request has lost its owner now triggers a new cleanup.\n\n- Skill permissions: a skill can let some tools run without asking, and Claude Code resets that list each turn unless `skipSkillPermissionReset` is set. The reset now also runs when `outsideTextTurn` is true, even if `skipSkillPermissionReset` is set. Before, `skipSkillPermissionReset` alone decided it.\n\n**Why**\n\nTools a skill allowed may now be reset in turns that do not come from your typed text, even where the reset used to be skipped. Programs that host Claude Code through the SDK may see denied permissions resumed and cleaned up differently.\n\n- Area: SDK\n- Names: `heldDenyResume`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: yes"}