Repository navigation
Description
canvas-sandbox.mp4
Summary
In an Agent Host chat with Sandboxing for terminal on, choosing a canvas from the canvas menu does nothing. No panel opens, no error shows, and nothing is logged. Turn sandboxing off, pick the same canvas again, and it opens right away.
It's surprising because the toggle is labeled as a terminal setting, yet it also breaks canvases, with no sign of what went wrong.
Steps to reproduce
- Open the Agents window and start a new Agent Host chat.
- Open the permissions picker (Assisted permissions) and make sure Sandboxing for terminal is on.
- Send any message, for example
hi. - Open the canvas menu in the side toolbar and choose a canvas, for example Session summary. Try once while the turn is running and again after it finishes.
- Open the permissions picker, turn Sandboxing for terminal off, and choose the same canvas again.
Expected
In step 4, the canvas opens. If sandboxing really has to block it, VS Code shows an error that says so and explains how to fix it.
Actual
- Step 4: nothing happens, during the turn or after it.
- Step 5: the canvas opens immediately and the agent receives its first refresh request.
Logs
agenthost.log and renderer.log have no entry for either failed attempt. Nothing about canvases, sandboxing, or errors appears between the turn going idle and the toggle change. The first canvas activity comes only after sandboxing is turned off:
11:17:24.750 [info] [Copilot:<sdk-session>] Session idle
← picked Session summary at ~11:17:22 and ~11:17:28: nothing logged
11:17:32.032 [info] [Copilot:<sdk-session>] Applied SDK sandboxConfig via session.options.update ← toggle off
11:17:36.032 [info] [AgentHostTurnTiming] {... "turnId":"a0f2677c-...", ...} ← canvas refresh turn
11:17:38.583 [info] [Copilot:<sdk-session>] Tool started: invoke_canvas_action
Notes
- Reproduced with Session summary, a canvas from an installed plugin. Agents QA, another plugin canvas, appears in the same menu. I haven't checked whether built-in canvases are affected.
- While sandboxing is on, the shield icon shows on the Assisted permissions chip. When sandboxing is turned off, the icon disappears and canvases start working.
- Not root-caused. Whatever handles canvas opens seems to drop the request while the SDK
sandboxConfigis active, without reporting an error.
Environment
- VS Code Insiders
1.146.0-insider(e576c7bbeb39772a1d1ebe472545def0d93e6d8b), Agents window - Harness: Agent Host (Copilot CLI provider), local
- Permissions: Interactive, Assisted, Sandboxing for terminal on
- macOS 27.2 (arm64)
🤖 Authored with GitHub Copilot on behalf of Ross Wollman (@rwoll).
Note
Was this description helpful?
Pick a rating, then press Submit.
Rate the description, not the code. Humans only, please. Thanks for helping me write clearer descriptions!
Activity
rwoll commentedon Nov 4, 2026
cc Dileep Yavanmandha (@dileepyavan) JFYA, since this only happens with Sandboxing for terminal on.
🤖 Authored with GitHub Copilot on behalf of Ross Wollman (@rwoll).
dileepyavan commentedon Nov 15, 2026
Additional finding: on macOS, granting read-only access to the VS Code application bundle's
Contentsdirectory allows the canvas to work with sandboxing enabled.Tested macOS permission
{ "readonlyPaths": [ "/Applications/Visual Studio Code - Insiders.app/Contents" ] }This should be a host-derived default read-only grant rather than requiring users to configure a product name or installation location manually.
Equivalent application roots across platforms
appRoot)<application>.app/Contents/Resources/app<application>.app/Contents<installation>\resources\app<installation><installation>\<version>\resources\app<installation><installation>/resources/app<installation>For example, the Windows grant can be
C:\Program Files\Microsoft VS Code Insiders, and the Linux grant can be/usr/share/code-insiders, depending on the actual installation. These are illustrative paths, not proposed hardcoded locations. Versioned Windows installations need to account for the extra version directory rather than stopping there.The grant should be read-only, scoped to the running application's bundle, and composed with the existing explicit-denial and enterprise-managed filesystem restrictions. Non-packaged/source and standalone-server layouts must not accidentally grant an arbitrary ancestor directory.
Validation scope
agentHost: grant sandbox read access to application contents
agentHost: grant sandbox read access to application contents (microso…