# Preview browser without /bin/sh

Real Linux web app, Chromium, 1280x800, light theme, fresh scenario state, Replay (dev).
Place no-bin-sh.sh next to a bin directory containing an executable copy of dash named sh.
The wrapper requires passwordless sudo and mount namespace / overlay support. It hides sh in an overlay of /usr/bin (on a merged-/usr Linux host), leaving the host unchanged. All application processes run as the original user.

Use current main's scenario runner and put preview-without-bin-sh.e2e.ts under scripts/scenarios.
In scripts/e2e.config.ts change only the web target command:

```ts
executable: "/usr/bin/sudo",
args: ["-n", "-E", "/usr/bin/env", `PATH=${process.env.PATH}`, "/usr/bin/unshare", "-m", "/bin/bash", process.env.NO_SH_WRAPPER!, resolved.node, startApp, "web", T3_HOME, LOOPBACK, "{port}"],
```

Set NO_SH_WRAPPER to the wrapper's absolute path. Preserve XDG_RUNTIME_DIR so Agent scopes use the systemd user manager. Run:

```sh
T3CODE_DEV_SEED=0 T3_SCENARIO_INHERIT_ENV=T3CODE_DEV_SEED,XDG_RUNTIME_DIR vp run scenarios:prove scripts/scenarios/preview-without-bin-sh.e2e.ts --base 6ac4edef8cd02ec655b999d213f18e149171a867 --head d7ccc3eb0740543a2e2f5df33f8a65ad3ede8be5 --upload-command "ghdrop upload"
```

Observed base: disabled URL field, Browser connection was refused, launcher spawn ENOENT.
Observed head: enabled URL field, navigation to example.com loaded Example Domain.
Both app logs reported Agent scopes are on. The comparison parent exited with signal 143 while the head child continued; the completed base and head e2e reports were combined using the runner's readSide/buildProof functions after the head child passed.
