v1.4.2
Bug Fix
Fixed: Infinite Stop hook loop (#critical)
The Stop hook used "type": "prompt" with an empty matcher, causing an infinite loop for all users:
- Claude stops → Stop hook fires → prompt asks Claude to evaluate a condition
- Claude responds "nothing to do" → that's a new Stop event → hook fires again
- Repeat forever, burning context and blocking the session
Fix: Replaced with "type": "command" that runs a shell script checking git diff for actual wiki/ file changes. If no wiki files were modified, it exits silently — no output means Claude is never prompted, breaking the loop.
Improved: Hook architecture
- SessionStart: Added
startup|resumematcher (was empty — fired in every project). Added command hook tocat wiki/hot.mddirectly for faster context restore. - PostCompact (new): Re-injects hot cache after context compaction so wiki context survives long sessions.
- PostToolUse (new): Auto-commits wiki changes on Write/Edit operations.
Upgrade
Users on v1.4.1 or earlier should update to stop the loop. No configuration changes needed.