Repository navigation
fix: guard hook re-reads transcript for a lane stated in the same message (0.6.1) - #9
Merged
Merged
Conversation
…sage (0.6.1) A lane statement in the same assistant message as the tool call could reach the transcript after PreToolUse read it, so the first write was denied. When no lane is found, re-read every 0.1 s for up to 2 s. Dates 0.6.1 with the headless Claude Code replay results. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
hooks/edit_guard.pynow re-reads the transcript every 0.1 s for up to 2 s before denying.0.6.1(with fix: guard hook recognizes lane stated via SendUserMessage or "Lane is X" (0.6.1) #8) and records the verification.Verification
claude-sonnet-5-5, typo fixture, agent states "The lane is Fast." then edits:test_edit_guard.pycase (statement appended 0.3 s after the hook starts) fails on the fix: guard hook recognizes lane stated via SendUserMessage or "Lane is X" (0.6.1) #8 hook and passes now.check_version.py(+ self-test),test_behavior_check.py,test_edit_guard.pypass.docs/behavior-checks.mdrequires it for skill-instruction changes). Brief mode is unavailable headless, so theSendUserMessagepath is unit-tested only.Known limits
🤖 Generated with Claude Code