feat(exec): optional systemd background runner

- Add tools.exec.backgroundRunner=systemd (Linux) to run background jobs via systemd-run\n- Extend process tool to poll/log/stop systemd-backed sessions\n- Document new config option
This commit is contained in:
Jhony Sidney committed 2026-01-28 07:04:40 +00:00
1 parent 6044bf3637
commit d16b6413db
10 files changed
+386

No files matched your search

+1
View File
@@ -48,6 +48,7 @@ Notes:
- `tools.exec.node` (default: unset)
- `tools.exec.pathPrepend`: list of directories to prepend to `PATH` for exec runs.
- `tools.exec.safeBins`: stdin-only safe binaries that can run without explicit allowlist entries.
- `tools.exec.backgroundRunner` (default: `"process"`): when set to `"systemd"` (Linux only), background jobs started with `background=true` run in a systemd user unit via `systemd-run --user`, so long-running tasks (tmux/codex) don’t stay in the gateway cgroup.
Example:
```json5