Skip to content

Allow interactive commands in macOS agent sandbox#321683

Open
dileepyavan wants to merge 2 commits into
mainfrom
DileepY/316978
Open

Allow interactive commands in macOS agent sandbox#321683
dileepyavan wants to merge 2 commits into
mainfrom
DileepY/316978

Conversation

@dileepyavan

Copy link
Copy Markdown
Member

Summary

  • enable PTY access by default for macOS agent sandbox runtime configurations
  • preserve an explicit allowPty: false advanced runtime override
  • add regression coverage confirming the default is macOS-only

Testing

  • npm run eslint -- src/vs/platform/sandbox/common/terminalSandboxEngine.ts src/vs/platform/sandbox/test/common/terminalSandboxEngine.test.ts
  • npm run transpile-client
  • npm run test-node -- --run src/vs/platform/sandbox/test/common/terminalSandboxEngine.test.ts (28 passing)

Fixes #316978

Copilot AI review requested due to automatic review settings June 16, 2026 22:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the sandbox config generation in TerminalSandboxEngine to allow interactive terminal commands on macOS by enabling PTY support by default, while preserving the ability for advanced runtime settings to explicitly disable it (allowPty: false). It also adds regression tests to ensure the default behavior is macOS-only.

Changes:

  • Enable allowPty by default for macOS sandbox configs (without overriding explicit runtime settings).
  • Add tests covering: macOS default allowPty: true, Linux default not setting allowPty, and macOS explicit override to false.
Show a summary per file
File Description
src/vs/platform/sandbox/common/terminalSandboxEngine.ts Sets allowPty to true by default on macOS when generating non-Windows sandbox configs, while respecting explicit overrides.
src/vs/platform/sandbox/test/common/terminalSandboxEngine.test.ts Adds regression tests verifying the macOS-only default and explicit override behavior.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 0

@dileepyavan dileepyavan enabled auto-merge (squash) June 16, 2026 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

copilot sandbox cannot run interactive commands

3 participants