3.25.x SSH remote: extension host OOM crash-loop (agent payloads vs 4GB heap cap)

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Since Cursor 3.25.x (first OOM on Oct 16, right after installing 3.25.6), the remote extension host on my SSH remote crash-loops with V8 heap OOM:

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
Extension Host Process exited with code: null, signal: SIGABRT.

Each relaunch re-mirrors agent conversation state and climbs back to the ~4 GB heap cap within 30-170s, then dies again.

Allocation profile (V8 sampling profiler via SIGUSR1 + CDP, 512KB interval) shows the memory coming from agent-conversation payload handling inside the extension host process:

  • onStreamRead [stream_base_commons] - 5.8 MB (bytes arriving over IPC sockets)
  • Uint8Array ← FastBuffer [buffer] - 3.7 MB
  • (V8 API) buffer allocation - 10.2 MB
  • fromBinary / readMessage [main.js] - protobuf deserialization
  • deserializeReplyOKJSON / deserializeRequestJSONArgs [extensionHostProcess.js] - VS Code RPC
  • appendConversationState / sendUpdate [main.js] - agent conversation state

3.25 runs new always-on extensions inside the extension host (anysphere.cursor-agent-host, cursor-agent-exec, cursor-retrieval, plus Anthropic.claude-code), all sharing one 4 GB heap. Machine is fine: 125 GB RAM, 92 GB free at crash time, zero kernel OOM kills. Node kills itself at the V8 cap.

Also: NODE_OPTIONS/VSCODE_NODE_OPTIONS=“–max-old-space-size=16384” does NOT reach the extension host - server-main.js explicitly strips both from the fork env. A local patch removing them from that strip-set works but is overwritten on every server update.

Steps to Reproduce

  1. Connect Cursor to an SSH remote (from Macbook Pro to Linux x64) with a large monorepo (~470k files, 60 GB .git)
  2. Use the agent actively (long conversations, large tool outputs, 6 MCP servers configured)
  3. Watch the extension host crash every few minutes with V8 heap OOM and enter a crash-loop

Expected Behavior

Extension host should not OOM, or memory usage from agent conversation state/payload buffering should be capped or moved out of the capped extension-host process. A supported knob for extension-host heap size would help (NODE_OPTIONS is currently stripped by the server).

Operating System

Linux

Version Information

Cursor 3.25.9 (server commit 5d4df965746c5d09740842fc0f1331ba1c157830); also reproduced on 3.25.6

Additional Information

OOM counts per server session from remoteagent.log: 0 ever before Oct 16 (3.23.23/3.24.12, over a year of use), 7 on Oct 16 (3.25.6), 19 on Oct 20 (3.25.9), 44+ on Oct 21. Same machine, same repo, same SSH config throughout. Disabling GitLens reduces pressure but the loop persists. Happy to share the full remoteagent.log and the 12 allocation-profile rounds.

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey @jarod-wille-ai, we’ve let the team know and it’s an issue we’re tracking.

To ease the pressure now: start fresh chats more often (long conversations are the main driver), keep GitLens disabled, try disabling the Anthropic Claude Code extension on the remote, trim MCP servers to what you need, and reload the remote window periodically. A broad .cursorignore plus files.watcherExclude helps on the monorepo.

To dig in, could you email [email protected] (referencing this thread) the full remoteagent.log, a couple of your allocation-profile rounds, and if it’s easy a heap snapshot near the cap? And does the loop slow after disabling Claude Code, cutting MCP servers, or working in fresh chats? That pins down where the memory is going.

On the heap knob: you’re right that NODE_OPTIONS doesn’t reach the extension host, so that won’t take effect. Fair ask though, and we’ll track interest in a supported setting.