You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stop hook timeout does not kill child process tree #24206
When a Stop hook spawns a child process (e.g., Start-Process in PowerShell), Claude Code waits for the entire process tree to finish, ignoring the configured timeout value.
Claude Code should respect the timeout value (15s in this case), kill the hook process and its children, then exit cleanly.
Actual behavior
Claude Code hangs for 15+ minutes after the session ends, waiting for the child process (claude -p --model haiku) to complete. The timeout appears to have no effect on the child process tree.
Workaround
Use -WindowStyle Hidden instead of -NoNewWindow in the hook script to detach child processes from the parent's process tree. This way the hook script exits immediately and Claude Code doesn't wait.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.
Activity
github-actions commentedon Mar 9, 2026
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
github-actions commentedon Mar 18, 2026
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.