Repository navigation
Conversation
|
Claiming #16539: Reveal in Finder now uses the target worktree host instead of the globally focused runtime, so a local worktree stays local after a paired remote session. |
|
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: 📥 CommitsReviewing files that changed from the base of the PR and between 5dd1a6e80f705d302636a7efb0c18e6d2cf4bdd7 and 0581a52. 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe change adds runtime-owner-aware local-path blocking. File-explorer, sidebar, and source-control actions resolve each worktree’s explicit runtime environment and pass it through availability and execution paths. File-explorer reveal checks use a centralized helper. Tests cover local, remote-owned, and SSH-backed worktrees, including behavior during globally active remote runtimes. Merge Risk: ⚪ Minimal · up to The change makes local worktree reveal actions use the target worktree's runtime ownership while preserving blocked behavior for remote and SSH paths; targeted regression tests pass, and no actionable merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description clearly explains the bug, scope, implementation behavior, linked issue, regression test, and test result. However, it omits several required template sections, including Visual Proof, Testing checklist details, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist. Resolution Use the repository template headings. Add Visual Proof or write Full details: Linked Issues checkExplanation The changes satisfy issue
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 657fa5d0-17a0-4cef-807a-4a993a5c41fa
📥 Commits
Reviewing files that changed from the base of the PR and between f72dcb9 and 5dd1a6e80f705d302636a7efb0c18e6d2cf4bdd7.
📒 Files selected for processing (13)
src/renderer/src/components/right-sidebar/FileExplorer.tsxsrc/renderer/src/components/right-sidebar/FileExplorerRow.actions.test.tsxsrc/renderer/src/components/right-sidebar/FileExplorerToolbar.test.tsxsrc/renderer/src/components/right-sidebar/FileExplorerToolbar.tsxsrc/renderer/src/components/right-sidebar/file-explorer-row-context-menu.tsxsrc/renderer/src/components/right-sidebar/file-explorer-row-reveal.tssrc/renderer/src/components/right-sidebar/source-control-entry-context-menu.test.tsxsrc/renderer/src/components/right-sidebar/source-control/listing/entry-context-menu.tsxsrc/renderer/src/components/sidebar/WorktreeContextMenuView.tsxsrc/renderer/src/components/sidebar/WorktreeOpenInMenu.test.tsxsrc/renderer/src/components/sidebar/WorktreeOpenInMenu.tsxsrc/renderer/src/lib/local-path-open-guard.test.tssrc/renderer/src/lib/local-path-open-guard.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
5dd1a6e to
0581a52
Compare
Sync update (
|
0581a52 to
6568e88
Compare
Description
Reveal in Finder / Open in file manager was treating local worktrees as remote after a paired host had been used, because the guard read the globally focused runtime instead of the target worktree host.
File Explorer, worktree Open in, and the source-control reveal path now scope that check to the worktree's own runtime owner and
connectionId.Focused fix
settings.activeRuntimeEnvironmentId.Preserves
settingsForRuntimeOwner; this matches that contract.Evidence
pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/lib/local-path-open-guard.test.ts src/renderer/src/components/sidebar/WorktreeOpenInMenu.test.tsx src/renderer/src/components/right-sidebar/FileExplorerRow.actions.test.tsx src/renderer/src/components/right-sidebar/FileExplorerToolbar.test.tsx src/renderer/src/components/right-sidebar/source-control-entry-context-menu.test.tsxactiveRuntimeEnvironmentIdset + local worktree + noconnectionIdis not blocked.User-regression-tradeoffs
None for local worktrees. Remote/SSH reveal remains blocked.
Fixes #16539