Agent on Worktree not applying all changed files to main branch

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Made some changes on a a worktree with an agent. On the worktree it made all the required changes across filed, but the “review” for the changes does not show all the changed files, and hitting apply does not include all the changed files.

In the video I am attaching (sorry had to be short due to 30mb limit) you can see my package.json has changed with new packages on the worktree, but the review screen does not include the package.json, and hitting apply is not applying them on my main branch. Same for the input component for example (there are more).

Not seeing any other way to manually apply the changes that were not put in review, or to even see what files were changes without asking the agent to give me a link to the file

Steps to Reproduce

Use agent on worktree in Plan mode, then Build, then see that not all changes are being set for review or apply. This is in a pretty basic NextJS project

Expected Behavior

All files changes by the agent in a worktree should be marked for review and be applied to main branch

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.0.77
VSCode Version: 1.99.3
Commit: ba90f2f88e4911312761abab9492c42442117cf0
Date: 2025-11-13T23:10:43.113Z
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.5.0

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey, thanks for the report. It looks like this is related to a known review system state management issue we’re already tracking, although your worktree case is a new variant we need to investigate.

To help with diagnostics, please share:

  • Console errors:

    • Help → Toggle Developer Tools → Console
    • Take a screenshot of any errors that appear when the review screen shows up
  • Does this happen consistently in every worktree agent session, or only sometimes?

As a temporary workaround, you can manually view the diff in your worktree branch with git diff main in the terminal to see all the changes the agent made, then apply them manually if needed.

This is a critical issue affecting the agent review flow, so we’ll escalate it for investigation once we have the diagnostic information.

1 Like

Thank’s for the response.

>It looks like this is related to a known review system state management issue we’re already tracking

Is there a link to different thread/issue where I can track the resolution?

Opened the console, not seeing any errors there.

We’re tracking this in our internal bug tracker. We’ll let you know once the issue is resolved.

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