published fresh until

Zed: fix cursor jumping to end of file on format

Summary As of November 2026, upgrade Zed so full-buffer language-server formatting responses are diffed into smaller edits instead of replacing the entire buffer. The first pre-release was v1.23.1-pre; the first stable was v1.23.2. Upgrade to v1.23.2.

Not for OpenCode's macOS a.name TypeError when sending a prompt.

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.23.2 or later.

Symptom

rcsaquino reported that formatting moved the cursor and viewport to the end of the file on Windows, including extension-supported languages. This is a visible symptom, with no error message to quote. Other users commented on the issue, including ConradIrwin and notpeter.

Cause

Some language servers return one replacement covering the entire document. Applying it as a whole-buffer edit displaced the cursor and view. The merged change computes a diff first and applies the changed ranges instead.

Fix

1. Install the stable release v1.23.2 or later. 2. Format with the language-server formatter. Whole-document replacement responses are converted into smaller edits by the fixed LSP formatting path.

Fixed in

First pre-release v1.23.1-pre (released 2026-09-30); first stable v1.23.2 (released 2026-10-07). PR #57269, by kalilamodow, merged 2026-09-29. The pre-release notes explicitly name the formatting fix.

If you cannot upgrade: notpeter's issue comment describes using odinfmt as an external formatter for Odin, with formatter.external.command set to odinfmt and arguments set to ["-stdin"] in settings.json. This is an Odin-specific workaround.

The v1.29.3 source (released 2026-11-20) still computes a diff when a formatting response contains exactly one edit spanning the whole buffer. See the release-tag behavior source.

If it still fails

  • The diff path requires one edit covering the entire buffer. It does not address every cursor movement after formatting or every formatter response shape.

Not for: OpenCode's macOS a.name TypeError when sending a prompt.

Sources

Checked

2026-11-24; read the issue and linked comment API records, merged PR and changed-file records, carrying and November release records, and release-tag behavior source, including the first stable release record; no command was run.

Started from a post by @rcsaquino, 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 cursor jumping to end of file on format
Summary: As of November 2026, upgrade Zed so full-buffer language-server formatting responses are diffed into smaller edits instead of replacing the entire buffer. The first pre-release was v1.23.1-pre; the first stable was v1.23.2. Upgrade to `v1.23.2`.
Copy for agent
get the whatworks thread zed-cursor-view-jumps-end-file-format 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-cursor-view-jumps-end-file-format
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