Skip to content

studio: allow full access for the installation owner - #12604

Merged
danielhanchen merged 3 commits into
unslothai:mainfrom
mahiatlinux:fix/studio-main-account-sandbox
Oct 3, 2026
Merged

danielhanchen merged 3 commits into
unslothai:mainfrom
mahiatlinux:fix/studio-main-account-sandbox

Conversation

@mahiatlinux

@mahiatlinux mahiatlinux commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Creating a subaccount currently removes Full access from the main account. Make auth.policy.full_access_permitted() and the frontend useFullAccessAllowed() check account ownership so the owner can disable the sandbox with active or deactivated subaccounts.

Keep subaccounts blocked for permission_mode=full, bypass_permissions, and disable_sandbox, including direct tool execution. Preserve the public /api/auth/status pre-login hint for older clients.

Checks

  • 189 focused backend tests and 43 frontend tests passed.
  • Ruff, frontend typecheck, and production build passed.
  • New owner regression tests fail on the base revision and pass with the fix.
  • 36 live authenticated API checks across chat completions, Responses, and Messages confirmed owner admission and subaccount rejection.
  • Browser login verified the menu for both accounts and enabled Full access through the owner's confirmation dialog. A real temporary-file edit outside the sandbox succeeds only for the owner.

Screenshots

Owner account with a second account present, using separate builds at the base and fix:

Before After
Owner before Owner after

Subaccount remains restricted.

Before/after on separate builds (merge base c2fe72a vs 3cc2d41)

The owner is signed in and one managed account exists, so both builds report login_mode: multi. The composer permission menu read from the DOM has 3 rows before (Ask for approval, Approve for me, Run automatically) and 4 rows after, with Full access added for the owner.

Owner permission menu, before and after

Full viewport:

Owner chat view with the permission menu open, before and after

@danielhanchen danielhanchen self-assigned this Oct 3, 2026
danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Oct 3, 2026
danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Oct 3, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member

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

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 3cc2d41bca (this PR's 3cc2d41bc)

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

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 3cc2d41bca

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: 3cc2d41bca

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

Round 2: reviewed mirror 1ce0eb5b59 (this PR's 1ce0eb5b5)

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

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 1ce0eb5b59

No triage reaction was recorded on the mirror

Verdict

The round converged at mirror 1ce0eb5b59 (this PR's 1ce0eb5b5).

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 dd3a704 into unslothai:main Oct 3, 2026
JoshuaL3000 pushed a commit to JoshuaL3000/unsloth that referenced this pull request Oct 4, 2026
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