[BUG] Hook SubagentStop triggers on claude code start
Resolved 💬 5 comments Opened Oct 16, 2025 by adrianozappacosta Closed Feb 5, 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?
SubagentStop-Hook gets triggered when claude-code starts in terminal.
What Should Happen?
According the documentation, the hook should only be fired by ending a subagent.
Error Messages/Logs
Steps to Reproduce
Start claude code in vscode terminal
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.20
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗