How to sync previous Cursor chat history after switching from VS Code Remote SSH to Anysphere SSH?

Title

How to sync previous Cursor chat history after switching from VS Code Remote SSH to Anysphere SSH?

Body

Background

I used to connect to the same remote server and project path via VS Code Remote SSH, and I had existing chat history in Cursor for that workspace. After switching to Anysphere SSH (same server, same path), the previous chat history no longer shows up.

Steps to Reproduce

  1. Connect via VS Code Remote SSH (Host alias: OLD_ALIAS) and open the project path: e.g., /mnt/nvme/tangwh/agentdesign. Chats exist in Cursor for this workspace.
  2. Switch to Anysphere SSH with the same server and the same project path.
  3. Open the project in Cursor. The previous chats are not visible.

Actual Result

  • No previous chats appear when using Anysphere SSH for the same server/path.

Expected Result

  • Be able to retain or migrate previous chat history when switching connection methods, or have an official export/import or merge workflow.

What I Tried

  • Reopening via VS Code Remote SSH shows the old chats.
  • Couldn’t find an “import history” or “link old workspace” option in the new workspace.
  • I suspect the workspace identifier (host alias/path/connection method) changed, and I’m looking for official guidance.

Questions

  1. Are chats scoped by a workspace identifier that can change with host alias/path/connection method?
  2. Is there a supported way to migrate/merge chats to the new workspace (e.g., export/import, redirect workspace ID, or a configuration)?
  3. If yes, could you share steps or documentation? If not, any recommended backup/archive approach?
  4. Is there documentation about where chats are stored and how to manually migrate on the same machine/account?

Environment

  • OS: Linux 5.15.x (or macOS / Windows)
  • Cursor version: 0.x.x
  • VS Code version: 1.xx.x
  • Remote SSH extension version: ms-vscode-remote.remote-ssh vX.Y.Z
  • Anysphere SSH version: vX.Y.Z
  • Remote host and path: user@host:/mnt/nvme/tangwh/agentdesign
  • Host alias change: Yes/No (e.g., devserverdevserver-any)
  • Same user/permissions: Yes/No

I found the old history in %APPDATA%\Cursor\User\workspaceStorage, and I know how to fix it now. The current solution is to directly overwrite with the old chat history, and the issue seems to be caused by different SSH plugin connection commands.

Can also update the workspace.json file of the existing chat history to the new SSH connection format. It has been tested, and the history records of other workspaces have also been restored.