Skip to content

Agents window: canvases silently fail to open when "Sandboxing for terminal" is on #346105

Closed

Description

@rwoll
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

  1. Open the Agents window and start a new Agent Host chat.
  2. Open the permissions picker (Assisted permissions) and make sure Sandboxing for terminal is on.
  3. Send any message, for example hi.
  4. 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.
  5. 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 sandboxConfig is 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

  1. rwoll commented on Nov 4, 2026

    @rwoll
    MemberAuthor

    cc Dileep Yavanmandha (@dileepyavan) JFYA, since this only happens with Sandboxing for terminal on.

    🤖 Authored with GitHub Copilot on behalf of Ross Wollman (@rwoll).

  2. added
    canvases
    on Nov 6, 2026
  3. dileepyavan commented on Nov 15, 2026

    @dileepyavan
    Member

    Additional finding: on macOS, granting read-only access to the VS Code application bundle's Contents directory 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

    Platform/layout JavaScript application root (appRoot) Read-only application root
    macOS <application>.app/Contents/Resources/app <application>.app/Contents
    Windows <installation>\resources\app <installation>
    Windows with versioned updates <installation>\<version>\resources\app <installation>
    Linux <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

    • macOS: the read-only permission above was manually tested and allowed the canvas to work.
    • Windows: the generated read-only policy was checked against a versioned Insiders installation; it resolved to the installation root rather than the version directory.
    • A real sandboxed canvas launch with the proposed default has not yet been verified on Windows or Linux.
  4. added a commit that references this issue on Nov 16, 2026
    e17feca
  5. added
    unreleased
    on Nov 16, 2026
  6. added this to the 1.148.0 milestone on Nov 16, 2026
  7. added a commit that references this issue on Nov 16, 2026
    a092ff7
  8. added
    insiders-released
    and removed
    unreleased
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

canvasesinsiders-released

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions