When a request fails, Claude Code waits and then tries again. The longest it will wait is now the smallest of these limits:
- a fixed built-in limit
- a second limit that applies only under a certain condition
- the value of
CLAUDE_CODE_RETRY_WATCHDOG_MAX_WAIT_MS, in milliseconds
The CLAUDE_CODE_RETRY_WATCHDOG_MAX_WAIT_MS limit only counts when CLAUDE_CODE_RETRY_WATCHDOG is also set. Both are environment variables, values you set in your shell before starting Claude Code.
Claude Code can also now send a request again when a git comparison gives a different answer. This is reported with the message "git answered differently, so the request is sent again".
These settings control how long Claude Code waits before trying a failed request again.