CLAUDE_CODE_EXTRA_BODY can no longer be used to inject the afk-mode beta header; only auto mode itself can send it
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.
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.
* 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` fieldschangelog see the edit
Anthropic's documentation has since written up CLAUDE_CODE_EXTRA_BODY, on Claude Code changelog.