Repository navigation
fix(floating-workspace): keep file links from blanking the main window - #26655
Conversation
|
Ready summary
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (5)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughFloating workspace IDs now bypass workspace-file route lookup for restored absolute-path tabs and sibling-worktree collision routing for detected terminal files. Worktree activation reveals the floating workspace panel and returns no primary tab. Added tests cover file and browser link behavior, selection preservation, and panel reveal. Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to No actionable issue is established for this change. It is mergeable after normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
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
Cmd+clicking an HTML file path in the floating workspace opened the file correctly there, but blanked the main window and removed its sidebar selection. The file route also selected the floating workspace as the main workspace. That previously ineffective call started working when #22302 made the floating workspace resolvable like other workspaces.
Opening a file link now keeps the file in the floating panel and leaves the main window's workspace, chat, and source-control panel selected.
What Changed
Shared workspace activation reveals the floating panel through its existing reveal action before any main-window selection or navigation-history changes. Browser and editor file routes therefore target the panel that owns them.
Floating editor links also retain their panel when a project already has that file open. The editor loader preserves that placement for absolute paths instead of moving the tab into the project. Terminal modifier clicks, plain-click file actions, and native-chat file links share this route. HTTP links already preserve the main selection.
Why
Workspace resolution answers where files live; it should not determine which window owns selection. Routing activation to the owning panel prevents the selection change at its source, without restoring selection after it has already moved. Ordinary project and folder-workspace navigation retains its existing routing.
Linked Issue
Brennan's installed-app report and recording, October 8, 2026. No separate issue supplied.
Visual Proof
Pending live QA. A separate driver will attach before/after CDP screenshots from a hidden, isolated Electron rig. No Electron app was launched for this patch.
Testing
134 tests pass across ten named suites, including floating HTML/editor selection, an active folder or SSH workspace, editor loading, file actions, ordinary workspace-root navigation, SSH/runtime file opening, HTTP routing, and native-chat file clicks. Six selection regression checks and the new editor-loader check fail against the original code and pass after the fix. The regression uses the real store and activation code; filesystem and tab-creation boundaries are stubbed.
tc-gate pnpm tc:webpasses. No main-process code changed. Local static checks find an inherited max-lines error atsrc/main/native-chat/agent-session-wire/structured-agent-session-host.ts:368; that file is byte-for-byte identical to the branch'sorigin/mainbase. The other 21 of 22 local static checks pass, including changed-code quality, design-system enforcement, localization, and type-aware code quality. Hosted CI is red on the same inherited lint error: run 37832085254. Its final verification job fails because static analysis failed. Repository guards and the separate line-count check pass; hosted tests and downstream builds were skipped. The downloaded failure logs contain no failure caused by this patch.Review
Self-reviewed the file provider, modifier fallback, plain-click actions, HTML/browser route, editor ownership/loading, native-chat route, and HTTP route. Rendered behavior, real SSH execution, and Windows/Linux execution remain pending live QA.
Agent skill upstream boundary
Notes
No new UI text, persisted fields, filesystem permissions, remote messages, or Git commands. SSH file ownership and remote HTML preview routing remain in the existing host-aware paths. Clicking a workspace-root link still explicitly switches workspaces; this fix concerns opening files in the floating panel.
Checklist
Author: @BrennanKB5