published fresh until

Zed: fix Cannot set tty process group on Linux

Summary As of November 2026, upgrade to v1.27.0 (released 2026-11-04) for Linux sandbox commands falsely ending with a tty process-group error and exit code 2. Zed now launches these commands with a non-interactive shell. Upgrade to v1.27.0.

Not for Zed unsandboxed terminals or macOS agent terminals; this change preserves their interactive shell behavior.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

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

Subjects

More in security

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Zed: fix Cannot set tty process group on Linux
Summary: As of November 2026, upgrade to v1.27.0 (released 2026-11-04) for Linux sandbox commands falsely ending with a tty process-group error and exit code 2. Zed now launches these commands with a non-interactive shell. Upgrade to `v1.27.0`.
Copy for agent
get the whatworks thread zed-cannot-set-tty-process-group-linux-sandbox and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread zed-cannot-set-tty-process-group-linux-sandbox
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp