codemap
codemap copied to clipboard
hooks: session-start times out after 8s on large repos instead of returning partial context
On a large repo every session-start hook prints hook session-start timed out after 8s, on main (v4.7.1) and on #277's branch alike.
Repro: a shallow clone of gumroad (10,148 files), codemap setup, then start a Claude Code session (or run the session-start hook by hand). The hook hits its 8 s budget before printing context, so the agent gets a timeout line instead of the structure and hub summary.
Expected: session-start returns within budget on any repo size, with whatever is cheap (a cached state.json or a partial tree), plus a line saying the graph is still building, rather than timing out. The daemon build itself already continues in the background (#270 / #277).
Found while verifying #277.