Repository navigation
fix(repos): exclude agent scratch in worktree prune and name kept data - #7659
Merged
Merged
Conversation
dan-petty
marked this pull request as ready for review
November 28, 2026 23:48
dan-petty-release Bot
added a commit
that referenced
this pull request
Nov 29, 2026
🤖 I have created a release *beep* *boop* --- ## [0.242.0](v0.241.1...v0.242.0) (2026-11-29) ### Features * **roadmap:** file, update and close finding issues ([#7658](#7658)) ([e09ce62](e09ce62)) ### Bug Fixes * **repos:** exclude agent scratch in worktree prune and name kept data ([#7659](#7659)) ([04667dd](04667dd)) * **roadmap:** complete 300-file compare via local three-dot diff ([#7662](#7662)) ([572f3f9](572f3f9)) * **security:** handle punycode OverflowError in host suffix ([#7660](#7660)) ([dce0b96](dce0b96)) --- 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.
Exclude .data/agent/scratch in CONST_WORKTREE_REGENERABLE_PATHSPECS alongside .data/rag and .hypothesis so merged agent worktrees with only temporary scratch files are removable, while naming non-regenerable ignored files in scope_refusal and refreshing docs/commands/repos.md.
Closes #7357
Change:
openspec/changes/archive/2026-11-28-7357-worktree-prune-agent-scratch/