Claude Code: hooks can now block an action when they fail
1 month ago
What changed in Claude Code 2.1.294 and 2.1.295: command and HTTP hooks can block an action when they fail, hooks written as instructions block what they name, terminals that support the Program Status Protocol show when Claude Code is waiting on you, 1M-context models stop failing behind gateways that refuse the beta, three terminal freezes are fixed, remote MCP servers reconnect in headless runs, and claude -p prints every turn.
Links
Ask about this presentation
Chapters
Show transcriptHide transcript
Command and HTTP hooks can now fail closed. Set on failure to block, and a hook that can't start, times out, or exits with an unexpected code stops the action instead of letting it through.
Prompt and agent hooks written as instructions, such as block commands that do something, could allow what they should block. That's fixed, and Stop hooks written that way make Claude less likely to stop early.
Claude Code now supports the Program Status Protocol. Terminals that implement it can show whether Claude Code is working, waiting on you, or done.
If a gateway, Bedrock, Vertex or Foundry refuses the one-million-token context beta, every request on a one-million-token model used to fail. Claude Code now resends the request without it.
Three terminal freezes are fixed. A reply tens of thousands of lines long no longer locks up the screen, deeply nested quotes no longer eat gigabytes of memory, and very long lines highlight without stalling.
In headless and SDK sessions, remote MCP servers now reconnect after an outage longer than 15 seconds. A server that drops every connection gets retries that back off up to 30 seconds, instead of a tight loop.
In print mode, text output no longer drops earlier responses when background work starts another turn. And when a run stays open after its last turn, a line on standard error says what it's waiting for.
The full list, including fixes for the VS Code extension, Claude in Slack and Code Review, is in the Claude Code changelog on GitHub.
Up next
1:21Claude Code now loads skills from your MCP servers, and Code Mode runs on Bedrock
@claude-code
2 days ago
1:38Claude Code v2.1.330 draws charts for you with easel, and loops now run 30 days
@claude-code
1 week ago
1:36Claude Code v2.1.329 shows your scheduled tasks, loops and forks in /tasks
@claude-code
1 week ago
1:40Claude Code v2.1.328 brings auto mode to Bedrock, Foundry and Google Cloud
@claude-code
1 week ago
1:52Claude Code v2.1.327 makes /status list what is broken in your setup
@claude-code
1 week ago
1:29Claude Code v2.1.326 streams Remote Control replies to your phone as they are written
@claude-code
1 week ago
1:28Claude Code v2.1.325 now asks before sandboxed Bash commands run
@claude-code
2 weeks ago
1:49Claude Code's new Code Mode lets Claude write JavaScript to call its tools
@claude-code
2 weeks ago
1:29Claude Code v2.1.321 makes Fable 5.2 the default, with 1M context
@claude-code
2 weeks ago
1:52Claude Code v2.1.319 moves slow MCP tool calls to the background
@claude-code
3 weeks ago
1:39Claude Code v2.1.318 now tells you when your claude.ai sign-in ends
@claude-code
3 weeks ago
1:42Claude Code now asks before a tool call sends your email address
@claude-code
3 weeks ago







