Repository navigation
fix(repos): keep unmanaged and ignored-data worktrees in add reclaim - #4106
Merged
Merged
Conversation
…files in the add reclaim (#4092)
Owner
Author
|
Test record for this change. Fail-to-pass run (
All tests use real git in tmp repos. No test touches a worktree outside the tmp folder. Full Log of the run: |
dan-petty
marked this pull request as ready for review
November 8, 2026 01:52
dan-petty
pushed a commit
that referenced
this pull request
Nov 8, 2026
🤖 I have created a release *beep* *boop* --- ## [0.87.0](v0.86.0...v0.87.0) (2026-11-08) ### Features * **k8s:** add k8s crawl4ai-check command ([#4108](#4108)) ([32e247f](32e247f)) ### Bug Fixes * **repos:** keep unmanaged and ignored-data worktrees in add reclaim ([#4106](#4106)) ([8978d56](8978d56)) * **roadmap:** check a split plan of the stage with every gate ([#4109](#4109)) ([768dbd3](768dbd3)) * **roadmap:** count only answered searches in alternatives ([#4101](#4101)) ([b34fe0e](b34fe0e)) * **roadmap:** keep a round alive on item-changed; fail on bad schedule ([#4102](#4102)) ([9231dc3](9231dc3)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.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.
devops repos worktrees addfirst runsreclaim_merged_worktrees, and that function removes any clean worktree of the repository whose tip heads a merged pull request, wherever its folder is (#4092). On 2026-11-07 it removed worktrees of other agents five times: folders outsideagent/worktreesand stale folders inside it. A worktree with ignored files counts as clean, becausegit statushides them, so the removal also deleted ignored data (1.1 GB in one case). A worktree whose directory is missing is removed with no merge check.Closes #4092
Change:
openspec/changes/archive/2026-11-08-4092-worktree-cleanup-scope/