MAX_THINKING_TOKENS: the real fix for broken extended thinking in Claude Code
The brief
Three stacked bugs make alwaysThinkingEnabled do nothing since v2.0.64.
Key points
- The working switch is the undocumented MAX_THINKING_TOKENS env var, which must be exported by a wrapper script because settings.json env does.
Sources
- r/ClaudeCodereddit.com