Agents are having difficulties creating new files

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Agent cannot create file, I only see change windows with spinny loading.

Steps to Reproduce

If I use a plan to build something and running it. New files are attempted to be created.

Expected Behavior

When the agent is creating a file, I expect it to create the file

Screenshots / Screen Recordings

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.1.49 (user setup)
VSCode Version: 1.105.1
Commit: 21a2ed198584d56a91c0b996d1a09c93f8538440
Date: 2025-12-05T07:49:06.016Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26200

For AI issues: which model did you use?

Auto

Does this stop you from using Cursor

Yes - Cursor is unusable

1 Like

Which agents?

The Auto.

Can confirm, for me, the issue is with nay agent

Which models are you using?

Hey all - trying a temporary fix here now. Can you let me know if resolved?

no, it didn’t work :frowning:

I think the cause of the issue is related to my other post about the agent asking permission to make files. The plan mode never gave us the permission request, therefore we can never accept it.

What platform are you on - Windows? Can you share a request ID?

Yes, I’m on Windows 11. Unfortunately, I can’t show the request ID. But it is easy to replicate. You’d make sure External File Protection is on and just make the agent on plan mode make a new file.

I’m hitting this as well. Request id: d19a5650-c8e6-47b0-87d2-f5eaf9cbdb50

I don’t know if this is what fixed it, but I toggled in that request from agent > ask > agent and it was able to continue. Saw this tip in: Can no longer create or modify files

Followup, that must’ve been luck that it worked briefly. Currently my workaround is to tell AI that “There is currently a bug that blocks AI agents from creating new files. Any time a new file is required, pause and generate a powershell script for me to manually invoke to create the file.”

1 Like

Running into the same issue on Windows 11.

Same issue with GPT5.1-Codex MAX models, @andrewh - any updates on fixing?

Same issue here with GPT5.1-Codex MAX and GPT5.1-Codex MAX High

The issue started happening for me after i tried using gpt 5.1 codex max. Now, even after changing agents back to geminin-high i have the issue. The agent found a workaround by patching very small sections of code at a time

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.