Skip to content

v1.4.2

Choose a tag to compare

@AgriciDaniel AgriciDaniel released this 09 Apr 15:58
· 207 commits to main since this release

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:

  1. Claude stops → Stop hook fires → prompt asks Claude to evaluate a condition
  2. Claude responds "nothing to do" → that's a new Stop event → hook fires again
  3. 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|resume matcher (was empty — fired in every project). Added command hook to cat wiki/hot.md directly 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.