Agent chat shows the same assistant message twice

Where does the bug appear (feature/product)?

Cloud Agent (GitHub, Slack, Web, Linear)

Describe the Bug

The agent chat UI displays the same assistant reply twice. The web app the agent was editing only shows the related message once, so this is a Cursor chat rendering issue, not the app.

The duplicated text was a single assistant turn: 自動保存成功時は、画面上部の緑フラッシュで「保存しました」と出すようにしました(Swal 前と同じ見た目)。PR: …

Selecting that text in chat also produced two identical chat selections of the same paragraph.

Steps to Reproduce

  1. Open a Cloud Agent conversation (agent id bc-bbbcfdba-88af-44e3-86cd-fb94542bb38d).
  2. The agent posts one short reply about an autosave flash message.
  3. In the Cursor chat, that same paragraph is shown twice.
  4. The web app the agent changed shows only one flash message.
  5. The same duplicated chat text was still visible after moving the conversation to a local agent.

Expected Behavior

Each assistant turn appears once in the chat.

Operating System

MacOS

Version Information

IDE (from /Applications/Cursor.app product.json):
Version: 3.27.6
Commit: f7119520544accb8dcf6d27119b9f1963d8ee5a0
Quality: stable
OS: macOS (darwin)

The duplicate was first seen in a Cloud Agent chat, then still visible after the conversation was moved to a local agent.

For AI issues: add Request ID with privacy disabled

Request ID was not copied from the chat menu.
Cloud Agent id: bc-bbbcfdba-88af-44e3-86cd-fb94542bb38d

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey @ota-fs,

From what we can see, the agent wrote that reply only once. The second copy most likely came from the chat view redrawing the conversation when Cursor reconnected to the cloud agent after the reply had finished. When you move a cloud agent to a local agent, the chat is carried over as it was shown, which is why the duplicate is still there afterwards. It looks like a display issue only: your code and the PR shouldn’t be affected.

To help us confirm, could you check two things?

  1. Open the original cloud agent at cursor.com/agents (it may be under archived agents now) and see whether that reply shows once or twice there.
  2. Let us know whether you were in the Agents Window or the chat panel in the editor, and whether the Cursor window was in the background or your Mac was asleep when the reply arrived.

If it happens again, it would also help to know whether running “Developer: Reload Window” from the command palette, before moving the agent to local, makes the extra copy go away.

Hi Colin,

1. I opened the original cloud agent in the browser. The reply shows only once there. The duplicate was only in the Cursor chat view, not on that page.

2. The Cursor window was in the foreground when the reply arrived. It was not in the background. This was the Cloud Agent conversation, which I later moved to a local agent. The extra copy was already in that chat and stayed after the move.

I have not seen it happen again, so I have not tried Developer: Reload Window yet.

Hey @ota-fs,

Since the reply shows only once on cursor.com/agents, the extra copy came from how the Cursor desktop app displayed the conversation, not from the agent itself. Your code and the PR are not affected. I’ve passed this on to the team with the details you shared.

One more thing that would help: was the conversation open in the Agents Window, or in the chat panel inside an editor window?

If it happens again, try running “Developer: Reload Window” from the command palette before moving the agent to local, and let us know whether the extra copy goes away.

Hi Colin,

It was open in the Agents Window, not in the chat panel inside an editor window.

Tried using cursor (windows desktop client, same agents window) to do some learning today, had 3 instances within about 10 minutes of messages getting repeated. At each instance I questioned the duplication and was told that each time the first message resulted in a “nudge” that it was “not seen”.

Then went down lots of unhelpful rabbit holes about how to fix this, like “I should let my agent know when I don’t get a message”, as if that were a reasonable solution or that it would just “never retry” instead. I appreciate the agent’s gusto here, but these are the wrong solutions.

I started this session in a browser and was told that I couldn’t edit my account wide rules in the browser and had to get the desktop app. I’m ending the session wondering if using the browser is the solution, or if I’m about to enter an infinite loop.

Checked the web version and I see the duplicates in the chat history there as well.

A little frustrated Cursor, a fast fix would mean a lot.

Edit: As an afterthought I asked the agent: “Any last helpful words or technical details I could include to help the agent or programmer reviewing this resolve the issue?”

Response (note that I’m not including any screenshots here):
Paste-ready notes for staff

  • Surface: Project coordinator (not a normal cloud agent / worker). Output is only via SendMessage; ordinary assistant text is hidden.
  • Run: https://cursor.com/agents/bc-78934506-f511-429a-8d28-77df0dbf94ec (Project: Introduction to Systems Thinking - D372)
  • Client: Agents Window / desktop (source from run-info: "source": "desktop")
  • What I see: Same assistant reply appears twice in chat.
  • What the coordinator sees: SendMessage returns success (“Message sent”). Later a system reminder says the response “was not visible to the user” and instructs a re-send. There is no delivery/visibility metadata to re-check — only that nudge. Run events API has no chat-delivery events.
  • Important split: In this thread, several duplicates were agent re-sends triggered by that false “not visible” flag (tool already succeeded; user had the first copy). Separately, forum/staff already describe UI redraw duplicates (once on web, twice in Agents Window). Both can stack.
  • Ask for eng: (1) Stop treating “not visible” as authoritative after a successful SendMessage accept, or give agents a real delivery status. (2) Confirm whether Agents Window is double-rendering Project coordinator messages the same way as in the original bug report. (3) Please check this bc- id on web vs desktop for message count.
  • Workaround we’re using: Ignore “not visible”; never auto-resend; web agents page as source of truth.

Optional: screenshot of a duplicated pair + note whether reload clears it. Version from Help → About Cursor helps too.

Hi @WillCoded,

This one is on our side, and it’s a different cause from the original post here. The agent in your chat really did send those replies twice: after it had already answered, an internal check wrongly told it the first message hadn’t reached you, so it sent it again. That’s the “nudge” it was describing. I’ve passed this to the team.

Switching to the browser won’t change it, since it happens in the agent itself rather than in the app. You won’t end up in a loop either: it re-sends at most once per message you send.

In the meantime, telling the agent something like “Don’t re-send a message you’ve already sent me” may cut down on the repeats. In any case, I’m flagging this for the team.

Thanks for the speedy reply @Colin