Follow Discord
Sweep 23 Oct 2026 · 21:48Z Build v2.1.310 529 read Stable v2.1.308 Latest v2.1.309 Next v2.1.310 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.310 ·

PowerShell hooks made only of quoted strings get a clear outcome

PowerShell hooks whose command is only quoted text now exit with a no-verdict code, and the Git Bash error explains exit code 127

Group of 3 You'll notice Improvements
JSON All of v2.1.310
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
HooksArea: what it touches
ImprovementsKind: in v2.1.310,
ImprovementsSection of the release

Unclear What Claude Code does when a hook returns the no-verdict code, and which hook events check for it, is not stated.

What

Hooks are commands that run automatically at set points while Claude Code works, and their exit code (the number a program returns when it ends) can count as a verdict such as allow or block. On Windows, hooks can run in PowerShell. A command that is only quoted text starts no program in PowerShell, and this case is now handled:

  • For a PowerShell command hook with no explicit shell, a statement made only of string expressions, with no sub-expression, now makes the script exit with a dedicated no-verdict code instead of falling through. Failures still exit 1, and the existing pass-through of exit code 2 is kept. StatusLine and FileSuggestion hooks are excluded.
  • A new check picks out PowerShell command hooks that are not async, have no args and have an onFailure other than 'continue'.
  • The message shown when a hook fails because Git Bash wasn't found gains a first case for exit code 127. It explains that the command was only quoted strings, so PowerShell started no program, and tells you to install Git Bash, put the program in "command" and its arguments in "args", or set "shell" to "powershell".
  • Separately, a new function checks a signed answer in JWS format (a standard for signed data) and reports it as no_answer, valid, unsigned or invalid.

Why

A Windows hook that only prints text is no longer misread as a verdict, and its author is told exactly why it ended with exit code 127 and how to fix it.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhat Claude Code does when a hook returns the no-verdict code, and which hook events check for it, is not stated.

See this entry in the whole of v2.1.310 →

Feedback