Repository navigation
Keep remote folder sidebar rows distinct across execution hosts - #26634
Merged
Merged
Conversation
nwparker
force-pushed
the
nwparker/remote-folder-row-identity
branch
from
October 8, 2026 18:56
f7c2505 to
b7613ca
Compare
nwparker
force-pushed
the
nwparker/remote-watcher-selected-host
branch
from
October 8, 2026 18:56
70bf530 to
61f4d6c
Compare
Folder rows used the bare folder ID for active state, DOM IDs, virtual keys and activation, so same-ID folders on two hosts collided. Use the existing host-qualified worktree identity, matching git worktree rows.
OrcaWin
force-pushed
the
nwparker/remote-folder-row-identity
branch
from
October 9, 2026 02:27
b7613ca to
09577cc
Compare
OrcaWin
changed the base branch from
nwparker/remote-watcher-selected-host
to
main
October 9, 2026 02:27
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 37 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (11)
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 |
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.
ELI5
Two remote machines can have folders with the same ID. Selecting one now highlights that machine's folder and gives its row a distinct identity for keyboard navigation and rendering.
What Changed
Before, folder rows compared only the folder ID for active styling and used that same unqualified ID for activation, DOM IDs and virtual rows. A real A→B click left the accessibility marker on A while the explorer correctly displayed B; other captures highlighted both rows. Both rows also had identical DOM and virtual keys.
Folder rows now carry the existing host-qualified worktree identity through active-state checks, immediate activation, DOM IDs, virtual keys and navigation. The synthetic-folder host projection also supplies the row identity without building another ownership resolver. Reveal lookup accepts qualified keys and checks the requested host; legacy bare folder-ID reveal matching remains supported.
Why
Git worktree rows already use host-qualified identity. Applying that same identity consistently to folder rows fixes both the immediate click and subsequent rendering, instead of patching only the highlight while leaving duplicate keys and accessibility pointers.
Linked Issue
Found during SSH → Remote consolidation testing; no existing issue.
Visual Proof
Two valid, independently converted Linux SSH hosts publish the same folder ID and path. The untouched parent displays the new host's files but marks the wrong row or both rows active; runtime logs show duplicate DOM and virtual keys. Corrected screenshots highlight only the selected host, and the test verifies its active marker, unique keys and listbox pointer.
folder-row-identity-runtime-red-final.log
folder-row-identity-runtime-green-final.log
Testing
Identical final baseline fails A→B in 31.1 s and B→A in 20.0 s. Fresh corrected cases pass in 20.9 / 20.6 s (43.4 s total), including root/nested ownership, actual sidebar clicks, row identities/accessibility, host file creation/deletion, shared events, switching back and hide/reopen.
Five initial regressions fail before the row fix; two additional qualified-reveal regressions fail on the unchanged reveal lookup. All 215 tests / 18 files pass afterward. Full
pnpm tc,pnpm lint, changed quality, standalone React Doctor, fresh E2E build and commit hooks pass.Combined stack verification: C18–C21 rebased on #26637/#26645 preserves their renderer changes exactly. 547 tests / 49 files, full typecheck/lint, changed quality (including React Doctor/design-system checks), a fresh E2E build and both real-host switch directions pass. CI reruns on the new head; prior green results are not claimed for it.
Review
Now based directly on
main(no longer stacked). The renderer change has no dependency on #26637/#26645/#26616/#26627/#26632, so it was rebased alone ontomain. The real-host E2E assertions lived intests/e2e/ssh-orcad-explorer-selected-host.spec.ts, which #26616 introduces; they were dropped here along with the matching CI routing entries and can be folded into that spec once it lands. Unit coverage (row identity, active marker, listbox pointer, qualified reveal) remains. The product change concerns folder-row presentation and navigation; it does not change host execution or server lifecycle.Agent skill upstream boundary
Notes
No server or remote wire change. Actual runtime coverage is macOS client / Linux SSH hosts; Windows was not exercised. All host writes target disposable fixtures. The previous head was fully green (24 successes / 22 conditional skips). The new head includes the exercised startup fixes #26637/#26645, addressing the parent CI's canceled-start race and premature idle-record observation. The original failure receipts remain recorded; CI will rerun on the rebased head.
Checklist