Hung requests are aborted when headers never arrive, and you can tune the window.
What's wrong with this entry?
Streaming requests, and Bedrock POSTs to the invoke path, are now wrapped in a watchdog that aborts if the first response headers never arrive. The budget is computed from the request body size and API_TIMEOUT_MS, and CLAUDE_STREAM_FIRST_BYTE_TIMEOUT_MS overrides it. Time the machine spent asleep is measured and reported separately, so a laptop that suspended mid-request is not mistaken for a hung server.
- Applies to armed requests only; other calls keep their existing timeout behaviour.
- Aborts are reported under the
tengu_api_no_response_timeoutevent with the sleep-adjusted duration.
tengu_api_no_response_timeout
Strings lifted out of the shipped bundle, so the claim above can be checked against them.