Nonsense values in retry, MCP output and hook timeout env vars now fall back to defaults.
What's wrong with this entry?
CLAUDE_CODE_MAX_RETRIES, MAX_MCP_OUTPUT_TOKENS and CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS are now checked for being finite numbers before use. A non-numeric or infinite value falls back to the built-in default instead of corrupting the retry count, the MCP output token budget or the SessionEnd hook timeout.
- The existing warning about a retry count being clamped to the allowed maximum is unchanged.
CLAUDE_CODE_MAX_RETRIES=${t} clamped to ${wNa}
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.248
Session-end hook timeout parsing simplified
Both mention sessionend hook timeout