<cursor_commands> memory leak

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Seems like messages I type associated with a /command get included in that command in later conversations?

Steps to Reproduce

I have a simple command called /review that tells cursor to review its work (very specifically it’s # review
Can you double check your work to ensure the accuracy of the logic, that the code is clean, and nothing in the flow breaks? )

However, when I used it most recently, it had messages that I typed from previews conversations attached to it (at least that’s what the chat interface told me after some probing and getting it to reveal the messages list passed in). Here’s what Opus 4.6 told me it received: <cursor_commands>
— Cursor Command: review —

review

Can you double check your work to ensure the accuracy of the logic…

I care about the efficiency of everything, since there are ~10-50k element nodes per project…
@koalaware/src/lib/scripts/createEmbeddingsScript.ts:1-393
@koalaware/src/lib/product-mapping/productMapEmbeddings.ts:1-227
— End Command —
</cursor_commands>

<user_query>
/review
</user_query>

Expected Behavior

To not inject random text into my commands

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

2.4.21

Does this stop you from using Cursor

No - Cursor works, but with this issue

hi @SkylerJi and thank you for the detailed bug report.

Could you check if the same occurs in a new chat after Cursor update?

Please add a Request ID with privacy disabled so we can look into the details? Getting a Request ID | Cursor Docs

Kindly also attach the full version text and mention which model you used there.