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:
- 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.
- 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:
- Open a Cursor Agent thread and start a /goal with a long-running task.
- Delete/remove the /goal from the thread.
- Send a new normal prompt in the same thread.
- Observe the deleted /goal reappearing and becoming active again.
Bug 2 – Unbounded automatic resumes:
- Start a /goal with a long-running task.
- Let it stop mid-run (or interrupt it) and leave the thread idle.
- Keep using Cursor normally in other sessions (no new input in that thread).
- 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
- Deleting or stopping a /goal should permanently remove it from the thread so later prompts never reactivate it.
- /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