# Copy and paste terminal result/code to previous agent conversation does not work

**URL:** <https://forum.cursor.com/t/copy-and-paste-terminal-result-code-to-previous-agent-conversation-does-not-work/173931>\
**Category:** Bug Reports\
**Tags:** chat\
**Created:** [October 7, 2026, 2:53am UTC](https://forum.cursor.com/t/copy-and-paste-terminal-result-code-to-previous-agent-conversation-does-not-work/173931 "2026-10-07T02:53:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dylan\_pong](https://avatars.discourse-cdn.com/v4/letter/d/bc8723/32.png) [@dylan\_pong](https://forum.cursor.com/u/dylan_pong)\
**Post date:** [October 7, 2026, 2:53am UTC](https://forum.cursor.com/t/copy-and-paste-terminal-result-code-to-previous-agent-conversation-does-not-work/173931/1 "2026-10-07T02:53:03Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

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.

### Operating System

MacOS

### Version Information

Version: 3.23.23 (Universal)  
VS Code Extension API: 1.128.0  
Commit: 2dac2428994fe34f12658d9ecad1541b98db2c00  
Date: 2026-10-05T01:43:43.807Z  
Layout: IDE  
Build Type: Stable  
Release Track: Default  
Electron: 42.10.0  
Chromium: 148.0.7778.280  
Node.js: 24.18.1  
V8: 14.8.178.38-electron.0  
xterm.js: 6.1.0-beta.291  
OS: Darwin arm64 27.0.0

### Does this stop you from using Cursor

Yes - Cursor is unusable

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [October 7, 2026, 8:31am UTC](https://forum.cursor.com/t/copy-and-paste-terminal-result-code-to-previous-agent-conversation-does-not-work/173931/5 "2026-10-07T08:31:09Z")

</div>

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:

1. Restart Cursor.
2. Open the chat panel, create a new chat (let’s call it Chat A), and send any short message.
3. Create another new agent chat (Chat B) and send a short message there too.
4. Go back to Chat A.
5. In the editor, highlight a few lines of code and press `Cmd+L`.
6. Check whether Chat A’s input still stays empty.
7. 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.

---

<div class="post-metadata">

**Author:** ![dylan\_pong](https://avatars.discourse-cdn.com/v4/letter/d/bc8723/32.png) [@dylan\_pong](https://forum.cursor.com/u/dylan_pong)\
**Post date:** [October 8, 2026, 10:27pm UTC](https://forum.cursor.com/t/copy-and-paste-terminal-result-code-to-previous-agent-conversation-does-not-work/173931/6 "2026-10-08T22:27:50Z")

</div>

Steps 4:

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/d/d/dd74ba02de4e3a8f4a90bee84effb4ae47680c21.png)  
Steps 5 and 6:

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/e/0/e063d4d45f738ef125b75217c3e44c1ff3130972.png)  
Cmd+L, nothing is copied

Step 7:  
Switch to Chat B then back to Chat A, snippet appears

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/8/1/8168930443009aacb9f58aa7423e3450bf116142.png)

Normal typing is ok, i am switching chats using the tab at the top of the panel.

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [October 12, 2026, 4:33pm UTC](https://forum.cursor.com/t/copy-and-paste-terminal-result-code-to-previous-agent-conversation-does-not-work/173931/7 "2026-10-12T16:33:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [November 11, 2026, 4:34pm UTC](https://forum.cursor.com/t/copy-and-paste-terminal-result-code-to-previous-agent-conversation-does-not-work/173931/8 "2026-11-11T16:34:01Z")

</div>

Closed on November 11, 2026, 4:34pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
