Repository navigation
Avoid repeated session copies when deleting project groups - #26230
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review. 📝 WalkthroughWalkthroughProject-group deletion now collects keys for matching folder workspaces and removes their session owners from the local workspace session and defined host partitions in one call. A new helper returns without changes when the owner set is empty. Tests cover subtree deletion, retained session owners, reference preservation when no workspaces match, and missing-group behavior. Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The reviewed change removes the intended workspace owners while preserving unrelated session state. No actionable merge-blocking risk remains. 🚥 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 project group containing many folder workspaces repeatedly copied the same saved terminal and browser sessions. Orca now removes those folders together, copying each host session once.
What Changed
Collect the deleted subtree’s folder workspace keys and apply the existing batch session remover to the local session and every remote host partition. Repositories remain registered and become ungrouped; unrelated workspaces, lineage cleanup, mobile selections and the scheduled save keep their existing results.
Why
Reusing the existing batch remover removes repeated copies without introducing a cache or changing session ownership. Eleven alternating warmed pairs measured the complete synchronous production deletion action with generated scrollback, local spill and two disjoint remote partitions:
These fixtures used 32 KiB of generated scrollback per leaf plus eight unrelated owners per partition. Final state and callback results matched in every pair and 34 additional parity controls. The one-folder control remained sub-millisecond (0.227 → 0.294 ms); this targets multi-folder deletion. Measurements cover Node on macOS and save admission, excluding scheduled disk writes. This is not evidence for the intermittent Codex typing pause.
Linked Issue
Internal performance audit; no pre-existing issue.
Visual Proof
N/A — deletion has the same resulting workspace and session state; this changes backend copying only.
Testing
The new regression failed before the fix with 72 copies instead of three; all four new tests pass afterward. They check subtree cleanup across local, SSH and runtime partitions, retained owners, lineage callback order, mobile selections, one save, empty groups and missing groups. The persistence suites passed: 194 files / 2,057 tests, with three files / five tests skipped.
pnpm tc:node, formatting and the changed-code quality gate pass. The combined branch containing all 29 audit changes also passed these 2,057 persistence tests, fullpnpm tc, and the 96-file changed-code quality gate. Hosted CI will cover additional platforms; no native Windows/Linux or physical SSH timing is claimed.Review
Independent source review confirmed the production lineage callbacks only delete lineage entries and neither read session state nor emit or schedule saves. Existing owner pruning and topology-revision behavior are reused.
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
Folder workspaces and every saved execution-host partition are covered. No filesystem, Git, wire protocol, terminal process or readiness behavior changes.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)Hosted CI passes on the corrected head. Regression fixtures use fixed terminal timestamps and pass under both Bun and Node.