wh yis stop hooks stuck ⏺ Now vim.pack.update() writes through the symlink into the…
- User
wh yis stop hooks stuck ⏺ Now vim.pack.update() writes through the symlink into the repo's nvim-pack-lock.json, which gets picked up by the upgrade PR.
✳ Percolating… (running stop hooks… 1/4 · 3m 26s · ↓ 944 tokens · thinking)
⎿ Tip: Use /btw to ask a quick side question without interrupting Claude's current work Assistant
Stop hooks run sequentially and block until each completes. If one hangs (e.g., waiting for network, stdin, or a long process), the entire chain stalls.
To diagnose, check your hooks config:
Assistant
Your Stop hooks show only 2 hooks (both
async: truewithtimeout: 10), but the display says "1/4". The "1/4" likely refers to subagents or the current session count, not hooks.The real culprit is your PostToolUse hook:
codegit-ai checkpoint claude --hook-input stdinThis hook has no timeout and runs synchronously on every Write/Edit/MultiEdit. If
git-aihangs (network issue, git lock, large repo), it blocks indefinitely.The "stop hooks" display at 3m+ is likely that
git-ai checkpointcall getting stuck, not the Stop hooks themselves.To fix, add a timeout:
Assistant
Both
git-aihook entries lack atimeout. Add"timeout": 10to both to prevent them from blocking indefinitely. Want me to patch~/.claude/settings.jsonto add timeouts?- User
yes pleaes
Assistant
Done. Both
git-ai checkpointhooks (inPostToolUseandPreToolUse) now have"timeout": 10. Ifgit-aihangs, it'll be killed after 10 seconds instead of blocking indefinitely.- User
modify @config/claude/settings.json
Assistant
The dotfiles version still has the old hooks without timeouts. Patching both:
Assistant
Done. Both
git-aihooks inconfig/claude/settings.jsonnow have"timeout": 10matching the live config.