# Agent on Worktree not applying all changed files to main branch

**URL:** <https://forum.cursor.com/t/agent-on-worktree-not-applying-all-changed-files-to-main-branch/143231>\
**Category:** Bug Reports\
**Created:** [November 19, 2025, 1:07pm UTC](https://forum.cursor.com/t/agent-on-worktree-not-applying-all-changed-files-to-main-branch/143231 "2025-11-19T13:07:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dylan\_Clemann](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@Dylan\_Clemann](https://forum.cursor.com/u/Dylan_Clemann)\
**Post date:** [November 19, 2025, 1:07pm UTC](https://forum.cursor.com/t/agent-on-worktree-not-applying-all-changed-files-to-main-branch/143231/1 "2025-11-19T13:07:55Z")

</div>

### 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

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [November 19, 2025, 3:46pm UTC](https://forum.cursor.com/t/agent-on-worktree-not-applying-all-changed-files-to-main-branch/143231/2 "2025-11-19T15:46:19Z")

</div>

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:

- 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.

---

<div class="post-metadata">

**Author:** ![Dylan\_Clemann](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@Dylan\_Clemann](https://forum.cursor.com/u/Dylan_Clemann)\
**Post date:** [November 19, 2025, 10:12pm UTC](https://forum.cursor.com/t/agent-on-worktree-not-applying-all-changed-files-to-main-branch/143231/3 "2025-11-19T22:12:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [November 20, 2025, 12:45pm UTC](https://forum.cursor.com/t/agent-on-worktree-not-applying-all-changed-files-to-main-branch/143231/4 "2025-11-20T12:45:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [December 12, 2025, 12:45pm UTC](https://forum.cursor.com/t/agent-on-worktree-not-applying-all-changed-files-to-main-branch/143231/5 "2025-12-12T12:45:58Z")

</div>

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