fix(doc-guardian): use passive wording and add debouncing to reduce interruptions #291
Reference in New Issue
Block a user
Delete Branch "fix/issue-287-doc-guardian-hook-wording"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
/doc-synccommand documentationProblem
The doc-guardian PostToolUse hook was causing workflow interruptions:
Solution
[doc-guardian] drift queued: ...instead ofupdate needed/doc-syncTest plan
commands/directory rapidly - should see only 1 notification/doc-syncand verify queue is clearedNote
Issue #287 also mentions URL restriction behavior, but this was not found in the current codebase. It may have been caused by a different component or already fixed. This PR addresses issues 1 and 2 from the issue.
Fixes #287
🤖 Generated with Claude Code
The PostToolUse hook was causing workflow interruptions because: 1. Actionable language ("update needed") triggered Claude to seek confirmation 2. Rapid edits (4+ in sequence) generated multiple notifications Changes: - Message changed from "update needed" to "drift queued" (passive, informational) - Added 5-second debouncing: same-type edits within window are silently queued - Added queue clearing step to doc-sync.md command Note: Issue #287 also mentions URL restriction behavior, but this was not found in the current codebase - may have been a different component or already fixed. Marking as partial fix. Fixes #287 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>