Tip: Claude Code WebFetch now times out after 300 seconds, adjustable with CLAUDE_CODE_WEBFETCH_DEADLINE_MS
Claude Code Changelog·medium signal
Before 2.1.268, WebFetch could hang forever on a server that kept the connection open without finishing the response, which stalls unattended runs. A fetch now fails after 300 seconds. CLAUDE_CODE_WEBFETCH_DEADLINE_MS sets a different deadline, and 0 turns it off. Headless pipelines that fetch many URLs should set a shorter deadline so one slow host can't eat a whole agent's time budget.