Cursor hangs when attempting to patch a non-existent file

Hey, thanks for the report. There have been similar reports of the agent freezing when applying file changes. For reference: Cursor freezes on final “Review Changes” step in Agent Mode.

To help narrow this down, could you share a few things:

  1. Which model were you using (Auto, Claude, GPT, etc.)?
  2. Do you have any MCP servers configured? (Cursor Settings > search “MCP”) If yes, try disabling them temporarily and restart.
  3. A screenshot or screen recording of what happens when Cursor hangs. Does it freeze completely (Not Responding) or just get stuck on the step?
  4. Console errors at the time of the freeze: Help > Toggle Developer Tools > Console tab. Screenshot any red errors.
  5. Chat Request ID from the frozen session (chat context menu at the top right > Copy Request ID).

Also, as a quick workaround, if the agent tries to patch a file that doesn’t exist, you can try stopping the generation, manually creating the file, and then re-prompting. Not ideal, but it might unblock you for now.

Let me know what you find.