Skip to content

fix(account): harden login finalize, peer hydrate, and relay deploy - #1637

Merged
bobleer merged 2 commits into
GCWing:mainfrom
bobleer:fix/account-login-peer-relay-harden
Jul 19, 2026
Merged

fix(account): harden login finalize, peer hydrate, and relay deploy#1637
bobleer merged 2 commits into
GCWing:mainfrom
bobleer:fix/account-login-peer-relay-harden

Conversation

@bobleer

@bobleer bobleer commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Defer account session persistence until cloud/local sync choice is finalized (account_finalize_login), so killing the app on the overwrite screen no longer restores a logged-in state; closing that UI logs out.
  • Fix Peer Device Mode session hydrate: skip fail-closed account_fetch_session_turns on the controller, soft-no-op related cloud paths, clear stale workspace paths on peer switch, pass live workspace into create_session, and keep config/mode HostInvokes high priority.
  • Harden one-click relay deploy (container-aware already-deployed, port ownership, cancel-on-wizard-close, configurable RELAY_PORT) and add regression READMEs/comments at account login, peer-device, and relay-deploy critical nodes.

Test plan

  • Account login with existing cloud settings → quit on overwrite screen → restart is logged out; choosing cloud/local finalizes and persists.
  • Peer Device Mode: B controls A → sessions load via host restore (no hang/fail on cloud turn fetch); create session uses peer workspace path.
  • One-click deploy: close wizard during Docker build cancels remote task; changing listen port still detects running bitfun-relay; register/import works; Remote Connect Self-Hosted entry opens the wizard.
  • pnpm run type-check:web and pnpm run i18n:audit for UI/locale paths; cargo check -p bitfun-desktop for Tauri/API changes.

bobleer added 2 commits July 19, 2026 23:41
Defer session persistence until sync choice is finalized, skip fail-closed
cloud turn fetch in Peer Device Mode, and harden one-click relay deploy
preflight/cancel/port ownership with regression docs at critical nodes.
Remove CJK from AccountLoginDialog comments, pass live workspace into
createChatSession call sites, clear workspace before peer emit, align CLI
pending login status, and keep relay_deploy commands controller-local.
@bobleer
bobleer merged commit 1691f38 into GCWing:main Jul 19, 2026
5 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