Repository navigation
Studio: sandbox level picker and Settings > Sandbox cleanup - #12855
Conversation
Permission menu:
- Replace the Sandbox switch with a "Sandbox High >" chip that opens a level picker on click
- Picker asks "How should code be sandboxed?" with Learn more beside it
- Picker sits beside the menu with a small gap instead of overlapping it
Settings > Sandbox:
- Low | High segmented toggle, same as Follow-up behavior
- Descriptions name the selected option ("Approve for me: ...", "High: ...")
- Full access shows a locked Disabled option in the toggle and the picker
- Grey OS sandbox badges with a shield icon, sized like the dropdowns
- Refresh moved next to the "This computer" heading
- Shield cog icon for the Sandbox tab
Removes now unused levelHelp and levelHigh/LowDescription strings.
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Radix closes a submenu once the pointer or focus moves back to the parent menu. The picker now owns its open state and only closes on a click outside it, a second click on the chip, or ArrowLeft.
Radix applies one sideOffset to whichever side the picker lands on, so an offset measured for the right overlapped the menu after a flip. Measure the picker once mounted and use the left offset when only the left fits.
|
@codex review |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Lyxot
left a comment
There was a problem hiding this comment.
LGTM. Frontend-only change, no dangling references to the removed i18n keys.
…#12868) - Python floor (workflow-trigger lint, Source lint): #8561 imports compression.zstd (3.14) inside a try whose ImportError falls back to zstandard. That except is the guard; mark the import novermin, as the repo does for its other guarded above-floor imports. - Frontend typecheck: #12804 renamed the chat-canvas-network scroll target to browser-html-network on the browser tab, and settings-deep-open-requests.test.ts still used the old name. - ui-font-size-scales-spacing: #12852 added two w-[26px] cells to the browser address bar; scale them with --ui-space-scale like the rest of that bar. - Chat UI permission step: #12855 replaced the Sandbox Low/High switch (menuitemcheckbox) with a Sandbox chip that opens a level picker. The step now reads the chip and picks High from the picker, keeping every assertion about what Low, High and the setup popup do.
Summary
Cleans up the sandbox controls in the composer permission menu and in Settings > Sandbox so they match the rest of Studio.
Permission menu
sideOffsetto whichever side it lands on, so the side and offsets are worked out once the picker mounts.Settings > Sandbox
h-8,text-sm).actionslot onSettingsSection. Other callers render as before.@hugeicons/core-free-icons, so it lives insrc/lib/shield-cog-icon.tslike the existing shield-alert icon.Strings
permissionLabel,levelPickerTitle,levelOff,levelOffShort,levelHighDetail,levelLowDetail. The detail strings reuse the existing translations without the "Low:" / "High:" prefix.levelHighShort/levelLowShortare reworded to be more specific.levelHelp,levelHighDescriptionandlevelLowDescription.sv, which already falls back to English for these strings.Testing
npm test: 10699 pass, 0 fail.typecheck: only the two existing errors intests/settings-deep-open-requests.test.ts(chat-canvas-networkscroll target), which this branch does not touch.i18n:checkandbuildpass.account-permissions.test.tsandpermission-mode-learn-more.test.tsfor the picker, the Full access Disabled state, click to open, and the Settings toggle and descriptions.