[BUG] Claude fails silently in VSCode with hook failures
Resolved 💬 4 comments Opened Jan 28, 2026 by internationils Closed Mar 1, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When using CC in vscode, I interrupted a change to the hook scripts. This caused them to silently fail - claude did not respond to the commands any more AT ALL.
Running Claude CLI showed this, letting me find and fix the problem:
UserPromptSubmit operation blocked by hook:
[./50_process/logging/log_user_prompt.sh]: ./50_process/logging/log_user_prompt.sh: line 77: syntax error near unexpected token `<<<'
./50_process/logging/log_user_prompt.sh: line 77: `<<<<<<< HEAD'
What Should Happen?
Claude should report the error it receives
Error Messages/Logs
Steps to Reproduce
- Create a UserPromptSubmit hook, that calls a script.
- Introduce a failing error in the script so the script fails to run.
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.22
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗