Deleted /goal reactivates on new prompts and runs in an unbounded auto-resume loop

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I ran into two related bugs with /goal in Cursor Agent that caused massive unexpected token consumption:

  1. Deleted /goal comes back: after deleting/removing a /goal from a conversation, sending a normal prompt in the same thread brings the deleted /goal back and reactivates it.
  2. Unbounded automatic resumes: a /goal I started on Nov 16 stopped mid-run, and 6 days later (Nov 22), with zero action from me, it resumed on its own and looped for 4h27 — triggering 127 automatic resumes, 671 terminal commands, and 107 file edits, burning over 690M tokens in a single day with no built-in cap or hard stop.

As a temporary workaround, I extracted a beta guardrail hook (using beforeSubmitPrompt, preToolUse, afterAgentResponse, and stop) to cap /goal runs and prevent runaway loops: GitHub - RicardoSLopes/cursor-goal-guard: Open-source Cursor hook guardrail to enforce per-session idle, generation, token, and quota limits on /goal runs. · GitHub (still in beta, built for Windows).

Steps to Reproduce

Bug 1 – Deleted /goal comes back:

  1. Open a Cursor Agent thread and start a /goal with a long-running task.
  2. Delete/remove the /goal from the thread.
  3. Send a new normal prompt in the same thread.
  4. Observe the deleted /goal reappearing and becoming active again.

Bug 2 – Unbounded automatic resumes:

  1. Start a /goal with a long-running task.
  2. Let it stop mid-run (or interrupt it) and leave the thread idle.
  3. Keep using Cursor normally in other sessions (no new input in that thread).
  4. Days later, the /goal resumes on its own and keeps auto-resuming with no cap on resumes, duration, or tokens.

Observed in my case: started Nov 16, resumed on its own Nov 22, ran 4h27 with 127 auto-resumes, 671 terminal commands, 107 file edits, and 690M+ tokens in one day.

Expected Behavior

  1. Deleting or stopping a /goal should permanently remove it from the thread so later prompts never reactivate it.
  2. /goal should not silently resume days later without user action, and should have a built-in guardrail (e.g., max auto-resumes, duration, or token/cost limit) to prevent runaway token burn.

Screenshots / Screen Recordings

Operating System

Windows 10/11

Version Information

Version 3.32.4

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hi @Ricardo_Santana, both of these are on our side and I’ve passed them to the team.

On the goal coming back: Clear goal isn’t holding in that chat, so your next message picks the old goal up again. Until that’s fixed, the way to end it is to send a message in that chat asking the agent to stop the goal and mark it complete. A completed goal isn’t picked up again. Archiving the chat stops it too.

On the Nov 22 run: a goal that is still active gets continued as soon as its chat is opened again, even days later, and a goal has no time or token limit today. It keeps going until it’s complete or stopped, which matches what you saw.