Conversation
Clear pendingLoginMethod in authorizationFailed, authorizationProgress cancelled, and remoteServerSyncError handlers to prevent users getting stuck without a Get Started path when a re-auth attempt fails but a prior authorization is still valid.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## canary #14695 +/- ##
========================================
Coverage 66.17% 66.17%
========================================
Files 2899 2899
Lines 253982 253982
Branches 25691 24834 -857
========================================
Hits 168084 168084
Misses 85745 85745
Partials 153 153
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b49464687b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Closed
Coooolfan
pushed a commit
to Coooolfan/lobehub
that referenced
this pull request
May 12, 2026
…lobehub#14695) * 🐛 fix(desktop): focus onboarding auth success state * 🐛 fix(desktop): reset pendingLoginMethod on auth failure/cancel paths Clear pendingLoginMethod in authorizationFailed, authorizationProgress cancelled, and remoteServerSyncError handlers to prevent users getting stuck without a Get Started path when a re-auth attempt fails but a prior authorization is still valid. * Delete src/routes/(desktop)/desktop-onboarding/features/LoginStep.test.tsx --------- Co-authored-by: Innei <inbox@innei.in>
Innei
added a commit
to Innei/lobehub
that referenced
this pull request
May 12, 2026
…lobehub#14695) * 🐛 fix(desktop): focus onboarding auth success state * 🐛 fix(desktop): reset pendingLoginMethod on auth failure/cancel paths Clear pendingLoginMethod in authorizationFailed, authorizationProgress cancelled, and remoteServerSyncError handlers to prevent users getting stuck without a Get Started path when a re-auth attempt fails but a prior authorization is still valid. * Delete src/routes/(desktop)/desktop-onboarding/features/LoginStep.test.tsx --------- Co-authored-by: Innei <inbox@innei.in>
emaxlele
pushed a commit
to emaxlele/lobehub
that referenced
this pull request
May 12, 2026
…lobehub#14695) * 🐛 fix(desktop): focus onboarding auth success state * 🐛 fix(desktop): reset pendingLoginMethod on auth failure/cancel paths Clear pendingLoginMethod in authorizationFailed, authorizationProgress cancelled, and remoteServerSyncError handlers to prevent users getting stuck without a Get Started path when a re-auth attempt fails but a prior authorization is still valid. * Delete src/routes/(desktop)/desktop-onboarding/features/LoginStep.test.tsx --------- Co-authored-by: Innei <inbox@innei.in>
arvinxx
pushed a commit
that referenced
this pull request
May 12, 2026
…#14695) * 🐛 fix(desktop): focus onboarding auth success state * 🐛 fix(desktop): reset pendingLoginMethod on auth failure/cancel paths Clear pendingLoginMethod in authorizationFailed, authorizationProgress cancelled, and remoteServerSyncError handlers to prevent users getting stuck without a Get Started path when a re-auth attempt fails but a prior authorization is still valid. * Delete src/routes/(desktop)/desktop-onboarding/features/LoginStep.test.tsx --------- Co-authored-by: Innei <inbox@innei.in>
This was referenced May 12, 2026
Closed
Merged
arvinxx
added a commit
that referenced
this pull request
May 13, 2026
# 🚀 LobeHub Release (20260513) **Hotfix Scope:** Ship the canary backlog (111 PRs) onto main as a fast-tracked patch — operator-focused, no weekly-style write-up. > Brings the accumulated canary work into main: agent/task improvements, hetero-agent fixes, desktop & onboarding polish, and several reliability caps. ## ✨ What's Included - **Agent & tasks** — Self-review proposal-to-action automation, sub-agent dispatch consolidated to `lobe-agent`, AskUserQuestion wiring for Claude Code, scheduler/hotkey/TodoList polish. (#14583, #14657, #14715, #14639, #14732, #14707, #14713) - **Home & onboarding** — Daily brief with linkable welcome + paired input hint, inline skill auth in recommended task templates, cleanup of captcha-on-signin and marketplace early-exit. (#14589, #14676, #14573, #14598) - **Bots & integrations** — Slack MPIM support, Discord DM fix, slash-command + connect-error fixes, gateway client-tool plugin state. (#14733, #14591, #14596) - **Desktop & CLI** — Windows `.cmd` shim detection for `claude` / `codex` CLIs, auth focus & pending-login reset fixes. (#14720, #14694, #14695) - **Reliability** — Cap web-crawler body size and image binary at safe limits, attach error listeners to Neon/Node pools, reject inactive OIDC access. (#14660, #14711, #14606, #14674) - **Database** — `agent_operations` table + persist agent operations from the runtime; switch user memory search to `paradedb.match(...)`. (#14416, #14736, #14590) ## ⚙️ Upgrade - **Self-hosted:** pull the latest image and restart. Drizzle migrations (including the new `agent_operations` table) run automatically on boot.
lezi-fun
pushed a commit
to lezi-fun/lobehub
that referenced
this pull request
May 13, 2026
…lobehub#14695) * 🐛 fix(desktop): focus onboarding auth success state * 🐛 fix(desktop): reset pendingLoginMethod on auth failure/cancel paths Clear pendingLoginMethod in authorizationFailed, authorizationProgress cancelled, and remoteServerSyncError handlers to prevent users getting stuck without a Get Started path when a re-auth attempt fails but a prior authorization is still valid. * Delete src/routes/(desktop)/desktop-onboarding/features/LoginStep.test.tsx --------- Co-authored-by: Innei <inbox@innei.in>
4 tasks
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.
Summary
Fixes the state-management gap identified in #14694 (discussion).
pendingLoginMethodwas never reset in failure/cancel paths, which could leave users stuck on the login-method UI without a "Get Started" path — even when a prior authorization was still valid.Changes
Added
setPendingLoginMethod(null)in three failure/cancel handlers:authorizationFailedbroadcast — clears pending state so the authorized fallback can re-appearauthorizationProgresscancelled phase — resets on user-initiated cancelremoteServerSyncErroreffect — resets whenconnectRemoteServerthrows before config changesTesting
authorizedLoginMethodas the fallback forsuccessLoginMethodauthorizationSuccessful) already clearedpendingLoginMethod— unchangedhandleCancelAuth/handleBackToLoginMethods) already cleared it — unchanged