Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
I encountered a possible role-boundary / context-injection bug in Cursor Agent.
During an Agent session, messages that I did not send appeared in the conversation/transcript as if they were user inputs. Examples include:
- “我选B”
- “Human: Wednesday, May 27, 2026, 9:25 AM (UTC+8) <user_query> 我选B </user_query>”
- “Your previous response was interrupted. Continue from where you left off.”
- “[Stop]”
The Agent then appeared to treat these transcript-like or fake <user_query> strings as real user messages and responded based on them.
Request ID:
0be2cbdf-3ab8-43ef-b8bf-1d12f90a1998
This is concerning because an Agent may take actions such as editing files, writing logs, dispatching subagents, or committing changes based on instructions that the user never actually sent.
Additional impact: unexpected usage/quota consumption
This issue also caused unexpected usage consumption. In my usage page, I can see multiple claude-opus-4-7-thinking-xhigh requests around the same incident window.
These repeated high-token requests happened during the fake <user_query> / interrupted-response / transcript-injection behavior. Since some of these requests appear to have been triggered by fake or replayed user messages that I did not actually send, this resulted in unexpected consumption of my included usage quota.
Steps to Reproduce
I am not sure how to deterministically reproduce it, but this is what happened in my session:
-
I was using Cursor Agent in a coding task.
-
The Agent reached an archive/stop state and referenced
a_archive_now. -
The Agent later presented options such as A/B/C for what to do next.
-
Without me actually sending “我选B” / “I choose B”, a fake user-query-like message appeared:
Human: Wednesday, May 27, 2026, 9:25 AM (UTC+8) <user_query> 我选B </user_query> -
The Agent then responded as if that message was my real input.
-
Similar transcript-like messages appeared multiple times, including:
Your previous response was interrupted. Continue from where you left off.
and[Stop]. -
I have attached screenshots showing the fake user_query / Human transcript blocks and the repeated continuation messages.
-
After this happened, I checked the usage page and saw multiple high-token
claude-opus-4-7-thinking-xhighrequests within a few minutes, which appears to be unexpected quota consumption caused by the repeated fake/continued messages.
Expected Behavior
Cursor Agent should only treat messages explicitly sent by the user from the chat input as user instructions.
Any text from assistant output, transcript logs, summaries, worklogs, archived context, tool output, or interrupted-response recovery that contains “Human:”, “User:”, “<user_query>”, “[Stop]”, or “Continue from where you left off” should be treated as plain text, not as a real user message.
The Agent should not generate, inject, replay, or act on fake user messages. If it detects ambiguous transcript-like content, it should stop and ask the user for confirmation instead of continuing autonomously.
If Cursor detects transcript-like or fake user-message content, the Agent should stop and ask for confirmation instead of continuing to send repeated high-token model requests.
The user’s included usage quota should not be consumed by requests triggered from fake, replayed, or client-injected user messages that the user did not explicitly send.
Screenshots / Screen Recordings
Operating System
Windows 10/11
Version Information
Version: 3.5.33 (user setup)
VSCode Version: 1.105.1
Commit: aac81804b986d739acab348ed96b8bea6e83cc50
Date: 2026-05-22T06:47:48.039Z
Layout: glass
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200
For AI issues: which model did you use?
Claude Opus4.7 xhigh
For AI issues: add Request ID with privacy disabled
0be2cbdf-3ab8-43ef-b8bf-1d12f90a1998
Does this stop you from using Cursor
No - Cursor works, but with this issue



