Use it now Notable
WebFetch requests now enforce a timeout and fail with a clear deadline error if exceeded
What
WebFetch requests now have a deadline enforced on them. The deadline comes from the CLAUDE_CODE_WEBFETCH_DEADLINE_MS environment variable if it's set, otherwise from a remote configuration value, capped at a maximum. If a fetch doesn't complete within that time, it's aborted and fails with a "Fetch did not complete within the deadline" error.
Why
This prevents a WebFetch call from hanging indefinitely, giving a clear, specific error when a fetch takes too long instead of leaving it to stall.
Names in the bundleCLAUDE_CODE_WEBFETCH_DEADLINE_MS
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's release notes agree
Fixed WebFetch hanging indefinitely on a server that keeps the response open without finishing; a fetch now fails after 300 seconds. Set…
The name it cites is new in this build
New in this build: CLAUDE_CODE_WEBFETCH_DEADLINE_MS