Skip to content

Studio: shorter permission menu, Learn more, calmer Full access - #12630

Merged
shimmyshimmer merged 5 commits into
mainfrom
studio-permission-menu
Oct 3, 2026
Merged

shimmyshimmer merged 5 commits into
mainfrom
studio-permission-menu

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

Summary

The tool call permission menu is shorter and easier to scan, with a Learn more link to a fuller explanation in Settings. Full access no longer stands out in yellow, and turning it on asks through a short confirmation that lists what it opens up.

Changes

Permission menu (composer pill, chat settings sheet, the "+" menu while dictating)

  • Heading is "Tool call permissions", with a Learn more link on the right that opens Settings > General and scrolls to Permissions. The dictation submenu has it too. The dropdown inside Settings leaves the link out.
  • One-line descriptions:
    • Ask for approval: "Ask before using tools or the internet"
    • Approve for me: "Only ask for actions that look risky"
    • Run automatically: "Never ask, but keep code in the sandbox"
    • Full access: "Full access to your computer"
  • Menu width is 330px (was 300px), so every row fits on one line.
  • The selected tick is 2px larger than the row icons and centred on the label and description together.
  • Full access uses the Hugeicons Shield Alert icon. The pinned @hugeicons/core-free-icons (4.1.1) predates it, so the path data is inlined in src/lib/shield-alert-icon.tsx, like sparkles-icon.tsx.

Full access styling

  • No yellow in the pill, menu rows, Settings dropdown or chat settings sheet. Full access looks like every other level.
  • The now unused data-variant="danger" pill rules are removed.

Full access confirmation

  • Replaces "Enable Full access? / I understand" with "Turn on Full access?":
    • A short summary.
    • A list of what it opens up: Files, Commands, Internet.
    • A one-line risk note with Learn more.
    • Cancel and Turn on.
  • Clicking the backdrop cancels. The card has no ring.
  • The card takes focus on open instead of Cancel, so Cancel shows no focus border until it is tabbed to.
  • Its Learn more hands Settings the element focused before the dialog opened, so closing Settings returns focus there rather than to the removed button. If the confirmation came from a menu, that element is the menu's trigger (pill or "+").
  • One shared component (FullAccessConfirmContent) serves both dialogs that ask for it.

Settings > Permissions

  • A single row that names the selected level and explains it in full, with the dropdown on the right. The old "Tool permissions" label and description are gone.
  • Each level has a localized name and a longer explanation in all 12 locales (settings.general.permissions.names.* and details.*). The unused bypassLabel and bypassDescription keys are removed.
  • The Ask explanation notes that tools run by an external provider are not paused, matching the hint in the chat settings sheet.
  • Adds a general-permissions scroll target for Learn more.

Composer pills

  • A pill whose menu is open keeps its hover fill, so it reads as the menu's anchor.
  • Closing a menu by clicking its pill again no longer leaves a focus ring on the pill. Radix refocuses the trigger on close and Chrome treats that as :focus-visible. New src/lib/input-modality.ts records whether the last input was a pointer or the keyboard on <html data-input-modality>, and the ring is hidden after pointer input. Tabbing to a pill still shows it.
  • Pill labels are no longer selectable, so repeated clicks do not highlight the text.

Testing

  • npm test, npm run i18n:check:strict, npm run build and the bundle budget pass.
  • New tests/composer-pill-pointer-focus.test.ts covers the modality tracker and the pill focus rules.
  • New tests/permission-mode-learn-more.test.ts covers the Learn more target, the Settings row, the description length, the confirmation and the absence of yellow. The stubs in tests/account-permissions.test.ts cover the new imports.
  • Checked in a local build:
    • The composer menu, Learn more scrolling to Permissions, and the Settings row for each level.
    • The confirmation at normal and narrow widths. A backdrop click closes it and leaves the level unchanged.
    • Learn more from the confirmation, then closing Settings, puts focus back on the permission pill.
    • The open pill highlight, and no ring after closing a menu by clicking its pill, while keyboard focus still shows it.

Shorter one-line level descriptions with a Learn more link to Settings. Settings explains only the selected level. Full access gets a short confirmation, a shield alert icon and no yellow. Open composer pills keep their hover fill.
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 3, 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 ✅ Completed 2026-10-03T12:56:02.792797Z 184737a 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[bot]

This comment was marked as resolved.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 184737a7fb

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

@shimmyshimmer
shimmyshimmer merged commit c2fe72a into main Oct 3, 2026
@shimmyshimmer
shimmyshimmer deleted the studio-permission-menu branch October 3, 2026 13:21
shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 3, 2026
unslothai#12630 also dropped data-variant="danger" from the composer pill on
purpose (calmer Full access), so the next line of the permission step failed
once the dialog lookup was fixed. expect_mode already checks the pill reads
Full access. The fast guard now also pins every attribute the step reads off
the pill to one the pill renders.
danielhanchen added a commit that referenced this pull request Oct 3, 2026
…rding (#12640)

* Find the Full access consent dialog by its slots, not its wording

#12630 reworded the Full access consent dialog (Enable Full access? became
Turn on Full access?, I understand became Turn on). The consent flow did not
change, but the Chat UI permission step looked the heading and the confirm
button up by their old English names, so Chat UI Tests went red on main.

The step now reaches the title, Cancel and confirm through the data-slot
attributes the shared AlertDialog parts render, and still checks that the
title names Full access and the body warns about the sandbox. A fast-shard
test pins both halves: the step names no dialog copy, and the dialog is still
built from the parts those slots come from.

* Stop asserting the Full access pill's removed danger variant

#12630 also dropped data-variant="danger" from the composer pill on
purpose (calmer Full access), so the next line of the permission step failed
once the dialog lookup was fixed. expect_mode already checks the pill reads
Full access. The fast guard now also pins every attribute the step reads off
the pill to one the pill renders.
JoshuaL3000 pushed a commit to JoshuaL3000/unsloth that referenced this pull request Oct 4, 2026
…othai#12630)

* Studio: shorter permission menu, Learn more, calmer Full access

Shorter one-line level descriptions with a Learn more link to Settings. Settings explains only the selected level. Full access gets a short confirmation, a shield alert icon and no yellow. Open composer pills keep their hover fill.

* Studio: roomier Full access list, no focus border on Cancel at open

* Studio: slightly wider Full access dialog, borderless Cancel

* Hide composer pill focus ring after a click

* Permission menu: Learn more in dictation, Settings focus return, localized level names
JoshuaL3000 pushed a commit to JoshuaL3000/unsloth that referenced this pull request Oct 4, 2026
…rding (unslothai#12640)

* Find the Full access consent dialog by its slots, not its wording

unslothai#12630 reworded the Full access consent dialog (Enable Full access? became
Turn on Full access?, I understand became Turn on). The consent flow did not
change, but the Chat UI permission step looked the heading and the confirm
button up by their old English names, so Chat UI Tests went red on main.

The step now reaches the title, Cancel and confirm through the data-slot
attributes the shared AlertDialog parts render, and still checks that the
title names Full access and the body warns about the sandbox. A fast-shard
test pins both halves: the step names no dialog copy, and the dialog is still
built from the parts those slots come from.

* Stop asserting the Full access pill's removed danger variant

unslothai#12630 also dropped data-variant="danger" from the composer pill on
purpose (calmer Full access), so the next line of the permission step failed
once the dialog lookup was fixed. expect_mode already checks the pill reads
Full access. The fast guard now also pins every attribute the step reads off
the pill to one the pill renders.
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