# Drafted message in new Agent tab is lost/cleared when switching to previous chats

**URL:** <https://forum.cursor.com/t/drafted-message-in-new-agent-tab-is-lost-cleared-when-switching-to-previous-chats/161643>\
**Category:** Bug Reports\
**Tags:** agents-window, chat\
**Created:** [May 26, 2026, 4:41pm UTC](https://forum.cursor.com/t/drafted-message-in-new-agent-tab-is-lost-cleared-when-switching-to-previous-chats/161643 "2026-05-26T16:41:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramizik](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ramizik/32/86630_2.png) [@ramizik](https://forum.cursor.com/u/ramizik)\
**Post date:** [May 26, 2026, 4:41pm UTC](https://forum.cursor.com/t/drafted-message-in-new-agent-tab-is-lost-cleared-when-switching-to-previous-chats/161643/1 "2026-05-26T16:41:15Z")

</div>

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

Cursor IDE

### Describe the Bug

When starting a new session with an Agent (via the Agents Window) and drafting a message in the input box of a New Agent (CTRL + N), switching to view other previous agent chats and then returning to the new agent tab causes the drafted text to disappear. The text area is reset, and any unsent drafted content is permanently lost instead of being preserved in the input state.

### Steps to Reproduce

Open the Agents Window in Cursor.  
Click to start a new Agent chat session (opening a blank, unsent agent tab).  
Type some text into the input field (do not press Enter / Send).  
Click on any of your previous chats with agents in the chat history sidebar to view them.  
Click back on the “New Agent” tab or button to return to the active draft.  
Observe that the text input is completely empty and the drafted message has been lost.

### 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: editor  
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.22631

### Does this stop you from using Cursor

No - Cursor works, but with this issue

---

<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:** [May 26, 2026, 4:56pm UTC](https://forum.cursor.com/t/drafted-message-in-new-agent-tab-is-lost-cleared-when-switching-to-previous-chats/161643/5 "2026-05-26T16:56:31Z")

</div>

Hey, thanks for the report and the detailed steps. This is a known bug where the draft state doesn’t get saved when switching between Agent tabs. The original version was partially fixed earlier, but the case with New Agent during navigation was still not covered.

The team is tracking the issue, but I can’t share an ETA for a fix yet. As a workaround for now, it’s best to send the message before switching, or copy your draft to the clipboard before navigating to another chat.

If there are any updates on the fix, I’ll reply in the thread.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [June 17, 2026, 1:54pm UTC](https://forum.cursor.com/t/drafted-message-in-new-agent-tab-is-lost-cleared-when-switching-to-previous-chats/161643/8 "2026-06-17T13:54:19Z")

</div>

Hey @ramizik!

Let us know if you can still repro this. We haven’t been able to on the latest version.
