{"version":"2.1.267","anchor":"claude-code-extra-body-can-no-longer-inject-the-afk-mode-a","canonical_anchor":"claude-code-extra-body-can-no-longer-inject-the-afk-mode-a","heading":"CLAUDE_CODE_EXTRA_BODY can no longer inject the 'afk-mode' anthropic-beta","tier":"notice","area":"Elsewhere","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.267\/e\/claude-code-extra-body-can-no-longer-inject-the-afk-mode-a","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.267","markdown":"### CLAUDE_CODE_EXTRA_BODY can no longer inject the 'afk-mode' anthropic-beta\n\nCLAUDE_CODE_EXTRA_BODY can no longer be used to inject the afk-mode beta header; only auto mode itself can send it\n\n**What**\n\nClaude Code now strips any `afk-mode` value out of the beta-feature list in a custom `CLAUDE_CODE_EXTRA_BODY` (an environment variable that merges extra fields into every API request). If you had set that beta yourself, it's now removed automatically with a warning, because only Claude Code's own auto mode is allowed to send it.\n\n**Why**\n\nThis stops a custom request body from turning on behavior meant only for auto mode, which sends its own `afk-mode` beta header through the normal request path rather than through `CLAUDE_CODE_EXTRA_BODY`.\n\n- Area: Elsewhere\n- Names: `CLAUDE_CODE_EXTRA_BODY`\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5"}