Repository navigation
fix(hooks): 15 s hook timeout so a slow node start on Windows keeps its output - #1165
Merged
Merged
Conversation
…ts output On Windows a cold node start (antivirus, startup contention) can pass the 5 s limit, and Claude Code then drops the hook's output, so a /ponytail switch in that prompt is lost. The hooks return in under 0.2 s normally, so the higher limit changes nothing in the normal case. Fixes #1158
This was referenced Oct 18, 2026
DietrichGebert
added a commit
that referenced
this pull request
Oct 18, 2026
#1166) Since #1082 the map child had 1 s, to keep a stalled map from costing the rules inside the 5 s hook limit (#1079). On a contended Windows start the map takes 1.5 to 2.3 s, so it was dropped every time. With the hook limit at 15 s (#1165) the map can have 3 s and a stalled one still never costs the rules. Cursor and Copilot run the same start hook, so their limits go to 15 s as well. Fixes #1157 Co-authored-by: Dietrich Gebert <dietrichgebert@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1158
On Windows a cold
nodestart (antivirus, startup contention) can take longer than the 5 s hook limit. Claude Code then drops the hook's output, so a/ponytailswitch in that prompt is lost.The three hooks in
hooks/claude-codex-hooks.json(SessionStart, SubagentStart, UserPromptSubmit) now allow 15 s. They return in under 0.2 s normally, so nothing changes in the normal case. Cursor and Copilot keep 5 s for now.