Repository navigation
fix: decouple Floating Workspace shell selection - #13995
Conversation
|
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 1f3faa059f859c27deb2778a30c20de15ca25df1 and 49e7c1af16d607176df8b45ab146da3a79fb0173. 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthrough
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 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 |
3be00fc to
33f1ba8
Compare
|
@coderabbitai review |
|
33f1ba8 to
1f3faa0
Compare
|
@coderabbitai review |
|
1f3faa0 to
49e7c1a
Compare
|
@coderabbitai review |
|
49e7c1a to
319e075
Compare
|
@coderabbitai review |
|
|
@coderabbitai review |
|
ELI5
Floating Workspace is not a project, so it should not inherit whichever Windows or WSL runtime the active project uses. The runtime resolver now recognizes Floating Workspace directly and leaves its shell chooser independent.
What Changed
FLOATING_TERMINAL_WORKTREE_IDat the central project-runtime authority boundary.Why
getLocalProjectExecutionRuntimeContextaccepted the Floating Workspace synthetic ID, found no real worktree, then fell back toactiveRepoId. That false authority made the TabBar filter Floating Workspace shells to the active project's Windows/WSL runtime.The central sentinel guard covers menu modeling, creation, restore, spawn, restart, resume, and other resolver callers. A Floating Panel-only override would miss lifecycle paths, while a TabBar-only special case would mask only the menu symptom. A broad unresolved-ID guard was rejected because detected-only local worktrees intentionally retain the active project's runtime until primary catalog hydration.
Linked Issue
Fixes #13512
Visual Proof
N/A — this diff changes runtime authority only; it does not change layout, styling, or component rendering. Physical Windows interaction validation was still completed on an Ubuntu 24.04 WSL project:
shellOverride: "pwsh.exe".ISSUE13512:Win32NT:Core.issue-13512-wsl-project-floating-shell-menu.pngandissue-13512-floating-powershell-running.png(not committed per template policy).Testing
Invariant: the Floating Workspace synthetic ID must not resolve to the active project's runtime.
Byte-identical oracle:
pnpm vitest run --config config/vitest.config.ts src/renderer/src/lib/local-preflight-context.test.ts -t 'does not assign the active project runtime to the floating workspace'On final
origin/main346e59c879:repo-1:wsl:Ubuntuinstead ofundefinedAdditional validation:
focused runtime, TabBar shell-menu, and PTY routing suites: 606/606 passed
local runtime suite, including detected-only ownership: 30/30 passed
pnpm typecheck: passedtouched-file oxlint and diff checks: passed
reliability gate manifest: passed (74 gates)
max-lines ratchet: passed; no bypasses
physical Windows/WSL Electron validation: passed
all 44 final CI checks: terminal with zero failures
full
pnpm lintpassed code-quality, type-aware, reliability, max-lines, and bundled-guide stages, then stopped on repository-wide stale generated skill manifests unrelated to this diffI manually tested these changes locally
Automated tests added/updated, or explained why not below
AI Disclosure
OpenAI Codex was used for investigation, implementation, validation, review orchestration, and PR preparation. All generated changes were verified with deterministic tests, physical Windows validation, and independent specialist review.
Review
Fresh exact-head reviews are clean for security/adversarial correctness, architecture/elegance, performance/resources, Windows/WSL and macOS/Linux compatibility, SSH/remote and folder/git workspaces, remote wire compatibility, shell UX/accessibility, and release readiness. CodeRabbit generated no actionable comments and reports 100% docstring coverage.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)CI covers the repository-wide test/build matrix. The local full-lint caveat is the unrelated stale generated manifests documented above.
Author