Claude Code 2.1.294 fixes prompt hooks that let through the actions they were written to block
Anthropic released Claude Code 2.1.294 on October 8, 2026. It fixes prompt and agent hooks phrased as instructions, which could allow exactly the actions they were meant to stop. Version 2.1.295 followed the same day with an onFailure setting that makes a crashed or timed-out command or HTTP hook block the action. Releases 2.1.292 and 2.1.293 from earlier in the week closed several permission and sandbox gaps.
Anthropic shipped four Claude Code releases between October 6 and October 8, 2026, and the fix that matters most is in 2.1.294. Hooks of the prompt and agent types, when written as an instruction such as “Block commands that…”, could allow exactly the actions they were supposed to block. Version 2.1.295 arrived the same day with an option that turns a failing hook into a refusal instead of a pass.
What went wrong with prompt hooks
Hooks are checks you define yourself, which Claude Code runs at fixed points, for example before a tool call. Most are shell commands or HTTP endpoints. A prompt hook instead sends its text to a Claude model for a single-turn evaluation, and the model returns its decision as JSON. An agent hook, still marked experimental, starts a subagent that can use tools like Read, Grep, and Glob before deciding.
Version 2.1.294 fixes prompt and agent hooks whose text was phrased as an instruction, such as one beginning “Block commands that”. Those hooks allowed what they should have blocked. The release notes do not say which version introduced the problem. The same release improves how such hooks are judged on the Stop and SubagentStop events, so Claude is less likely to stop early.
A failing hook can now block
Version 2.1.295 adds onFailure: "block" for command and HTTP hooks. With it, a hook that cannot start, times out, or exits with an unexpected code blocks the action instead of letting it through.
The same release fixes the --tools and --restricted options, which did not apply to built-in tools that register after launch. It also fixes Claude in Chrome, which did not apply a site deny rule written with port 80 (host:80) to plain http:// pages on that host.
Earlier fixes in the same week
Version 2.1.292, released on October 6, 2026, and version 2.1.293, released on October 7, 2026, carried several more permission and sandbox fixes.
- In 2.1.292, flagged as a security fix: approvals from a
PreToolUsehook and auto mode could skip the permission prompt for file reads from network paths in the Windows UNC format. - In 2.1.292: sandboxed commands could read the staged copies of files uploaded for
/ultrareviewunder~/.claude/seed-admin. - In 2.1.292: subagents defined with
permissionMode: autoentered auto mode even when it was unavailable, for example because settings disabled it. - In 2.1.293: the
claude agentscommand offered bypass permissions that background sessions then ignored when consent was saved only in.claude/settings.local.jsonor a--settingsfile. It now asks for consent first. - In 2.1.293, on Windows: stopping a status line, hook, or shell command could terminate an unrelated process that had been given the same process ID.
„blocks the action instead of letting it through“
Sources
Related
OpenClaw 2026.10.2 stops long tool output from slipping credentials past redaction
A bug in OpenClaw's secret masking let a credential through whenever it straddled the boundary between two slices of a long text. The fix ships in 2026.10.2 along with repaired updates from 2026.10.1 and a new compaction default for OpenAI and Anthropic API keys.
OpenClawverified

OpenClaw 2026.10.1 lets agents search installed skills and changes how sessions message each other
OpenClaw released version 2026.10.1 on October 10, 2026, its first stable release since 2026.9.7. Agents can now search the skills installed on a machine and read only the one a task needs, instead of carrying the whole library in the prompt. Opt-in MCP Apps run beside chat, and full backups can go to an external drive or Cloudflare R2. Three changes can break existing setups: session-to-session messaging, the old required argument, and Workboard data stored before July 2026.
OpenClawverified
GitHub Copilot ships a local sandbox for agent commands and lets its CLI pick models from Ollama
On October 7, 2026, GitHub made local sandboxing for Copilot generally available in the Copilot CLI, the GitHub Copilot app, and VS Code sessions that use Agent Host, at no extra cost. The sandbox limits what a command Copilot runs can read, write, and reach on the network, and it is off until you or your organization turn it on. The same day the CLI gained a picker for models served by a local Ollama instance, and Claude Haiku 5.5 joined the model list for paid plans.
GitHub Changelogverified
