Skip to content

fix(agents): skip deleted worktrees during role import - #1507

Merged
nixuuu merged 1 commit into
devfrom
fix/skip-deleted-role-worktrees
Dec 1, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/skip-deleted-role-worktrees

Conversation

@nixuuu

@nixuuu nixuuu commented Dec 1, 2026

Copy link
Copy Markdown
Member

Change

When someone deletes a worktree outside Canopy, the one-time agent role import keeps reporting the missing directory in project settings and retrying it on refresh. The gateway now identifies worktree sources in its import request. When the worker confirms the path is gone, it returns an empty final page so the gateway records the source as complete. Missing workspace roots and permission failures still surface as errors.

The new request field defaults to false. Both the gateway and the worker need the update for the warning to clear.

Verification

  • All five project role catalogue integration tests passed. The new regression test removes a worktree with Git, opens the catalogue through the gateway, and verifies both the empty issue list and the persisted completion flag.
  • Checked that an unreadable directory and a missing workspace root still produce errors.
  • Regenerated the protocol bindings and ran formatting and lint on the edited TypeScript. Full repository checks run in CI.

@nixuuu
nixuuu enabled auto-merge (squash) December 1, 2026 07:51
@nixuuu
nixuuu merged commit 319470a into dev Dec 1, 2026
45 of 47 checks passed
@nixuuu
nixuuu deleted the fix/skip-deleted-role-worktrees branch December 1, 2026 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant