microsoft / microsoft/vscode

Agent shell tool sandbox fails with "bwrap: setting up uid map: Permission denied"

Open
#334,574 0 comments 0 reactions 1 assignee Claimed by @anthonykim1 View on GitHub
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

Testing #334389

On Linux, enabling sandboxing prevents agent shell tool commands from starting.

### Repro steps

1. Enable shell tool sandboxing.
2. Run:
```bash
python environment_probe.py
```

### Actual result

The command exits with code 1 before Python starts:

```text
bwrap: setting up uid map: Permission denied
```

Running the same command with sandbox bypass succeeds.

### Expected result

The sandbox starts successfully and runs the command.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.