{"version":"2.1.299","anchor":"headless-immediate-slash-commands-run-ahead-of-a-turn","canonical_anchor":"headless-immediate-slash-commands-run-ahead-of-a-turn","heading":"Some slash commands can run mid-turn when Claude Code is driven by another program","tier":"notice","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.299\/e\/headless-immediate-slash-commands-run-ahead-of-a-turn","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.299","markdown":"### Some slash commands can run mid-turn when Claude Code is driven by another program\n\nIn stream-json mode, slash commands that support inline output can now run while Claude is still working on a reply\n\n**Unclear.** It is not clear what condition decides whether this mid-turn path is used.\n\n**What**\n\nWhen another program drives Claude Code through stream-json mode, the streaming JSON input and output used by the SDK, some slash commands can now run while a turn is under way. A turn is one round of Claude working on a request. This applies to commands that support showing their result inline. Claude Code also now keeps track of commands that were declined and not answered.\n\n**Why**\n\nPrograms built on the SDK may get some slash commands answered straight away instead of waiting for the current reply to end.\n\n- Area: SDK\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}