STUPID-2026-0173

Cursor's Remote-SSH reconnect handling rewrote and deleted files across two GCP repositories, some with no recoverable snapshot

6.0medium
July 29, 2026Source checkedRepro reported

Why 6/10

The failure spanned a developer's full remote workspace — tracked and gitignored files across two repositories on the same GCP VM — rather than a handful of files, so scope sits at "one project, repository, server or service." The original report recovered fully via git and Local History after a second reconnect, but later reports of the same bug (Aug 4, Aug 7) describe files with no Local History snapshot to recover from, so recoverability lands at "partly lost, or loss reported without saying whether it was recovered" rather than a clean full recovery. This happened repeatedly in real developer use, not a benchmark, and every report describes a personal or team development VM rather than a production system or customer-facing service.

Scope
2/4
One project, repository, server or service, or a cost above roughly $10,000
Recoverability
2/3
Partly lost, or loss reported without saying whether it was recovered
Did it happen
2/2
Happened in real use
Beyond the user
0/1
Only the user's own non-production work

The score is the sum of these four factors. How each factor is scored · scored 2026-11-22

  1. Instruction given

    No task-level instruction was involved. The developer was mid-session on a Cursor Agent task over Remote-SSH to a Linux GCP VM when the SSH connection dropped and `cursor-server` automatically reconnected and restarted.

  2. Expected behavior

    A dropped SSH connection and automatic reconnect should leave the workspace exactly as it was before the drop — no files touched, no stale "pending Agent change" state replayed against the filesystem.

  3. Actual behavior

    On reconnect, Cursor replayed a backlog of "Undo Create Diff" operations against the workspace roughly two seconds after `cursor-server` restarted: 56 history writes were logged within the first two seconds of the new session, followed by a mass file-modification-time rewrite six seconds after the client reconnected. New gitignored files were emptied; tracked files across the workspace, and in a second repository on the same remote, were also rewritten. Two follow-up reports in the same thread (Aug 4 and Aug 7, 2026) describe the identical reconnect-triggered file loss recurring for other users on other machines, one losing 100-200 files in roughly seven seconds.

  4. Damage

    In the original report, new gitignored scripts and markdown files in a sandbox directory were wiped and had to be restored by hand from Local History after a second reconnect brought the rest of the workspace back in sync with its Local History snapshots; git-tracked files matched HEAD and needed no repair. In the Aug 4 follow-up, 100-200 files were rewritten within seconds of a reconnect, and the reporter said many of them had no Local History snapshot to recover from, leaving that portion of the loss permanent. Cursor staff acknowledged the behavior, asked for logs, and tracked it internally for over three months before shipping a fix.

Full write-up

A Cursor user working over Remote-SSH into a Linux GCP VM reported that a dropped and automatically-restored SSH connection caused cursor-server to replay a backlog of pending "Undo Create Diff" operations against the live workspace — 56 history writes landed within two seconds of the reconnect, and a mass rewrite of file modification times followed about six seconds later. New gitignored files in a sandbox folder came back empty, and tracked files across the workspace, plus files in a second repository on the same remote, were also rewritten. Git-tracked content matched HEAD and the gitignored files were eventually restored from Local History after a second reconnect synced things back up, so the original report ended in a full, if manual, recovery.

The same bug recurred for other users in the same thread over the following weeks: one report from August 4, 2026 described 100-200 files rewritten within roughly seven seconds of a reconnect, with many of them having no Local History snapshot to fall back on — a loss the reporter could not undo. A third user reported the same class of failure on August 7 and had an agent chat session restore the files from Local History instead.

Cursor staff (Mohit, then Colin) confirmed the behavior was unintended, requested SSH and client logs, and tracked the issue for over three months. On November 6, 2026, Colin reported that a shipped fix made restoring pending Agent changes after a reconnect or reload stop rewriting or deleting files on disk, and that a dropped connection could no longer leave behind bad checkpoint data; the original reporter confirmed seeing no recurrence since.

Classification

Agent
Cursor
Failure mode
Destructive Action
Root cause
Other
Domain
Infra

Related incidents

Cite this record
StupidLLM. "STUPID-2026-0173: Cursor's Remote-SSH reconnect handling rewrote and deleted files across two GCP repositories, some with no recoverable snapshot." AI Agent Incident Database, 2026. https://www.stupidllm.com/incident/STUPID-2026-0173/ (accessed 2026-11-23). CC BY 4.0.

← STUPID-2026-0172By IDSTUPID-2026-0174 →

Get told when an agent breaks something

We document AI agent failures daily, severity-scored against a published scale. Each Monday, if any scored 7 or above that week — deleted data, leaked secrets, broken production — you get one email with the sources. When nothing did, you get nothing.

This database is callable over MCP — query it from inside your agent.