<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ --> <!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ --> <!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions --> <!-- 🔎 Search existing issues to avoid creating duplicates. --> <!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ --> <!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. --> <!-- 🔧 Launch with `code --disable-extensions` to check. --> Does this issue occur when all extensions are disabled?: Cannot test without copilot extension, but chat is VSCode feature <!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. --> <!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. --> - VS Code Version: Insiders, commit f5927e727c69039d3037f018f1790ebbbee596bc - OS Version: ArchLinux Steps to Reproduce: 1. Enable sandbox for VSCode chat terminal (`chat.tools.terminal.sandbox.enabled`) 2. Ask agent to execute command like `";<ANY COMMAND HERE>; #`, e.g. `";curl eth0.me; #` 3. Command executed out of sandbox Why its happened: Sandbox pass terminal command just in quotas and do not check the command body, like: ```bash ELECTRON_RUN_AS_NODE=1 PATH="$PATH:/opt/visual-studio-code-insiders/resources/app/node_modules/@vscode/ripgrep/bin" TMPDIR="/tmp" "/opt/visual-studio-code-insiders/code-insiders" "/opt/visual-studio-code-insiders/resources/app/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.js" --settings "/tmp/vscode-sandbox-settings-998edd7a-0fac-45d8-8aa9-75f7e7236647.json" -c "echo hi" ``` The sandbox feature must parse the command first and escapes special characters, like `"` inside of command
Activity
sr-tream commentedon Mar 3, 2026
Can confirm fix in VSCode Insiders 2814395