Skip to content

🐛 fix(desktop): focus onboarding auth success state#14694

Merged
Innei merged 2 commits into
canaryfrom
fix/desktop-onboarding-auth-success
May 12, 2026
Merged

🐛 fix(desktop): focus onboarding auth success state#14694
Innei merged 2 commits into
canaryfrom
fix/desktop-onboarding-auth-success

Conversation

@Innei

@Innei Innei commented May 11, 2026

Copy link
Copy Markdown
Member

💻 Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 👷 build
  • ⚡️ perf
  • ✅ test
  • 📝 docs
  • 🔨 chore

🔗 Related Issue

No related issue found.

🔀 Description of Change

  • Render a dedicated success state after desktop onboarding OIDC authorization succeeds.
  • Keep cloud and self-host success states mutually exclusive so the latest completed login method owns the UI.
  • Remove duplicate success blocks, sign-out actions, alternate login UI, and the OR divider from the success state.
  • Add a Back action that returns to login method selection without clearing the underlying authorization.

🧪 How to Test

  • Tested locally
  • Added/updated tests
  • No tests needed

Validation run:

bunx vitest run --silent='passed-only' 'src/routes/(desktop)/desktop-onboarding/features/LoginStep.test.tsx'
bunx eslint 'src/routes/(desktop)/desktop-onboarding/features/LoginStep.tsx' 'src/routes/(desktop)/desktop-onboarding/features/LoginStep.test.tsx'
bun run type-check
git diff --check origin/canary..HEAD

📸 Screenshots / Videos

Not attached. UI change is covered by the focused component test.

📝 Additional Information

The success screen now treats the Electron remote sync config as the durable authorization source while using local component state only to control whether the focused success view has been dismissed.

@vercel

vercel Bot commented May 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lobehub Ready Ready Preview, Comment May 12, 2026 2:03pm

Request Review

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @Innei, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. electron Electron/Desktop app specific feature:auth Authentication and authorization labels May 11, 2026
@codecov

codecov Bot commented May 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.12%. Comparing base (60c55b7) to head (4238c7f).
⚠️ Report is 2 commits behind head on canary.

Additional details and impacted files
@@             Coverage Diff             @@
##           canary   #14694       +/-   ##
===========================================
- Coverage   84.39%   66.12%   -18.28%     
===========================================
  Files         738     2907     +2169     
  Lines       59933   255647   +195714     
  Branches     8534    30253    +21719     
===========================================
+ Hits        50580   169037   +118457     
- Misses       9200    86457    +77257     
  Partials      153      153               
Flag Coverage Δ
app 60.52% <ø> (?)
database 91.83% <ø> (ø)
packages/agent-runtime 80.48% <ø> (ø)
packages/builtin-tool-lobe-agent 83.41% <ø> (ø)
packages/context-engine 83.99% <ø> (ø)
packages/conversation-flow 92.43% <ø> (ø)
packages/file-loaders 87.60% <ø> (ø)
packages/memory-user-memory 74.74% <ø> (ø)
packages/model-bank 99.94% <ø> (ø)
packages/model-runtime 83.72% <ø> (ø)
packages/prompts 70.39% <ø> (ø)
packages/python-interpreter 92.90% <ø> (ø)
packages/ssrf-safe-fetch 0.00% <ø> (ø)
packages/types 5.44% <ø> (ø)
packages/utils 88.02% <ø> (ø)
packages/web-crawler 88.16% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Store 66.95% <ø> (∅)
Services 54.16% <ø> (∅)
Server 71.37% <ø> (∅)
Libs 56.16% <ø> (∅)
Utils 82.51% <ø> (-10.97%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ec5593c5ba

ℹ️ 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".

Comment on lines +136 to +137
: (statusSuccessLoginMethod ??
(!hasLocalLoginResult && !pendingLoginMethod ? authorizedLoginMethod : null));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reset pending login state after failed auth flows

The success fallback is now gated by !pendingLoginMethod, so once an auth attempt sets pendingLoginMethod this component will hide the existing authorized success state until that flag is cleared. In failure paths (remoteServerSyncError / authorizationFailed), pendingLoginMethod is never reset, which can leave users stuck on the login-method UI without a "Get Started" path even when a prior authorization is still valid (for example, when connectRemoteServer throws before config changes). Clearing pendingLoginMethod on failed/cancelled attempts avoids this dead-end state.

Useful? React with 👍 / 👎.

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels May 12, 2026
@Innei Innei merged commit ddc67bc into canary May 12, 2026
48 of 49 checks passed
@Innei Innei deleted the fix/desktop-onboarding-auth-success branch May 12, 2026 14:57
emaxlele pushed a commit to emaxlele/lobehub that referenced this pull request May 12, 2026
This was referenced May 12, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

electron Electron/Desktop app specific feature:auth Authentication and authorization size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant