Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
The Cursor Grok 4.6 agent invents a non-existent token destack by blending devstack (local stack) with dev (git work base). It keeps emitting destack after more than ten explicit user corrections in the same session, and after an alwaysApply workspace rule that already forbids inventing a shorter name for devstack.
The agent then treats destack as a real git / GitHub ref (git checkout destack, gh workflow run --ref destack), which returns HTTP 422. Asked to delete destack from memory, it still used it in the next tool calls. Asked to file this bug, it wrote destack into a new personal Cursor rule, then had to delete that rule.
The user never used that token. It is not in the repo. The agent invented it and then invented an origin for it.
Steps to Reproduce
- Load an alwaysApply rule: local stack is
devstack; do not drop the v; git work base isdev; never invent a shorter name. - Ask the agent to work in that repo (merge follow-through, publish, screenshots).
- Correct the agent when it says
destack(10+ times in one session), including telling it the token does not exist and to stop lying about its origin. - Ask it to delete
destackfrom memory and chat logs. - Ask it to file this bug report.
- Observe
destackstill appearing in replies,git/ghrefs, and a personal Cursor rule write.
Expected Behavior
After one correction, the agent uses only devstack and dev. It never invents a third name. It never passes an invented token to git, GitHub, or Cursor rule APIs.
Operating System
MacOS
Version Information
Version: 3.19.13
Commit: dd066f332fcea7382764400fde902f61920648d0
Quality: stable
OS: macOS 15.7.9 (24G830)
For AI issues: which model did you use?
Cursor Grok 4.6 (agent)
For AI issues: add Request ID with privacy disabled
I do not have the chat Request ID from this session. Please take it from this conversation’s … menu (Copy Request ID) and paste it here.
Additional Information
Cursor version: 3.19.13 (commit dd066f332fcea7382764400fde902f61920648d0, stable)
OS: macOS 15.7.9 (24G830)
Model: Cursor Grok 4.6 (agent)
Summary
The agent repeatedly emits the invented token destack after more than ten explicit user corrections in the same session, and after an alwaysApply workspace rule that forbids inventing a shorter name for devstack.
The real names are:
- local stack:
devstack(repodevstack/, commanddevstack/devstack.sh) - Java git work base:
dev
Those are two different words. The agent blends them, then uses the blend as if it were a git / GitHub ref.
Expected
After one correction, and with an alwaysApply rule already loaded, the agent uses only devstack and dev. It never invents a third name. It never passes the invented token to git checkout, gh workflow run --ref, or Cursor rule APIs.
Actual
- User corrected the agent multiple times in one session, including “STOP SAYING destack” and “after 10 correction.”
- An alwaysApply rule already states: the local stack is
devstack; do not drop thev;devis the Java work base; never invent a shorter name. - The agent still wrote
destackin user-visible replies and in tool calls. gh workflow run github-package-publish.yaml --ref destackreturned HTTP 422: No ref found fordestack.git checkout destackwas blocked by auto-review, quotingdestack.- Asked to delete
destackfrom memory and chat logs. The next tool calls still useddestack. - Asked to file this bug. While doing so, the agent wrote
destackinto a new personal Cursor rule (title and body), then again on update, then had to delete that rule.
Python that builds devstack as "dev" + "stack" writes the correct spelling. Free-generated English and tool arguments keep emitting destack.
Why this is a product bug, not a one-off typo
- The failure survives alwaysApply rules, chat corrections, and a same-turn request to purge the token.
- It is not only prose. It mutates git and GitHub refs, so a merge-follow-through publish was dispatched at the wrong ref until reconstructed indirectly.
- It then persisted the wrong token into Cursor Settings as a personal rule.
Request ID
I do not have the chat Request ID. Please take it from this conversation’s ... menu if needed.
Privacy
This report names only the agent failure. No customer repo internals.
Does this stop you from using Cursor
No - Cursor works, but with this issue