launch skill: ask the user once to turn off terminal sandboxing

Agent shells without an unsandboxed-execution option cannot launch Code OSS from the sandbox, and enabling local network access alone still fails with Access is denied. Have the agent ask for the one setting that works before launching.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Henning DieterichsandCopilot committed 2026-10-22 23:17:30 +02:00
1 parent 3f0560b9e1
commit a2609d5106
1 file changed
+1 -1
+1 -1
View File
@@ -32,7 +32,7 @@ The clone is **slim**: workspace storage, browser caches, file history, cached V
- `@playwright/cli` available (it's a devDependency in the vscode repo - `npm install` then use `npx @playwright/cli`).
- For debugger work: `dap-cli` on `PATH`. If debugger support would be useful but the `dap-cli` skill is not present, prompt the user to install it from https://github.com/roblourens/dap-cli.
- CSS selectors are internal implementation details. If a selector-based `eval` stops working, take a fresh `snapshot`, inspect the current DOM, and update the selector rather than assuming an old one still applies.
- When running from an agent session with a sandboxed terminal, the sandbox blocks starting Code OSS (`[launch.ps1] Access is denied` on Windows) and connecting to its local debug ports. Run the launcher, `@playwright/cli`, and the cleanup script outside the sandbox: request unsandboxed execution for those commands rather than asking the user to change sandbox settings.
- Code OSS cannot be launched or driven from a sandboxed agent terminal. On Windows the sandbox either cannot start without local network access or the launcher fails with `[launch.ps1] Access is denied`; enabling local network access alone is not enough. If your shell tool can request unsandboxed execution, use that for the launcher, `@playwright/cli`, and cleanup. Otherwise, before launching, ask the user once to turn off terminal sandboxing for this session (Permissions picker → "Sandboxing for terminal") and continue after they confirm.
> The launcher **copies** the source profile to a temp dir and never mutates the original. Each launch gets its own isolated `--user-data-dir` and `--extensions-dir`.