After applying file changes from a worktree, the chat switches to “Continue Locally” and you are unable to continue chatting/making file changes in the context of the worktree.
Steps to Reproduce
Start a chat in a worktree.
Click “Apply” to apply file changes to repo.
Worktree chat will change to “Continue Locally”
and further file changes can’t be made in the context of that worktree
Expected Behavior
After applying file changes from a worktree, you should be able to continue making file changes/asking questions in the context of that worktree. (You should not see the chat change to “Continue Locally”)
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Hey, thanks for the report. This appears related to a known worktree UI regression that affects the apply/reapply buttons starting from v2.0.54.
However, the specific “Continue Locally” behavior is a new variant I haven’t seen reported before. Could you share a screenshot of the chat when the interface switches to “Continue Locally”? This will help the team investigate.
I’ll pass this to the team once we have the screenshot.
This happens after I apply changes from a worktree. The entire chat context shifts from being pointed at the worktree (I see the subtitle of the chat change from worktree-name-ABCD to just showing additions/deletions as it does in local mode)
and the text in the input box says “Continue locally” as shown in the screenshot.
Hi. Was just following up here. It seems like with one of the latest updates, I now have the option to undo applied changes from a worktree and then the chat will go back to worktree context.
Now after applying changes:
Chat applies changes and changes to “Continue locally”
If “Undo Apply” is selected, changes are reverted on main repo and chat goes back to worktree context.
I am satisfied with this behavior. Now i am able to continue chatting in worktree context and making the changes in the worktree if i unapply changes to main repo.