What's wrong with this entry?
A new environment variable that sets a hard timeout for receiving the first response headers on streaming API calls. When the API does not return headers within the configured time, the request is aborted with a clear error instead of hanging.
CLAUDE_CODE_CONNECT_TIMEOUT_MS=15000 claude # abort if no headers within 15 s- Applies only to streaming requests (event-stream, Bedrock eventstream,
:streamRawPredictpaths) - Error message: "Request timed out: no response headers after 15s (CLAUDE_CODE_CONNECT_TIMEOUT_MS)"
- Warning logged: "[TTFB] no response headers after Nms — aborting (CLAUDE_CODE_CONNECT_TIMEOUT_MS)"
- Previously there was no way to configure a TTFB timeout; streaming requests would wait indefinitely for the first byte before any timeout applied
New yVu() function and timeout logic — search for "CLAUDE_CODE_CONNECT_TIMEOUT_MS" and "[TTFB] no response headers after"
Strings lifted out of the shipped bundle, so the claim above can be checked against them.