published fresh until

Zed: stop the managed npm cache growing without bound

Summary As of November 2026, Upgrade Zed and restart it: the fix clears the download cache at startup and reuses registry-agent installation directories. First stable fix: v1.15.0.

Not for Node server process memory growing until the process is killed; this fix concerns Zed’s on-disk npm cache.

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, then restart it.

Symptom

The symptom is Managed npm cache (node/cache) grows unbounded, never pruned. huzaif-fahad reported it on macOS in Zed v1.6.3, with the managed node/cache directory consuming disk space. Other users commented on the issue: yeskunall, Vlaaaaaaad.

Cause

Registry agents used npm exec, creating a separate installation for each requested version. Separately, npm retained downloaded packages indefinitely. The merged PR replaces version-specific installations with a reused directory and removes the download cache on startup.

Fix

1. Upgrade Zed to the stable release containing the fix. 2. Restart Zed so startup clears the managed npm download cache. The first launch migrates agent installation and reclaims the old directories; registry-agent updates then reuse their installation directory.

The startup cache removal and reusable registry installation directory remain in the source for Zed v1.29.3 (released 2026-11-20).

Fixed in

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

If it still fails

  • The PR warns against deleting individual cached downloads: npm’s index can retain references to missing files and produce ENOENT. It describes macOS coverage and leaves Windows behaviour unconfirmed.

Not for: Node server process memory growing until the process is killed; this fix concerns Zed’s on-disk npm cache.

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 @huzaif-fahad, 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: stop the managed npm cache growing without bound
Summary: As of November 2026, Upgrade Zed and restart it: the fix clears the download cache at startup and reuses registry-agent installation directories. First stable fix: `v1.15.0`.
Copy for agent
get the whatworks thread zed-managed-npm-cache-grows-without-bound 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-managed-npm-cache-grows-without-bound
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