Copy and paste terminal result/code to previous agent conversation does not work.
Steps to Reproduce
Open a new agent and start conversation, copy and paste (or cmd-L) terminal result/code from editor to the previous conversation, nothing is shown in the chat input. Switching to other chat and reopen the chat will show the snippet correctly.
Expected Behavior
Copy and paste code snippet to previous conversation should be shown correctly.
Hey, thanks for the report. It looks like the snippet is being added to the correct chat, but the input field doesn’t refresh until you switch to another chat and back. To help us pin down the cause, could you please try these steps and tell us what you see:
Restart Cursor.
Open the chat panel, create a new chat (let’s call it Chat A), and send any short message.
Create another new agent chat (Chat B) and send a short message there too.
Go back to Chat A.
In the editor, highlight a few lines of code and press Cmd+L.
Check whether Chat A’s input still stays empty.
Switch to Chat B, then back to Chat A, and check whether the snippet appears.
A couple quick questions:
Does this also happen in Chat B (the newest one), or only in the older chat?
If you type normal text into Chat A’s input, does it show up right away?
Are you switching chats using the tabs at the top of the panel, or opening the chat from History?
A short screencast of steps 4 to 7 would be super helpful.
For now, the workaround is the same one you already found: switch to another chat and then back, and the snippet should appear. At that point it’s already attached, so you don’t need to insert it again.
Thanks for walking through the steps and sharing the screenshots. I can see it clearly: using Cmd+L on canvas.py (1048-1051) in Chat A doesn’t show anything in the input, but after switching to Chat B and back, the snippet appears. That confirms the snippet is being added to the correct chat, and the issue is just that the input doesn’t refresh until you switch chats.
I’ve passed this to the team along with your details: 3.23.23, macOS, switching via tabs, and normal typing works fine. I can’t share a timeline yet, but if there’s an update, I’ll post it here.
For now, the workaround you found should help: switch to another chat and then back. The snippet is already attached at that point, so there’s no need to paste it again.