Cannot rebuild the plan

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I accidentally deleted the code I had built in plan mode. While attempting to recover it, I mistakenly enabled cloud agent mode. Since my project is managed via a local GitLab for version control, I’m unable to disable the cloud agent.

My request is as follows:

Disable the Cloud Agent: I need to turn off the cloud agent.
Rebuild the Plan in the Current Session: I want to rebuild the plan within this session. I prefer not to start a new session because the original session contains crucial context that I need to retain.
Alternatively, if possible, how to recover the deleted plan code? That would be immensely helpful.

Steps to Reproduce

  1. Built a plan
  2. Waited for the build to complete
  3. Accidentally clicked “Do not accept” (misoperation)
  4. Attempted to rebuild the Plan, but an increasing number of duplicate to-dos appeared below the plan. The “do-do” status did not reset.
  5. Unable to complete the rebuild. I hope to retrieve the initial code from the first build.

Screenshots / Screen Recordings

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.1.39 (user setup)
VSCode Version: 1.105.1
Commit: 60d42bed27e5775c43ec0428d8c653c49e58e260
Date: 2025-11-27T02:30:49.286Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.22631

For AI issues: add Request ID with privacy disabled

Request ID: 1c291848-f9a3-4bf1-9932-74d9f6a251d4

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. Your issues correspond to several known problems the team is actively investigating:

  1. Duplicate to-dos when rebuilding a plan: This is a known issue - the Agent creates duplicate empty to-dos instead of using existing ones. The team is investigating this.

  2. Unable to rebuild/update a plan: This is a known regression in version 2.1.0+. Temporary solutions:

    • Reload the window and recreate the plan from scratch
    • Start a new chat for the plan
    • Manually edit plans in the .cursor/plans/ directory
  3. Recovering rejected changes: Unfortunately, there’s no undo feature for rejected Agent changes. Check:

    • Git history (if changes were committed)

After disabling the cloud agent, try starting a new Agent session - the to-do duplication should be less severe in a new chat.