Lost Copilot chats in VS Code: where they are
Copilot Chat in VS Code keeps your chats as files in VS Code's own folders, one storage folder per workspace. A chat that has vanished from the history list is usually still on your disk.
Why a chat seems to disappear
VS Code gives each workspace its own storage folder, and the chat history list shows the chats of the storage folder in use. If the same project is opened in another way, for example from a different path or as a workspace file instead of a folder, VS Code can use a different storage folder, and the chats from the old one no longer appear in the list. Chats started with no folder open are kept apart, in a folder of their own.
Where the chat files are
| System | VS Code user folder |
|---|---|
| Windows | %APPDATA%\Code\User |
| macOS | ~/Library/Application Support/Code/User |
| Linux | ~/.config/Code/User |
Inside it:
workspaceStorage/<id>/chatSessions/ one folder per workspace
globalStorage/emptyWindowChatSessions/ chats with no folder open
Each workspaceStorage/<id> folder has a workspace.json that names the project it belongs to. VS Code Insiders uses Code - Insiders in place of Code.
Find every Copilot chat at once
Axyome Lite is free and open source (MIT), needs no account, and only reads these files. It looks in every storage folder and lists each chat with its project:
npx axyome-lite where
npx axyome-lite list --assistant copilot
npx axyome-lite export <id> -o chat.md
In VS Code, the Axyome Lite extension shows them in the Explorer, grouped by project. It is also on Open VSX and npm, and the source is on GitHub.
Search all of them
Axyome XM records your Copilot sessions on your computer as you work, with the files, errors and terminal commands around them, and lets you and your assistant search across every project.
Folder layout checked on VS Code 1.147. See also: where every AI assistant keeps its chats and Claude Code chat history.