Repository navigation
fix(devices): preserve warm session history and support local device ordering - #3764
Merged
Merged
Conversation
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.
Cross-device session opens could lose a fast host's first page: the prewarm used ordinary listeners, which discard events until that device is rendered. The adopted stream then had no ready event and hit the 15-second deadline. Buffer target-device/session events through the existing source-aware observer, retain native feeds through ownership transfer, and wait for native listener registration before requesting cached replay. The failure notification reuses the localized history-failure label, consistent with retaining content and exposing retry. Ordinary product listeners remain surface-filtered; no timeout, retry or wire contract is changed.
The linked-device list still switched the rendered host when a row was clicked, even though device navigation now happens through sidebar workspace/session entries. Remove the row button, keyboard activation and trailing chevron; keep visibility, rename and remove actions. Device-row dividers now use equal left/right insets.
Devices can now be dragged into a controller-local order without direction-key bindings or helper tooltips. Both shared visibility buttons also omit hover helper text while retaining their accessible names. The account list, sidebar sections and preview carousel share that preference. A rendered peer missing from presence retains its saved position only until the window leaves it. Save on drop only; use stable device IDs so names, presence and Peer activation do not reset the order. Offline/hidden devices retain their saved entries and new devices follow the arranged ones. No host configuration or wire/persisted host shapes change.
Validation:
RelayHistoryFirstPageOverdueErrorbefore the fix and now passes. An additional run of the 45 direct regression tests passed in the isolated PR checkout.pnpm run check:web,pnpm run i18n:audit(0 warnings),pnpm --dir src/web-ui run icons:checkand changed-source ESLint passed.pnpm run theme:color-audit:all: all 28 selected surfaces passed.Preflight: refreshed upstream/main and reviewed open PRs including drafts. The device rows still activated Peer mode on main; no open PR covered this device-order/row-management change or the prewarm event loss. Main’s separate permission-read fix is included in the branch base; it does not cover this history path.
Development-only click diagnostics remain local and are not included in this PR. Real successful Peer opens informed the investigation; the previously reported failures were not reproduced live after instrumentation, so this PR claims a deterministic event-order regression fix rather than a confirmed attribution of those historical failures.