External file edit protection triggers for files inside multi-root workspace folders

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When using a .code-workspace file with multiple folders, the agent treats files inside workspace folders as “external” and prompts “Allow all edits in [directory]”.

Steps to Reproduce

Steps to reproduce:

Open a .code-workspace file with multiple folder entries
Start an agent chat that edits files in one of the workspace folders
The agent prompts for “Allow all edits in…” even though the file is inside a workspace folder

Expected Behavior

Expected: Files inside any folder defined in the .code-workspace should be considered internal and not trigger the external file edit protection prompt.

Actual: The prompt appears as if the file is external.

Example: workspace defines my-project as a folder, but editing a file under my-project/service/internal/util/ triggers the external edit prompt.

Screenshots / Screen Recordings

screenshot.png

Operating System

MacOS

Version Information

Version: 3.5.33 (Universal)
VSCode Version: 1.105.1
Commit: aac81804b986d739acab348ed96b8bea6e83cc50
Date: 2026-05-22T06:47:48.039Z
Layout: editor
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 arm64 25.2.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

This is a confirmed bug with multi-root workspaces. When folders are added to an existing .code-workspace, the workspace metadata isn’t updated to include them, so the agent treats files in those folders as “external” and triggers the approval prompt.

Our team is aware and working on a fix.

Workaround: Copy your .code-workspace file to a new filename (keeping the same folder entries), then open the copy. This resets the internal workspace identifier and forces fresh metadata, which should resolve the approval prompts for all folders. Not ideal if you have tooling tied to the original filename, but it unblocks things in the meantime.

Let me know if you run into anything else!

thanks I will try
How can I be notified on the bug fix ?

You can use the notification bell at the bottom of this thread (set it to “Watching”) – that way you’ll get notified when we post an update here. We’ll follow up on this thread once the fix ships.

OK thanks a lot!