Recursive Cursor path makes OneDrive crash

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

My Cursor project produces a recursive folder structure and I don’t know why. The length of the filename crashes OneDrive:

../OneDrive/work/2025/xxx/Web/work/Plugins/Sprechzeiten/.cursor/Sprechzeiten/.cursor/Sprechzeiten/.cursor/Sprechzeiten/.cursor/Sprechzeiten/.cursor/Sprechzeiten/.cursor/Sprechzeiten/.cursor/Sprechzeiten/.cursor/Sprechzeiten/.cursor/Sprechzeiten/.cursor/Sprechzeiten/.cursor/Sprechzeiten/.cursor/Sprechzeiten/.cursor/Sprechzeiten/.cursor/Sprechzeiten/.cursor/Sprechzeiten/.cursor/Sprechzeiten/.cursor/Sprechzeiten

I tried renaming the folder, I deleted the folder, the problem persists.

This bug makes OneDrive unusable, I can’t synch any files.

Steps to Reproduce

Sorry idk. It’s only happening with this one folder!

Expected Behavior

The hidden folder should be visible in Finder.
There should be no recursive naming.

Operating System

MacOS

Version Information

Version: 2.6.21 (Universal)
VSCode Version: 1.105.1
Commit: fea2f546c979a0a4ad1deab23552a43568807590
Date: 2026-03-21T22:09:10.098Z
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin x64 22.6.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. This recursive pattern Sprechzeiten/.cursor/Sprechzeiten/.cursor/... is unusual. Cursor doesn’t create subfolders with the project name inside .cursor/.

Since your project is inside the OneDrive folder, the most likely cause is OneDrive sync turning a symlink into real folders, which creates the recursive loop. Could you check a couple of things?

  • Open Terminal, go to your project folder, and run:

    ls -la .cursor/
    

    Share the output. I’m specifically looking for a Sprechzeiten entry that’s a symlink. You’d see an arrow -> pointing somewhere.

  • Try pausing OneDrive sync, then delete the .cursor folder completely and reopen the project in Cursor. Does the recursive structure come back even with OneDrive paused?

  • Long-term fix: exclude .cursor from OneDrive sync. This folder only contains local editor state and doesn’t need to be synced.

Also, have you been using the Agent feature in this project? It’s possible an agent action accidentally created a symlink that triggered this loop.

Let me know what you find.

Hi Dean, thank you for looking into this!

I guess its a OneDrive problem, as almost all problems come from OneDrive :slight_smile:

I went to the terminal, but it came back like this:

kolja@KolBook16 Sprechzeiten % ls -la .cursor/
ls: .cursor/: No such file or directory

So there’s no folder I could delete. Also not visible when I make hidden stuff visible.
I now moved the project folder away from completely, made a new folder with the same structure, put it in Cursor as a project folder again, deleted that folder and now its working again …

A little hacky but as long as it works I am happy.

Thanks for the hints and have a great day!

Glad we got it sorted out! The fact that .cursor/ doesn’t show up with ls -la confirms it was a OneDrive sync artifact, not something Cursor created.