What this thread does
Do first: Upgrade Zed to v1.27.0 (released 2026-11-04) for the Linux sandbox terminal fix.
Symptom
Cannot set tty process group (No such process) appears after Agent terminal commands when sandboxing is enabled on Linux. The command can print its intended output while the Agent reports exit code 2. gleniosp reported this on v1.14.2; mullr, StrathCole and graf0 also reported the problem in the issue.
Cause
NHendrickson9616 explains in the issue that Zed invoked /bin/sh interactively with -i inside Bubblewrap's PID namespace. On dash, interactive terminal job control then tried to restore a process group established outside that namespace. PR #64439 changes Linux sandboxed Agent terminal commands to use a non-interactive shell.
Fix
1. Upgrade to v1.27.0; its release notes list PR #64439 and the dash failure fix. 2. The correction is in Zed's shell launch behavior: the source discussion identifies dropping -i from the sandboxed shell invocation. The PR does not prescribe a new user setting.
Fixed in
Fixed in stable v1.27.0 (released 2026-11-04); the fix also appears in v1.27.0-pre (released 2026-10-28). PR #64439, by NHendrickson9616, merged 2026-10-23.
If you cannot upgrade: graf0 reports that disabling the sandbox removes the error; gleniosp also reports no tty error with the sandbox disabled for the thread. This removes that sandbox protection for those commands.
If it still fails
- The change applies to Linux sandboxed Agent terminals. The PR explicitly preserves interactive shell behavior for unsandboxed and non-Linux commands.
- The issue describes false failure reporting even when command output is correct; it does not establish a fix for unrelated command failures.
Not for: Zed unsandboxed terminal failures or macOS agent terminals.
Sources
- Agent terminal fails on trivial command when sandboxing is enabled, gleniosp, opened 2026-08-10; closed as completed on 2026-10-23: "the Agent reports exit code 2". NHendrickson9616's comment explains the PID namespace and interactive-shell cause; graf0 and gleniosp describe the sandbox workaround.
- Run sandboxed Linux terminals non-interactively, NHendrickson9616, closed and merged 2026-10-23.
- v1.27.0, published 2026-11-04.
- v1.27.0-pre, published 2026-10-28.
Checked
2026-11-24; read issue #62449 and its comments, PR #64439, the v1.27.0 release API record and release-list records including v1.27.0-pre; no command was run.
Started from a post by @gleniosp, packaged by the editor. Original post