Where does the bug appear (feature/product)?
Grok Build (formerly Cursor)
Describe the Bug
On December 2, 2026, four directories containing critical historical verification scripts and audit evidence became unavailable in a Cursor-managed agent store under Ubuntu WSL2.
The Cursor Agent Host log recorded 56 repeated errors over approximately 81 minutes:
[agent-store-sync] fs_write_failed: Failed to clear compromised agent store files root: EACCES, Permission denied
The logs also show conversation state restoration, loss of the write lock (lock_lost), and subsequent file-not-found errors.
No deletion of these historical artifacts was authorized.
This raises concerns about potential partial deletion during failed agent-store cleanup operations and repeated automatic cleanup attempts.
The root cause has not yet been established. I am requesting an engineering investigation into Cursor’s internal agent-store synchronization, cleanup, and recovery mechanisms.
An encrypted external backup of 15,368 surviving regular file entries has been successfully created and verified. However, the four missing historical directories remain unavailable, blocking a critical development verification workflow.
Sanitized logs and additional diagnostic evidence are available through a private support channel.
Steps to Reproduce
The following sequence was observed during the incident:
- Use Cursor (Grok Build) with a Windows and Ubuntu WSL2 development environment.
- Maintain a long-running agent conversation with historical verification artifacts stored in the internal agent store.
- Resume a previously paused agent session.
- Observe conversation state restoration and agent-store synchronization activity.
- Observe repeated cleanup failures reporting “Failed to clear compromised agent store files root: EACCES, Permission denied”.
- Observe loss of the write lock (lock_lost), followed by file-not-found errors affecting previously available historical artifacts.
- Inspect the affected agent store and confirm that four historical directories are missing.
This is the observed incident sequence, not a confirmed deterministic reproduction procedure.
I have deliberately avoided reproducing the incident on the original environment because of the risk of further data loss.
Expected Behavior
Agent-store synchronization and session restoration should preserve existing user and agent-generated artifacts.
If Cursor detects a compromised or inconsistent store-root identity, it should:
- Prevent destructive or partial cleanup.
- Preserve existing files or quarantine them safely.
- Provide a clear warning before potentially destructive operations.
- Avoid repeated destructive cleanup attempts following permission failures.
- Provide actionable diagnostics and a safe recovery mechanism.
- Handle WSL filesystem identity changes safely.
Historical artifacts should remain accessible unless explicitly removed by the user or managed under a clearly documented retention policy.
Operating System
Windows 10/11
Linux
Version Information
Product: Grok Build (formerly Cursor)
Product Version: 3.32.24
File Version: 3.32.24
Host Operating System: Windows
Remote Environment: Ubuntu WSL2
Version information was obtained directly from Cursor.exe metadata without restarting the application, to avoid further potential data loss.
For AI issues: which model did you use?
Not established as a model-specific issue. The available evidence points to the internal agent-store synchronization and cleanup subsystem.
Additional Information
Additional technical findings:
- The WSL filesystem device identifier previously changed from 2096 to 2128.
- The agent-store configuration included
storeRootIdFence: trueandacceptSameVolumeFilesRootDevRenumber: true. - Three root-owned cache files with permissions 0600 were identified in the affected store.
- Historical verification records indicate that the missing directories were still available after an earlier Docker container restart.
A causal relationship between these observations and the incident has not been established.
Please escalate this report to the engineering team responsible for agent-store synchronization and recovery.
I would particularly appreciate clarification on whether failed cleanup operations can cause partial deletion and whether recovery from server-side synchronization records is possible.
Relevant logs and evidence have been preserved and can be provided through a private support channel.
Does this stop you from using Grok
Sometimes - I can sometimes use Grok