Skip to content

fix(harmony): make remote connections resumable - #2802

Merged
wgqqqqq merged 6 commits into
GCWing:1.0.0-explorefrom
wgqqqqq:wgq/fix-harmony-remote-device-connect
Sep 5, 2026
Merged

wgqqqqq merged 6 commits into
GCWing:1.0.0-explorefrom
wgqqqqq:wgq/fix-harmony-remote-device-connect

Conversation

@wgqqqqq

@wgqqqqq wgqqqqq commented Sep 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • unlock the complete chat/settings shell as soon as QR pairing succeeds; show QR access as a temporary identity in Settings and open account sign-in only when the user selects that identity card
  • expose the active desktop as an independent Settings card; QR connections can be explicitly ended and forgotten without logging out the phone account, while offline remembered targets remain reconnectable
  • persist the last successful control transport separately from the remembered account device, so HarmonyOS cold start restores the intended route
  • keep an established QR room alive across desktop account login, replacement, logout, and expiry; rotate only an unpaired invitation whose encoded authentication mode became stale
  • keep an active QR room alive when the phone account logs out or expires, and allow QR-to-account recovery only for the same physical desktop on the same relay
  • isolate concurrent QR/account connection attempts, complete initial synchronization before publishing a transport, and keep transient failures retryable
  • preserve composer drafts during model selection, replace the model sheet with a keyboard-safe anchored menu, and keep supplemental voice input available beside existing text
  • preserve HarmonyOS bundle and encrypted-storage identities across the OpenBitFun rename

Verification

  • pnpm run harmony:architecture
  • HarmonyOS local unit tests through hvigor
  • pnpm run i18n:audit
  • pnpm run theme:color-audit:all
  • signed HarmonyOS HAP build through hvigor
  • installed and launched the signed HAP on USB device 5ZU0226202001116
  • cargo test -p openbitfun-desktop --lib (395 passed, 4 ignored)
  • focused desktop account-boundary test rerun after rebasing onto the latest base
  • pnpm run check:web
  • git diff --check

pnpm run check:repo-hygiene is locally blocked only by eight untracked HarmonyOS device screenshots/layout dumps; those files are not part of this PR.

Remote scenarios

  • Remote control: exercised by desktop lifecycle tests, Harmony transport/startup/presentation tests, signed HAP build, and physical-device install
  • Peer Device Mode: same-device account fallback, target restore, offline retry, and transport replacement paths are covered by Harmony tests
  • Remote workspace and Detached Dispatch: no behavior changed

@wgqqqqq
wgqqqqq force-pushed the wgq/fix-harmony-remote-device-connect branch from 9eaef1f to ae5e2a4 Compare September 5, 2026 03:28
@wgqqqqq
wgqqqqq merged commit 45e3692 into GCWing:1.0.0-explore Sep 5, 2026
12 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