Skip to content

fix(hooks): give the codebase map 3 s so a slow Windows start keeps it - #1166

Merged
DietrichGebert merged 1 commit into
mainfrom
fix/map-timeout-3s
Oct 18, 2026
Merged

DietrichGebert merged 1 commit into
mainfrom
fix/map-timeout-3s

Conversation

@DietrichGebert

Copy link
Copy Markdown
Owner

Fixes #1157

Since #1082 the map child had 1 s, so a stalled map could not cost 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 map still never costs the rules.

  • hooks/ponytail-activate.js: map timeout 1 s to 3 s.
  • hooks/cursor-hooks.json, hooks/copilot-hooks.json: 5 s to 15 s, since they run the same start hook.
  • Tests follow the new numbers.

Checked with the repro from the issue and a git slowed by 2 s: on main the map is missing after 1 s, with this change it arrives after about 2.1 s. With git stalled for 10 s the hook still ends after 3 s with the rules.

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
@DietrichGebert
DietrichGebert merged commit 5117d0e into main Oct 18, 2026
1 check passed
@DietrichGebert
DietrichGebert deleted the fix/map-timeout-3s branch October 18, 2026 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SessionStart codebase map consistently omitted on Windows under startup contention (1s child-process limit)

1 participant