Repository navigation
fix(register): drop a pending registration whose edit checkout was deleted - #123
Merged
Merged
Conversation
…leted The server refuses a worktree that no longer exists, so the retry on each prompt could never succeed and the hook warned until the session ended. The pending entry is dropped; the next edit registers again.
This was referenced Oct 10, 2026
Merged
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.
A failed registration is kept as
pendingand retried on each prompt, together with the edit checkout that triggered it. If that checkout is deleted before the retry succeeds (for example a task worktree removed after its PR landed), the server refuses it with "worktree must belong to this project" and the hook repeats the warning on every prompt for the rest of the session.registry.resumenow drops a pending entry whoseworktreeno longer exists on disk. The session's next edit registers it again.Tests: new registry test (fails without the change); the existing edit-checkout test now uses real directories, since the check reads the disk.
bun run checkpasses and the full suite passes (1213 pass, 0 fail).No release is part of this change; the CHANGELOG entry sits under Unreleased.
Summary by CodeRabbit