revert(exec): undo accidental merge of PR #18521

This commit is contained in:
Sebastian
2026-02-16 21:47:18 -05:00
parent ae82371d8a
commit 6070116382
3 changed files with 10 additions and 23 deletions

View File

@@ -20,7 +20,7 @@ Background sessions are scoped per agent; `process` only sees sessions from the
- `yieldMs` (default 10000): auto-background after delay
- `background` (bool): background immediately
- `timeout` (seconds, default 1800): kill on expiry
- `pty` (bool): run in a pseudo-terminal when available (TTY-only CLIs, coding agents, terminal UIs). Use for CLIs that only print when stdout is a TTY (e.g. gog / Google Workspace CLI).
- `pty` (bool): run in a pseudo-terminal when available (TTY-only CLIs, coding agents, terminal UIs)
- `host` (`sandbox | gateway | node`): where to execute
- `security` (`deny | allowlist | full`): enforcement mode for `gateway`/`node`
- `ask` (`off | on-miss | always`): approval prompts for `gateway`/`node`
@@ -42,19 +42,6 @@ Notes:
the gateway host (no container) and **does not require approvals**. To require approvals, run with
`host=gateway` and configure exec approvals (or enable sandboxing).
### TTY-only CLIs (e.g. gog)
Some CLIs write to stdout only when it is a TTY. In non-interactive contexts (exec tool, scripts, CI)
they exit with code 0 but produce no output. Examples: **gog** (Google Workspace CLI), and other
tools that use `isatty(stdout)` to decide whether to print. For these, set **`pty: true`** so the
command runs in a pseudo-terminal and output is captured.
Example:
```json
{ "tool": "exec", "command": "gog --version", "pty": true }
```
## Config
- `tools.exec.notifyOnExit` (default: true): when true, backgrounded exec sessions enqueue a system event and request a heartbeat on exit.