You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
Bug FixesKind: in v2.1.267,
Bug FixesSection of the release
What
Claude 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.
Why
This 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.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed sinceAnthropic's documentation has since written up CLAUDE_CODE_EXTRA_BODY, on Claude Code changelog.* Changed `/bug` and `/feedback` reports to include only model-behavior params (model, system prompt, tools) from the last API request, omitting request metadata and `CLAUDE_CODE_EXTRA_BODY` fieldschangelogsee the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up CLAUDE_CODE_EXTRA_BODY, on Claude Code changelog.