Skip to content

[Bug] database not found. Copilot changed storage format from session-store.db to session-state folder #19

Closed

Description

@ductaiii

Describe the bug
The auto-memory tool expects to find a single SQLite database file named session-store.db inside the .copilot directory. However, in recent versions of GitHub Copilot, this file no longer exists. The local storage structure has changed, and there is now a session-state folder instead of the .db file.

To reproduce
Steps to reproduce:

  1. Run pip install auto-memory
  2. Run the command session-recall health in the terminal
  3. See error indicating that the database cannot be found.

Expected behavior
The tool should successfully locate the new Copilot chat history storage (e.g., the session-state folder or related JSON files) and report a healthy status, allowing the extraction of memory.

Actual behavior
The tool throws an error because it is looking for a deprecated file path.
Error message: error: database not found: C:\Users\tainguyen\.copilot\session-store.db

Environment

  • OS: Windows 11
  • Python version: [3.11]
  • auto-memory version: [0.1.0]
  • Copilot CLI version: [e.g. 1.0.17]

session-recall health output

error: database not found: C:\Users\tainguyen\.copilot\session-store.db
error: database not found: C:\Users\tainguyen\.copilot\session-store.db

Additional context
Looking inside my C:\Users\tainguyen\.copilot\ directory, the session-store.db file is completely missing. Instead, I see the following structure:

  • A folder named session-state
  • A folder named ide
  • command-history-state.json
  • vscode.session.metadata.cache.json
Image

Activity

  1. erSpell commented on Sep 8, 2026

    @erSpell
    Contributor

    I’m working on this and have a local fix under test for the session-state fallback case.

  2. dezgit2025 commented on Sep 30, 2026

    @dezgit2025
    Owner

    Thanks for the detailed report, @ductaiii. The session-state fallback shipped in v0.2.0 — after the 0.1.0 you were running — so upgrading with pip install -U auto-memory (0.5.1 on PyPI) should resolve the "database not found" error.

    #29 adds a regression test for exactly this case and improves handling of WSL-style session paths on Windows, and CI now runs on Windows too. Closing — please reopen if you still see it on the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions