Skip to content

fix(devices): preserve warm session history and support local device ordering - #3764

Merged
bobleer merged 8 commits into
openBitFun:mainfrom
bobleer:bob/account-devices-no-switch
Nov 6, 2026
Merged

bobleer merged 8 commits into
openBitFun:mainfrom
bobleer:bob/account-devices-no-switch

Conversation

@bobleer

@bobleer bobleer commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

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:

  • 143 focused history/open/transport tests passed, including a real Tauri event-router regression that failed with RelayHistoryFirstPageOverdueError before the fix and now passes. An additional run of the 45 direct regression tests passed in the isolated PR checkout.
  • 122 focused tests across AccountPanel, dialog contracts/status, preview carousel, sidebar ordering and preference persistence passed.
  • pnpm run check:web, pnpm run i18n:audit (0 warnings), pnpm --dir src/web-ui run icons:check and changed-source ESLint passed.
  • pnpm run theme:color-audit:all: all 28 selected surfaces passed.
  • DOM/store fixtures cover drag cancellation, absence of key bindings/tooltips, local persistence, legacy/malformed preferences, offline recovery and simulated Peer switching. No real SSH, mobile Remote Control or Detached Dispatch scenario was exercised; no claim of native WebView drag verification.

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.

@bobleer bobleer changed the title feat(devices): reorder devices locally and keep management rows passive fix(devices): preserve warm session history and support local device ordering Nov 6, 2026
@bobleer
bobleer merged commit c2ae5b8 into openBitFun:main Nov 6, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant