Repository navigation
fix(remote): preserve the exact preview source group - #16129
Open
brennanb2025 wants to merge 1 commit into
Open
brennanb2025 wants to merge 1 commit into
brennanb2025 wants to merge 1 commit into
Conversation
Contributor
|
Warning Review limit reachedNext included review available in 5 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (9)
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 |
8 of 9 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
User-visible defect: in a workspace with three or more split groups, focusing the still-empty remote HTML preview pane could return focus to an unrelated editor group instead of the editor that opened the preview.
Author: @BrennanKB5
What changed
Why
Follow-up to #15716. That merged fix correctly prevents an unfocused paired preview from activating its new split, but its defensive snapshot fallback searches every other group and selects the first editor-like tab. Group creation order is not focus intent, so a three-group layout can visibly jump to the wrong editor.
This is a focused correctness fix, not a style cleanup. No RPC field, stream opcode, host publication, SSH behavior, folder-workspace assumption, path handling, or platform shortcut changes.
Non-vacuous regression proof
The new three-group acceptance state failed on current
origin/mainbefore the production fix:After the fix, the source editor group remains active.
Validation
pnpm typechecknode config/scripts/check-changed-code-quality.mjsnode config/scripts/check-react-doctor-changed.mjstests/e2e/paired-remote-html-browser-focus.spec.ts— 1 passed; the rendered source editor remained active until the remote browser pane was clickedRemote wire compatibility
No wire change. The new source/owner metadata exists only in renderer-local pending placement state; the host receives the same
browser.tabCreaterequest as before.