Where to find GitHub Copilot Chat History ? #129888
Replies: 38 comments 20 replies
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
|
Thanks for your feedback. Unfortunately I am not able to provide any extra information about this issue and I can't find a solution for it: this is why I am asking the community. |
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
|
I was wondering the same. My workaround for the time being is using the "Chat: Export Chat" command in VSCode in conjunction with the GitHub Copilot Chat extension. |
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
|
Still an issue. |
|
same issue here |
|
man i need help as well cuz i tried to modifie my code and its all messed up now |
|
Is there a history for the Inline Chat though? If I close the dialog and then I want to give more prompts for the same prompt, I am lost. |
|
|
https://github.com/microsoft/vscode-copilot-release/issues/3537 |
|
GitHub Copilot Chat histories are stored per workspace—even if you didn’t create one manually, VS Code will generate one for you automatically. Normally, you can transfer histories between workspaces (and machines) using the The
Inside |
|
I wanted to bring all these chat histories directly into my workspace, in a human readable format (markdown), so I built an extension to autosave chat history into my project folder. These markdowns are easy to version, search, and share. They can't be imported like the json files, but that's ok cause I can always # reference them from another chat. |
|
The current history icon, especially in its context, looks like a revert icon - I never thought to click it to see my other/past chats and only discovered it due to lag in a remote desktop session... Not that I know what would be better; I want to say something like a tube-map-style icon like the version control history icon. But, erh, that would probably have the same connotation in that context. Maybe 3 overlapping speech bubbles? |
|
There's also an issue where copilot chats aren't saved in a liveshare session |
|
In Copilot web, I just have the last four chats, and the only way I can access ones previous to that is if I still have that tab open in my browser, or if I had sent the link for any of them to someone. This is ridiculous. |
|
At the moment, GitHub Copilot Chat does not provide a way to view or restore past chat history once a thread is closed or the editor session ends. A few important points to clarify: The “Threads” dropdown only shows the current active thread and the option to start a new one. It does not list previous conversations. What you can do instead Bottom line |
|
Another way you can lose the history:
Well, except for those folders mentioned earlier from which I will try to pull it from. |
|
To be honest, I switched from Cursor to VS Code with Copilot. My first problem was that I spent a lot of time generating and planning project history, then the agent generated the project. When I opened the project folder, VS Code restarted and all the history was lost. As a result, I ended up wasting a lot of tokens and burned through 73% of my monthly limit. Now I have to spend more tokens again to redo the work. This is unacceptable because it feels like I’ve literally lost money, which is very frustrating. |
|
For full VS the logs seem to be here instead: |
|
Guys, any solution for MAC? I can't find PyCharm's github copilot plugin's data folder. I do miss text search in github copilot soooo much. :( And Linux and Windows solutions I could see in this thread. |
|
I was able to retrieve my recent chat history by hitting Ctrl + Shift + P, then selecting Chat Agent Sessions: Open Agent Session. Selecting this then shows a drop-down of recent titled chat sessions. Hope it works for anyone else reading this and be of use. |
|
I am able to retrieve my chat by hitting Ctrl + Shift + P, then selecting Chat: Show Chats. |
|
I have the chatgpt Codex extension installed and I use both - "GitHub Copilot Chat" and "Codex" for different tasks. In session history I only see chats created from codex extension. I can't find sessions that I created from "GitHub Copilot Chat" extension itself anywhere. |
|
Just prompt for putting the conversation in a txt file at the end of the session and append data to it. So you can easily resume a conversation. |
What's HappeningVS Code identifies each workspace folder by a hash computed from:
When you have both Copilot Chat and Codex active on the same repo, they can end up writing to different workspace storage hashes — one hash for when Copilot Chat first indexed it, another for when Codex did (or if the folder was copied/recreated at some point, changing its birthtime). So your Copilot Chat sessions are sitting in an orphaned workspace storage folder — the data is safe, VS Code just isn't looking there anymore. How to Find the Orphaned Sessions ManuallyStep 1 — Open your workspaceStorage folder
You'll see dozens of folders with random hex names like Step 2 — Find the one with your Copilot chats Each folder has a You can do this quickly in terminal:
Step 3 — Identify the "active" hash vs the "orphaned" hash You'll likely find two folders pointing to the same repo path. The active one is what VS Code is currently using. The orphaned one has your Copilot chat history in its The Safe Manual Restore (No Script Needed)Once you've found both folders:
About the ScriptThe script you found is actually doing exactly the safe manual steps above, just automated. It's read-only in dry-run mode (default), and only writes when you pass
If you want to try it, run it without VS Code identifies each workspace folder by a hash computed from:
When you have both Copilot Chat and Codex active on the same repo, they can end up writing to different workspace storage hashes — one hash for when Copilot Chat first indexed it, another for when Codex did (or if the folder was copied/recreated at some point, changing its birthtime). So your Copilot Chat sessions are sitting in an orphaned workspace storage folder — the data is safe, VS Code just isn't looking there anymore. How to Find the Orphaned Sessions ManuallyStep 1 — Open your workspaceStorage folder
You'll see dozens of folders with random hex names like Step 2 — Find the one with your Copilot chats Each folder has a You can do this quickly in terminal: # macOS/Linux
grep -r "my-repo-name" ~/.config/Code/User/workspaceStorage/*/workspace.json
# Windows PowerShell
Get-ChildItem "$env:APPDATA\Code\User\workspaceStorage" -Recurse -Filter workspace.json | Select-String "my-repo-name"Step 3 — Identify the "active" hash vs the "orphaned" hash You'll likely find two folders pointing to the same repo path. The active one is what VS Code is currently using. The orphaned one has your Copilot chat history in its The Safe Manual Restore (No Script Needed)Once you've found both folders:
About the Script by @derekantricanThe script here by @derekantrican https://gist.github.com/derekantrican/4754609f5a5e53aecf3454bf08de17ea is actually doing exactly the safe manual steps above, just automated. It's read-only in dry-run mode (default), and only writes when you pass
If you want to try it, run it without |
|
and where does it store those chats in the intelij plugin? |
|
I did wrote a short script for restoring chat session that got lost in another workspace and you don't know which it was. https://gist.github.com/timosur/f1b75f639dc551b53b28b97080b52bb1 Hope that helps! |
|
I had a similar issue. Solved it by asking CoPilot to find my most recent chat history. CoPilot introduced me to /chronicles command which I used to search through my recent sessions. Finally I asked CoPilot to restore the chat history of the session I was interested in. |



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Select Topic Area
Where can I find GitHub Copilot Chat History ?
Body
Hello.
I have been chatting with Copilot a couple of times today and I was wondering how to retrieve the chat (including suggested code snippets) from before but when I open the Threads dropdown I only see a "New Thread" selection.
When looking for it myself I only found answers related to MS Copilot or to where to find logs (which do not include code suggestions (and the format is not helpful anyway).
Unfortunately I am not able to provide any extra information about this issue and I can't find a solution.
Where can I find a copy of all my previous chats?
Thank you.
All reactions