Greetings to the Cursor team! I would like to thank you for the good product. I don’t know if this is a bug, but it seems like a significant flaw that hinders me every day(.
When I connect in IDE mode to a remote VPS via the Connect via SSH button, everything works fine, and it works on that VPS. But then I close this window, and the next day I connect to that VPS again, but there’s no chat history! And I have to re‑enter everything into the context of current tasks. It would be great to be able to continue working from the last chat. I’m sure this is a small issue for you!
Otherwise, I’m grateful for your work; I hope you can fix this!
Steps to Reproduce
Switch to IDE mode, click File - New Window.
Then click Connect via SSH. Start the chat history, chat with the AI. Then close this window and reopen it. There is no way to restore the chat.
Expected Behavior
When you close the window and then reconnect to the SSH workspace, the chat history related to that SSH connection is displayed.
Hey Stas, thanks for the detailed report and the kind words.
What you’re describing isn’t data loss, your chats are still there. Chat history is tied to the project folder. When you connect over SSH via Connect via SSH but don’t open a folder, that window isn’t linked to any project. So the next time you reconnect, the sidebar can’t find those chats.
The fix is simple. After you connect, open your project folder on the server via File → Open Folder, or pick it from Recents. Any chats you start inside that opened folder will be linked to it and will show up every time you reconnect and open the same folder.
Your old chats weren’t deleted either, you can find them in the Agents window, it shows history across all projects.
Let me know if the history still doesn’t show up after you open the folder.
Thanks for the answer! The thing is, I prefer to develop the application with one agent on my PC locally, and use another I agent and the chat history only on the VPS. And this I agent works only on the VPS via Connect via SSH.
When I open a new window, click Connect via SSH, the IDE connects to my server, then I press ctrl+L, a side window with the agent opens, I give it tasks, and it immediately starts working. I don’t select any directory myself; I don’t need it.
The next time I turn on Cursor and connect to my server, which folder should I select to see the past chats?
At the same time, these chats are saved in the Agents Window, but I don’t understand how to open them in the IDE window in the first place, since I didn’t specify any folder there. Are they saved in some default folder?
Thanks for clarifying, it’s clearer what’s going on now.
Key point: when you connect over SSH and open the agent right away with Ctrl+L without opening a folder, that window isn’t tied to any project. A folderless window gets a temporary ID each time, so on the next connection the sidebar can’t find the old chats. The data isn’t deleted, it just won’t show up in the sidebar.
On your questions:
Which folder should you pick to bring the old chats back to the sidebar
Unfortunately, none. Chats created without an open folder are tied to temporary IDs, so choosing a folder later won’t make them appear in the sidebar. That’s a limitation of how history is linked to a project.
How to open them
Use the Agents window. It shows history across all projects, regardless of folder. Open the chat you need from there and continue. You don’t need a separate folder for that.
To make history save reliably going forward, after connecting over SSH open the same folder each time via File → Open Folder, for example your project on the server, or /root/ like in your screenshot. Any chats started inside an opened folder will be linked to it and will show up every time you reconnect and open that same folder.
I get that your setup, agent on a VPS with no directory selected, doesn’t work great right now. I’ll pass this to the team as feedback. Let me know if the history still doesn’t show up after you open a folder.