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.