CLAUDE_CODE_DISABLE_REPLAYED_THINKING_PROBE
Updated by Alex Sorokoletov
CLAUDE_CODE_DISABLE_REPLAYED_THINKING_PROBE is a Claude Code environment variable: Set to 1, it turns off the resend that strips earlier thinking from a request after a gateway returns an unknown 400 or 422.[1]. Added in v2.1.334 and still present in v2.1.334. It is listed in the official reference.
| Status | Present in v2.1.334 |
|---|---|
| Added | Added in v2.1.334 |
| Category | Models and thinking |
| Official docs | Listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export CLAUDE_CODE_DISABLE_REPLAYED_THINKING_PROBE=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_CODE_DISABLE_REPLAYED_THINKING_PROBE": "<value>"
}
}Release notes that mention it
- Claude Code Version Tracker: Undocumented Env Vars, Feature Gates & Models
- claude-code-env-vars-v2-1-334
Related variables
CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING: Disable adaptive thinking mode.CLAUDE_CODE_DISABLE_THINKING: Completely disable extended thinking.DISABLE_INTERLEAVED_THINKING: Interleaved thinking beta.CLAUDE_CODE_3P_PROBE_WROTE_OPUS_DEFAULT: Records the Opus model value written by the third-party model probe, so an ANTHROPIC_DEFAULT_OPUS_MODEL equal to it counts as auto-detected rather than user-set.CLAUDE_CODE_3P_PROBE_WROTE_SONNET_DEFAULT: Records the Sonnet model value written by the third-party model probe, so an ANTHROPIC_DEFAULT_SONNET_MODEL equal to it counts as auto-detected rather than user-set.CLAUDE_CODE_DISABLE_FAST_MODE: Disable the /fast toggle that uses the same model with faster output.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAPCLAUDE_CODE_DISABLE_MODEL_ACCESS_FALLBACK: Present in the v2.1.285 build and absent from that release's notes.
Frequently asked questions
What does CLAUDE_CODE_DISABLE_REPLAYED_THINKING_PROBE do?
Set to 1, it turns off the resend that strips earlier thinking from a request after a gateway returns an unknown 400 or 422.[1]
Which Claude Code version has CLAUDE_CODE_DISABLE_REPLAYED_THINKING_PROBE?
Added in v2.1.334 and still present in v2.1.334.
How do I set CLAUDE_CODE_DISABLE_REPLAYED_THINKING_PROBE?
Export it before starting Claude Code (export CLAUDE_CODE_DISABLE_REPLAYED_THINKING_PROBE=value), or add it to the "env" object in ~/.claude/settings.json to apply it to every session.
All variables, searchable: Claude Code environment variables.