[BUG] No hook is working on Windows
Resolved 💬 6 comments Opened Oct 27, 2025 by kllemiec Closed Jan 17, 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?
I've tested out several combinations of hooks, but None of them works.
Tested .claude/settings.json files:
{
"hooks": {
"PostToolUse": [
{
"matcher": "Write|Edit",
"hooks": [
{
"type": "command",
"command": "echo 'bla bla bla'"
}
]
}
]
}
}
{
"hooks": {
"PostToolUse": [
{
"matcher": "Write|Edit",
"hooks": [
{
"type": "command",
"command": "isort 'tool_input.file_path'"
}
]
}
]
}
}
{
"hooks": {
"PostToolUse": [
{
"matcher": "Write|Edit",
"hooks": [
{
"type": "command",
"command": ".claude/hooks/formatter.py"
}
]
}
]
}
}
Everytime I got error:[error] [Window] [Extension Host] [DEBUG] Hook output does not start with {, treating as plain text
I am using VS Code plugin. Could you explain me what I am doing wrong?
I've tried downgrade Claude extension as suggested in other issues, but it doesn't work either.
What Should Happen?
Hooks should trigger
Error Messages/Logs
[error] [Window] [Extension Host] [DEBUG] Hook output does not start with {, treating as plain text
Steps to Reproduce
Described above
Claude Model
None
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.0.27
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗