Skip to content

Unsloth Studio / Desktop: log out, show the owner's profile in Accounts, and let the owner sign in with a chosen name - #15619

Merged
danielhanchen merged 3 commits into
unslothai:mainfrom
LeoBorcherding:studio/desktop-account-login-upstream
Oct 28, 2026
Merged

danielhanchen merged 3 commits into
unslothai:mainfrom
LeoBorcherding:studio/desktop-account-login-upstream

Conversation

@LeoBorcherding

@LeoBorcherding LeoBorcherding commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Settings > Accounts showed the owner as "unsloth" with a letter avatar, even when the owner had set a profile name and picture. The owner also always had to sign in as unsloth (and reset-password --username <profile name> said "account not found"), and Unsloth Desktop had no Log out at all.

  • Accounts: each row shows the profile name and avatar, plus the name it signs in with. The owner's row has a "..." menu with Change password; so does the Profile page.
  • Owner sign-in name: set in Settings > Accounts, checked like a managed username and can't clash with one. Login and reset-password --username accept it; unsloth keeps working and stays the internal identity. New nullable auth_user.login_alias column.
  • Log out on Desktop: shown in the user menu and the shortcut. It writes a marker next to the desktop secret so the shell can't sign the owner straight back in, even after a quick quit. Single account: the login page offers "Continue as owner". Multi account: username and password.

Password changes only happen in Settings while signed in; nothing new on the login screen.

Tested on Unsloth Desktop built from this branch (Change password, sign-in name and multi-account shots taken at 3feaf61), Windows 11 (AMD R9700), isolated install. Log out, quit 2 s later and relaunch stays signed out; Continue as owner survives a relaunch; signing in with the sign-in name works in Desktop, in Edge, and in reset-password. Backend, Rust (desktop_auth) and frontend suites pass on a MacBook Pro M5. Not tested by hand: Linux and macOS Desktop.

Before (main) After
Log out in the Desktop user menu
Signed out, single account
Change password, from the owner's "..." menu
Signed out, multi account (owner can use the sign-in name)

Related: #13961 (independent).

Before / after: Settings > Accounts

Same owner profile (display name "Riley Owner" and avatar) and one managed account on both sides; merge base a20b732e0 vs head 46cb010ed. The owner row now shows the profile name and avatar, every row shows the name it signs in with, the owner gets a "..." menu with Change password, and the owner sign-in name field appears.

@LeoBorcherding

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-28T00:54:14.408217Z
We couldn’t complete this review. Comment @codex review to try again.
7ad7bf3 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

An unknown error occurred
ℹ️ 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".

@LeoBorcherding

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

An unknown error occurred
ℹ️ 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".

@LeoBorcherding

LeoBorcherding commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator Author

Codex here answered "Something went wrong" twice, so it was run on a fork mirror with an identical tree (3feaf61 on LeoBorcherding#619 has the same tree as 7ad7bf3): no major issues.

CI at 7ad7bf3: 90 pass, including Unsloth API & Auth, frontend unit tests, Rust unit tests (macOS, Windows), the Tauri Linux build and every Core / Core zoo job. The three failing Backend CI jobs, (Python 3.13, a-f), (Python 3.13, g-r) and Repo tests (CPU, rest), also fail on main at this PR's base a20b732 (run); the failures are torch.compile / graph-break tests plus an encoding check on test_video_encoder_exact_pin.py, none in files this PR touches.

@shimmyshimmer

Copy link
Copy Markdown
Member

Review record for #15619, carried over from the mirror it was reviewed on: danielhanchen/unsloth-staging-review#577.

Findings are quoted as posted and attributed to the account that posted them. The reactions shown are the triage recorded on the mirror; none were re-applied here. Commits are named as the mirror's, with this PR's equivalent where one was found.

Round 1: reviewed mirror 7ec914725 (no equivalent commit found on this PR)

chatgpt-codex-connector[bot] (on the mirror)

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 7ec9147252

No triage reaction was recorded on the mirror

chatgpt-codex-connector[bot] (on the mirror)

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 7ec9147252

View security finding report

Only the user who started this review can view the report in Codex.

No triage reaction was recorded on the mirror

Verdict

The round converged at mirror 7ec914725 (no equivalent commit found on this PR).

This is the review as it stood at that commit. Anything pushed to this PR afterwards was not part of it.

@danielhanchen
danielhanchen merged commit ded2b14 into unslothai:main Oct 28, 2026
91 of 94 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.

3 participants