Worktree apply all with rejected file will fail

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

This happens when I use “multiple models” and am working in one of the model’s versions in a worktree. One model added a spurious file that I rejected by pressing the x in the file list at the bottom of the chat.

But then when I clicked apply all, it would fail with a message complaining that the rejected (and no longer visible in the list) file does not exist. I had to ask the agent to create a placeholder to apply successfully.

Steps to Reproduce

  1. Prompt with multiple models
  2. Reject a file in one of the responses
  3. Click Apply all

Expected Behavior

Should not try to apply the rejected file back out of the worktree

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.0.64
VSCode Version: 1.99.3
Commit: 25412918da7e74b2686b25d62da1f01cfcd27680
Date: 2025-11-06T04:35:14.424Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 24.6.0

For AI issues: which model did you use?

Sonnet 4.5

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. This is a bug in the worktree system - when you reject a file with “x,” it should be removed from the apply queue, but “Apply All” still tries to process it.

Your workaround (creating a temporary/empty file) is correct for now. I’ll pass this to the team.

Could you share the exact error message that appears when “Apply All” fails?

Hi, same issue. One of the files that Claude edited was in gitignore. Thus, the entire “Apply” did not work with the same message. I started from scratch.

1 Like