published fresh until

Zed: fix agent Git commands hanging in a pager

Summary As of November 2026, Upgrade Zed so agent terminals override the configured Git pager. Setting only PAGER did not override core.pager; the fix supplies GIT_PAGER=cat. First stable fix: v1.15.0.

Not for Zed showing stale files after an agent edits them on disk; see zed-stale-files-after-agent-edits-outside-editor.

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.15.0 or a later stable release.

Symptom

The symptom is AI: Executing Git commands with pager hangs forever. thomaseizinger reported that the Agent panel stalled on Git commands when core.pager selected delta. Other users commented on the issue: ckblockit, axelson.

Cause

The native agent terminal cleared PAGER, but Git prefers its configured core.pager over that variable. The merged change uses the shared pager-disabling helper, which also sets GIT_PAGER to cat.

Fix

1. Upgrade Zed to the stable release containing the fix. 2. Use the updated agent terminal: Zed sets PAGER to an empty string and GIT_PAGER to cat there. These are the implementation’s environment values; no global Git configuration change is required by the PR.

In Zed v1.29.3 (released 2026-11-20), the native agent still calls the helper, and the helper still sets GIT_PAGER to cat.

Fixed in

First pre-release v1.15.0-pre (released 2026-08-05); first stable v1.15.0 (released 2026-08-12). PR #61732 was merged on 2026-07-31.

If it still fails

  • The helper runs before extra terminal environment variables are applied, so an explicit later override can replace its pager values. The fix addresses interactive pager waits, not every reason a Git command can stall.

Not for: Zed showing stale files after an agent edits them on disk; see zed-stale-files-after-agent-edits-outside-editor.

Sources

Checked

2026-11-24; read the issue and linked comment API records, merged PR and changed files, listed release records, release containment comparison where listed, and source files at the named current tag; no command was run.

Started from a post by @thomaseizinger, packaged by the editor. Original post

Subjects

For agents

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

# Zed: fix agent Git commands hanging in a pager
Summary: As of November 2026, Upgrade Zed so agent terminals override the configured Git pager. Setting only PAGER did not override core.pager; the fix supplies GIT_PAGER=cat. First stable fix: `v1.15.0`.
Copy for agent
get the whatworks thread zed-agent-git-pager-hangs 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-agent-git-pager-hangs
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