Repository navigation
Grok runs both native and imported Claude Herdr SessionStart hooks #4018
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingintegrationsmanaged hooks and integration installation or statusmanaged hooks and integration installation or statusmaintainer-neededrequires maintainer judgment or maintainer-only reproductionrequires maintainer judgment or maintainer-only reproductionp2valid narrow or ordinary defect with limited impact or a practical workaroundvalid narrow or ordinary defect with limited impact or a practical workaroundwindowsaffects Windows-specific behavioraffects Windows-specific behavior
Description
Activity
- addedbugSomething isn't workingSomething isn't workingp2valid narrow or ordinary defect with limited impact or a practical workaroundvalid narrow or ordinary defect with limited impact or a practical workaroundwindowsaffects Windows-specific behavioraffects Windows-specific behaviorintegrationsmanaged hooks and integration installation or statusmanaged hooks and integration installation or statusmaintainer-neededrequires maintainer judgment or maintainer-only reproductionrequires maintainer judgment or maintainer-only reproductionand removedmaintainer-neededrequires maintainer judgment or maintainer-only reproductionrequires maintainer judgment or maintainer-only reproduction
on Sep 12, 2026 - added a commit that references this issue
on Sep 13, 2026 Implemented on master and queued for the next release. This is not available in a published Herdr release yet.
- added a commit that references this issue
on Sep 14, 2026 - added a commit that references this issue
on Sep 15, 2026 - addedpreview-releasedAvailable on the preview channel, pending a stable release.Available on the preview channel, pending a stable release.
on Sep 16, 2026 Released on the preview channel in 2026-09-16-2c29fb29e302. This is available to preview users, but is not in a stable Herdr release yet.
Released in v0.9.1.
- removedpreview-releasedAvailable on the preview channel, pending a stable release.Available on the preview channel, pending a stable release.
on Sep 16, 2026 - added a commit that references this issue
on Sep 17, 2026 - added a commit that references this issue
on Sep 18, 2026 - added a commit that references this issue
on Sep 29, 2026
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingintegrationsmanaged hooks and integration installation or statusmanaged hooks and integration installation or statusmaintainer-neededrequires maintainer judgment or maintainer-only reproductionrequires maintainer judgment or maintainer-only reproductionp2valid narrow or ordinary defect with limited impact or a practical workaroundvalid narrow or ordinary defect with limited impact or a practical workaroundwindowsaffects Windows-specific behavioraffects Windows-specific behavior
Summary
A Grok session launched inside Herdr runs both the Herdr-managed Grok SessionStart hook and the Herdr-managed Claude SessionStart hook imported through Grok's Claude compatibility layer.
Environment
Observed
A fresh Grok launch executed:
%USERPROFILE%\.grok\hooks\herdr-agent-state.ps1%USERPROFILE%\.claude\hooks\herdr-agent-state.ps1Under concurrent startup load, the native Grok invocation took 15.685 seconds and the imported Claude invocation took 14.279 seconds, so both exceeded their generated 10-second timeout.
The commands use different provider-specific paths, so command-string deduplication cannot collapse them. That explanation is an inference from the observed configuration; the exact Grok compatibility merge logic has not been instrumented.
The Claude script may ultimately reject a Grok-shaped payload, but Windows still pays for another PowerShell process and stdin read. Disabling all Claude hook compatibility is not a safe workaround because repositories also rely on non-Herdr Claude-compatible safety hooks. Removing the native Grok hook risks losing the correct
herdr:groksession identity.Expected
When Grok loads Claude-compatible hooks, Herdr should execute one provider-appropriate SessionStart integration and report one
herdr:groksession identity.Possible fixes:
Reproduction
herdr agent start.Related: #3111 tracks the separate Windows 10-second timeout problem.