Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Composer: Run automatically no longer says MCP tools stay sandboxed
[skip ci]
  • Loading branch information
danielhanchen committed Nov 27, 2026
commit 5ca9197ab1dcab2f3d28cc987f35f5ba0a26b400
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const PERMISSION_MODE_OPTIONS: readonly {
{
value: "off",
label: "Run automatically",
description: "Never ask, but keep code in the sandbox",
description: "Never ask. Python and Terminal stay sandboxed, MCP tools do not",

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 Keep the permission summary within its tested length limit

The new description is 63 characters, but studio/frontend/tests/permission-mode-learn-more.test.ts:103–107 requires every permission-mode description to be at most 60 characters. The existing menu descriptions stay to one short line test reproducibly fails against this commit, whereas the previous description satisfies the assertion. Shorten the summary while preserving the MCP caveat, or explicitly revise the layout/test contract if longer descriptions are intended.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Fixed in 3623610: shortened to 53 characters, keeping the MCP caveat.

icon: SparklesGlyph,
},
{
Expand Down
2 changes: 1 addition & 1 deletion studio/frontend/src/i18n/locales/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2090,7 +2090,7 @@ export const it = {
auto:
"Esegue da solo le chiamate abituali e chiede conferma solo quando un'azione sembra rischiosa, come leggere credenziali, aumentare i privilegi o eseguire comandi distruttivi.",
off:
"Gli strumenti MCP abilitati usano le autorizzazioni del server e possono essere eseguiti senza chiedere l’approvazione. Python e il terminale usano il livello di sandbox selezionato. Le chiamate rischiose richiedono comunque l’approvazione se l’isolamento del sistema operativo non è disponibile o si seleziona il livello Basso.",
"Gli strumenti MCP abilitati usano le autorizzazioni del server e possono essere eseguiti senza chiedere l’approvazione. Python e il terminale usano il livello di sandbox selezionato. Le chiamate rischiose a Python e al terminale richiedono comunque l’approvazione se l’isolamento del sistema operativo non è disponibile o si seleziona il livello Basso.",
full:
"Esegue ogni chiamata agli strumenti senza chiedere e disattiva la sandbox del codice, così il codice Python e da terminale può leggere e modificare qualsiasi file accessibile al tuo account.",
},
Expand Down
4 changes: 4 additions & 0 deletions studio/frontend/tests/editor-mcp-setup.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const SETUP = readSrc("features/chat/editor-mcp-setup.tsx");
const COMPOSER = readSrc("features/chat/mcp-composer-button.tsx");
const BLENDER = readSrc("features/chat/blender-mcp-setup.tsx");
const GUIDE = readSrc("features/chat/mcp-install-guide.ts");
const PERMISSION = readSrc("features/chat/permission-mode-select.tsx");

test("the MCP menu keeps Blender and adds the three managed editors after it", () => {
for (const id of ["unity", "unreal", "godot", "figma", "roblox"]) {
Expand Down Expand Up @@ -75,5 +76,8 @@ test("editors that run code outside the sandbox say so before consent", () => {
assert.doesNotMatch(CATALOG, new RegExp(`\\n ${id}: \\{((?!\\n \\},)[\\s\\S])*?sandboxWarning`));
}
assert.match(SETUP, /t\("settings\.sandbox\.editorMcpWarning", \{ name: copy\.name \}\)/);
// Run automatically must not promise the sandbox covers MCP tools (#19769).
assert.doesNotMatch(PERMISSION, /keep code in the sandbox/);
assert.match(PERMISSION, /MCP tools do not/);
assert.match(SETUP, /aria-describedby=\{copy\.sandboxWarning \? `\$\{editorId\}-mcp-sandbox-warning` : undefined\}/);
});