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
UserPromptSubmit hook "Tracking ponytail mode..." intermittently hits the 5 s timeout on Windows #1158
On Windows, the UserPromptSubmit hook in hooks/claude-codex-hooks.json sometimes exceeds its 5-second timeout. Claude Code then discards its output:
UserPromptSubmit hook [Tracking ponytail mode...] timed out after 5s — output discarded. Raise the hook's "timeout" to allow more time.
When this happens, mode tracking for that prompt is lost.
Environment
ponytail 4.8.4 (installed via the ponytail marketplace). In 4.8.4 the hook runs through the commandWindows PowerShell wrapper (if (Get-Command node ...) { node ...\ponytail-mode-tracker.js }).
Windows 10 Pro 19045, Windows PowerShell 5.1, node v25.8.1, Claude Code 2.1.302
Measurements
The script itself is fast. Run manually through the same wrapper, both with and without a PowerShell profile, it takes 0.15–0.18 s; no PowerShell profile exists on this machine. The timeouts are therefore intermittent and look like cold-start overhead (first PowerShell or node launch, possibly antivirus scanning), not like slowness in the script. I have not pinned down the exact cause.
Current main
On main the hooks now run as node -e "require(...)" without the PowerShell wrapper, which should reduce the overhead. However, all three hooks (SessionStart, SubagentStart, UserPromptSubmit) still have "timeout": 5, so a slow first node start on Windows can still hit the limit.
Proposed fix
Raise the timeout, for example to 15 s, at least for UserPromptSubmit and possibly for the other two hooks:
The normal case doesn't get slower, since the hook still returns in under 0.2 s; only an occasional slow start no longer discards the output.
I've applied this locally to 4.8.4 (plugin cache and marketplace copy). It should resolve the issue; I'll report back after a few sessions. Local edits are overwritten on every plugin update, so an upstream change would be appreciated.
Activity
DietrichGebert commentedon Oct 18, 2026
Thanks! Fixed in #1165, will be in the next release.
fix(hooks): 15 s hook timeout so a slow node start on Windows keeps i…