How to extract full chat history from workstorage

Hey, thanks for the report. The error “[composer] getComposer called for non-existent composer” means the chat data got stuck in local storage, but it isn’t deleted.

There’s a similar report with a full recovery guide: Chat stuck on “Loading Chat” — cannot access previous conversation - #16 by Danivisit

How to recover history with AI replies:

  1. Find the data:
    ~/.config/Cursor/User/workspaceStorage/
    Each folder (for example, df481d4a973fa25419205aff46268df6) = one project

  2. Check the database:

    • Install DB Browser for SQLite: https://sqlitebrowser.org/
    • Open the state.vscdb file in the target folder
    • Search for keys: workbench.panel.aichat.view... or workbench.panel.composerChatViewPanel...
  3. Extract chats:
    Also check the anysphere.cursor-retrieval/ folder inside the workspace. You may find .json or .md files with your chats and AI replies.

  4. Restore via a new chat:
    If you found a .md file:

    • Create a new chat
    • Ask the AI: “Can you read a Markdown file?”
    • Attach the recovered .md. The AI will continue from there

For the future: install the SpecStory extension for automatic backups.