Skip to content

P2: Include WSL worktree roots in orphan sweep and retention - #1623

Merged
currentbits merged 2 commits into
mainfrom
coder/p2-include-wsl-worktree-roots-in-orphan--5643f1
Oct 13, 2026
Merged

currentbits merged 2 commits into
mainfrom
coder/p2-include-wsl-worktree-roots-in-orphan--5643f1

Conversation

@currentbits

Copy link
Copy Markdown
Owner

No description provided.

…L) roots (#1401)

The WSL root enumeration landed with #1544. Pin the issue's check on the
non-owned root path WSL roots share: clean past keep-N is reclaimed,
dirty and working are kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T14:10:27.831870Z 12db5ac PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 12db5ac94b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +512 to +514
// #1401: WSL roots are non-owned roots like this one; only the UNC
// mapping differs (worktree-wsl.test.js). Same guards must hold.
it("retention reclaims a clean settled worktree in a non-owned root, keeps dirty and live", async () => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Exercise the WSL path in this regression test

This test only sets a normal local worktreeRoot, so gcScan reaches the generic custom-root path and never exercises WSL root derivation, Linux-to-UNC conversion, or WSL Git command wrapping. Consequently, a regression that prevents retention from finding or matching actual \\wsl$ worktrees would still leave this purported #1401 test passing; construct the project/worktree with WSL paths or provide seams that let the scan run with win32 semantics.

Useful? React with 👍 / 👎.

@currentbits
currentbits merged commit 2bfface into main Oct 13, 2026
6 checks passed
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