Repository navigation
fix(T667): requeue a watcher-exit wake dropped mid-turn instead of stranding it - #372
Merged
Merged
Conversation
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.
Kimi 6f38782..0720eb3 (base 6617cfd). When a watcher's exit hint lands mid-turn, the harness drops it and the mail stayed 'notified' for good.
requeueWatchReportedmoves a still-'notified' marked delivery back to 'delivered' exactly once. It skips while a live watcher exists, while muted, and inside the wake brake window. The normal dispatch checks then drive it.test/watch-midturn.test.ts 6/6: the AC1 reproduction, a single Stop surfacing, the digest variant, continuation-turn mail reaching the next turn without a prompt, exactly one re-drive, and none when read/acked or alongside Stop. project-mailbox + wake-dispatch + wake-outcomes 57/57; watch + hooks 43/43; tsc clean. One RATCHET line in test/project-mailbox.test.ts classifies the 3 new per-delivery queries. CHANGELOG Unreleased only. AC3 live evidence follows on the release.
🤖 Generated with Claude Code