Agent mode cannot write files inside Wamp64 www directory (permission issue?)

Hi everyone,

I’ve been running into an issue with Cursor (latest version) for several months and I can’t seem to resolve it.

When using Agent mode (Auto), Cursor is unable to write files inside my www directory from Wamp64. I get an error indicating that writing is not allowed.

However:

  • Quick edit mode works perfectly in the same files
  • Agent mode works fine on other projects located outside of the Wamp www directory

Environment

  • OS: Windows 11
  • Cursor: up to date
  • Local server: Wamp64
  • Project location: C:\wamp64\www\my-project

What I’ve tried

  • Running Cursor as administrator
  • Checking folder permissions (full control granted)
  • Restarting Wamp and Cursor
  • Moving the project outside www (Agent mode works there)

Expected behavior

Agent mode should be able to modify files just like Quick Edit mode.

Actual behavior

Agent mode fails with a “write not allowed” type error, but only inside the Wamp www directory.


Has anyone encountered this issue before?
Is there some kind of Windows restriction, sandboxing, or special permission related to Wamp directories that could block Cursor’s Agent mode?

Any help would be greatly appreciated :folded_hands:

Hey, thanks for the detailed report. It looks like this might be related to how Agent mode writes files. It uses a temporary file and then renames it, which can fail in folders with certain permission settings. Quick Edit writes directly, so it works there.

A couple things to check:

  1. The exact error message: can you copy the full error text from the chat when Agent crashes? Or open Developer Tools (Help > Toggle Developer Tools), reproduce the issue, and share what shows up in the Console tab.
  2. Check for .cursorignore: see if there is a .cursorignore file in the project root, or any global ignore patterns (VS Code Settings > General > Global Cursor Ignore List). A pattern that accidentally matches C:\wamp64\ could block Agent access.
  3. Cursor version: what exact version are you on? (Help > About)

Also worth trying: can Cursor’s built-in terminal create or write files in C:\wamp64\www\my-project? For example, run this in the Cursor terminal: echo test > test.txt. This will help narrow down whether the issue is general permissions or specific to Agent’s file writing method.

Let me know what you find.

Hello,

Thank you for your reply!

The exact message is: I do not have write permissions on this file. If the file is read-only in the IDE or on disk, change the permissions or save the contents manually.

Using the developer tools, I get one message in the console: (anonymous) @ workbench.desktop.main.js:453
workbench.desktop.main.js:64 ERR [Extension Host] [otel.error] {“stack”:“OTLPExporterError: Bad Request\n\tat IncomingMessage. (c:\Users\anthonyj\AppData\Local\Programs\cursor\resources\app\node_modules\
@opentelemetryopentelemetry***\otlp-exporter-base\build\src\transport\http-transport-utils.js:52:31)\n\tat IncomingMessage.emit (node:events:531:35)\n\tat endReadableNT (node:internal/streams/readable:1698:12)\n\tat process.processTicksAndRejections (node:internal/process/task_queues:90:21)”,“message”:“Bad Request”,“code”:“400”,“name”:“OTLPExporterError”,“data”:“{“error”:“Trace spans collection is not enabled for this user”}”}***

The .cursorignore file is empty.

The command: cursor -l` echo test > test.txt
works.

Version: 2.5.20 (user setup)
VSCode Version: 1.105.1
Commit: 511523af765daeb1fa69500ab0df5b6524424610
Date: 2026-02-19T20:41:31.942Z
Build Type: Stable
Release Track: Default
Electron: 39.4.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200

THANKS.