Repository navigation
Run nested workspace deletion in the background - #25975
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe runtime test fixture now supplies an empty launch-arguments resolver, and the test suite covers transcript placement for sends withdrawn by Stop. The nested worktree deletion dialog closes when deletion starts, disables its trigger while deletion is pending, and reports failed results or rejected promises through error toasts. Tests cover pending deletion, success, and failure. Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to Deletion can continue after the dialog closes, with failure feedback still available. No identified issue prevents merging after normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ 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 |
ELI5
Deleting a workspace with nested worktrees now lets you keep using Orca while the deletion finishes.
What Changed
The nested-worktree recovery dialog closes immediately after confirmation, matching regular workspace deletes. Its toast button shows progress and prevents another submission while removal and refresh run. A test fixture also supplies the required empty launch arguments to repair a pre-existing Node typecheck failure. Failures appear in a toast; the original recovery button becomes available again and always fetches a fresh deletion plan.
Why
The confirmation had already collected the user's decision, but kept blocking the app until deletion finished. Moving the wait out of the dialog reuses the existing removal operation and workspace progress state while preserving child-first deletion, host routing, and the reviewed target list.
Linked Issue
Slack report
Visual Proof
Hidden macOS Electron renderer, same temporary repository and pending deletion. The preview uses real Git registrations; removal was held pending to capture both states, then completed through the real removal operation.
Before — the dialog stays open while deletion runs:
After — the dialog closes and progress stays in the toast:
Testing
13 focused tests passed across the nested deletion dialog and failure toast tests, including pending deletion, returned failure, rejected removal, fresh review, cancellation, and success callbacks.
pnpm tc:web,pnpm run check:code-quality:changed, focused oxlint, and both localization catalog and extraction checks passed. The failure toast reuses the existing translated workspace deletion title.Verified through Playwright CDP on a hidden macOS Electron instance: the dialog closes while removal is pending, Settings remains accessible, and completing the real operation deletes both nested and parent worktrees. Git then lists only the primary checkout and the pending button disappears. The affected Codex session test also passed all 4 cases, and
pnpm tc:nodepassed after incorporating the related fixture fix already on main. Linux, Windows, and live SSH were not exercised; execution and host routing are unchanged. CI covers the full suite and build.Review
Self-reviewed the confirmation, pending state, failure recovery, refresh, and completion callbacks.
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
Runtime behavior is unchanged; the additional Codex test fixture line supplies a required dependency. Folder workspaces use the same recovery component. No new execution, Git commands, wire fields, platform assumptions, or provider-specific behavior.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)