How to extract full chat history from workstorage

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I lost my caht history due to:[composer] getComposer called for non-existent composer.

Ok, that’s fine, I came to terms with it.

But can I please know if there is a way I can extract it from “state” database WITH the ai responses?

Steps to Reproduce

Updated to the new version, closed the editor, relaunched it, and all gone

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.0.77(It was 2.2.3 before i manually downgraded it)
VSCode Version: 1.99.3
Commit: ba90f2f88e4911312761abab9492c42442117cf0
Date: 2025-11-13T23:10:43.113Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Linux x64 6.14.0-37-generic

Does this stop you from using Cursor

Yes - Cursor is unusable

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.

Thank you for the response, but unfortunately, I was unable to locate the chat history with this. Have there been recent changes? I tried this for past and present chat history