Repository navigation
fix(worktree): verify creates with a fresh listing - #16700
brennanb2025 wants to merge 2 commits into
Conversation
|
Warning Review limit reachedNext included review available in 21 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughWorktree creation verification now uses Merge Risk: ⚪ Minimal · up to This localized change makes post-create worktree verification use a fresh listing and adds regression coverage; no actionable merge-blocking risk remains beyond normal checks and review. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Description checkExplanation The description is complete and follows the repository template. It explains the change, rationale, linked issue, testing, scope, and visual-proof status. The unchecked full validation matrix is also explained as CI-covered. Full details: Linked Issues checkExplanation The changes directly address issue Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. (2 skipped: 2 too large.) ✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
brennanb2025
left a comment
There was a problem hiding this comment.
Exact-head review verification for 7865d223df13c40246a3906c1d5e83603868dd96 (base cd5be48a34031623a8b5d3cc210bd6b048c23052): no in-scope code findings after three adversarial passes.
I traced both changed creation entry points through the strict/shared listing implementations, Git capability cache, Git 2.25 fallback, Windows/WSL path handling, folder-workspace early return, SSH/provider ownership, concurrent create behavior, and error/cleanup semantics. Both post-add paths now use the non-shared strict listing, preserve WSL options and path reconciliation, and propagate listing errors instead of trusting an error-softened empty result; no wire, provider, mobile, persisted-state, or UI contract changed.
Merge readiness is still blocked by the current red CI: Node 24 shard 12 failed in untouched src/main/updater.startup-scheduling.test.ts (three updater calls vs two), and verify failed only because that shard was red. The exact updater test passes locally, so the failure appears unrelated to this PR, but I am not recommending merge until the required checks rerun green.
|
QA evidence for exact head
Not run: a real Windows 11 create smoke. No Electron run or screenshots were produced because this PR changes no rendered UI; the remaining blocker is the unrelated red Node 24 shard described in the review comment. |
|
Superseded by #17388, which takes the same first step as this PR (verifying against the Closing rather than iterating here, for two reasons worth recording: The stated cause isn't reachable on It changes the message, not the outcome. With the strict listing alone, a failing listing still Thanks for finding and pinning down the softened-listing behavior — that was the real defect, and it |
ELI5
After Git creates a worktree, Orca now verifies it with a fresh Git listing instead of reusing a background listing that may have started before creation.
What Changed
Why
The post-add verification was using the same in-flight-deduplicated, error-softening listing intended for background refreshes. On Windows, verification could therefore receive a pre-create empty result even though
git worktree addsucceeded and a freshgit worktree listcontained the new row.Linked Issue
Fixes #16520
Linear: STA-5522
Visual Proof
N/A — this changes main-process Git verification only; no UI surface changed.
Testing
pnpm exec vitest run src/main/ipc/worktrees-windows.test.ts src/main/ipc/worktrees-local-create-flow.test.ts src/main/git/worktree-scan-cache-sharing.test.ts src/main/git/worktree-list-porcelain.test.ts(43 passed)pnpm exec vitest run src/main/runtime/orca-runtime.test.ts(1,207 passed, 1 existing skip)pnpm tc:nodeoxlintandoxfmt --checkon all four changed filesgit diff --checkpnpm run check:code-quality:changedcould not parse its oxlint JSON under this session's Node 26 engine warning; the commit hook and direct oxlint checks both passed.AI Disclosure
Review
Agent skill upstream boundary
Notes
No readiness findings. Electron validation was not applicable because the changed surface does not render UI.
Checklist
Author
@BrennanKB5