Claude Code v2.1.295 Update - Enhanced Hook Failure Blocking and Timeout Control

Claude Code added the onFailure: "block" option to halt operations when command or HTTP hooks fail. The Claude app gateway introduced upstream_ttfb_ms timeout s

Claude Code · Release v2.1.295 · 2026-10-08

Claude Code added the onFailure: "block" option to halt operations when command or HTTP hooks fail. The Claude app gateway introduced upstream_ttfb_ms timeout settings to limit stream start delays from cloud upstreams like Bedrock and Vertex and trigger failover. An optional models list for per-model upstream routing and the CLAUDE_CODE_RETRY_WATCHDOG_MAX_WAIT_MS environment variable to cap retry wait times were added. [1m] model request failures, remote MCP server reconnection loops, Bash tool invocation errors, and numerous other bugs were fixed.

weltiq perspective: Improved API timeout control and failover logic enhance the stability of automated execution strategies, while the hook failure blocking option can prevent incomplete executions in backtesting environments.

Release Notes Excerpt

What's changed Added onFailure: "block" for command and HTTP hooks: a hook that can't start, times out, or exits with an unexpected code blocks the action instead of letting it through Added Program Status Protocol (OSC 7501) support: terminals that implement it can show whether Claude Code is working, waiting on you, or done Added quoted text to the /copy picker, so a drafted message copies without its > markers Added a warning to claude plugin install , enable , disable and marketplace add when the settings file they write to does not load Added a line on stderr, when it is a terminal, that says what a claude -p run is waiting for when it stays open after its last turn Added support for ti…

Source: https://github.com/anthropics/claude-code/releases/tag/v2.1.295