Skip to content
EventPast event

User says Claude Code silently skips failing hooks on Windows

1 reports1 reporting sourcesplus 1 outlets covering itLatest report

Start here

AI overview

A user reported in a GitHub issue that Claude Code on Windows silently skips hook commands that fail to start: prompts and tool calls proceed as usual, and failures are only written to the --debug log with no in-session notice; because hooks are executed via Git Bash, backslash separators are removed and unquoted paths containing spaces are split. The reporter says hooks used as security or compliance controls silently fail.

Generated by AI from reports · Updated 18 days ago

Progress timeline

Nov 12
  1. Anthropic Claude CodeSelected
    Community report: Claude Code silently skips failed hooks on Windows

    A user reported in a GitHub issue that Claude Code on Windows treats a hook command that fails to start (exit code 127) as a non-blocking error, with prompts or tool calls proceeding as usual, the failure written only to the --debug log, and no indication within the session. The cause is that Windows hook commands are executed via Git Bash, backslash paths have their separators stripped, and unquoted paths containing spaces are split, so an ordinary Windows path can trigger it. The reporter said that UserPromptSubmit or PreToolUse hooks used as security or compliance controls (such as those deployed via managed-settings.json) would therefore silently fail, appearing no different from a hook running normally and allowing the action, and that their Windows test pipeline had failed for three consecutive weeks with no diagnostics because of this.

Related discussion

Total 1 items

Attention trend

New sources per day

1 in 6 days·most 1 (Nov 24)·today 0

  • Nov 24: 1 new sources (1 outlets, 0 accounts)
  • Nov 25: 0 new sources (0 outlets, 0 accounts)
  • Nov 26: 0 new sources (0 outlets, 0 accounts)
  • Nov 27: 0 new sources (0 outlets, 0 accounts)
  • Nov 28: 0 new sources (0 outlets, 0 accounts)
  • Nov 29: 0 new sources (0 outlets, 0 accounts)

Hourly attention

No comparable trend data