-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Losing chat history in empty windows #1309
Comments
Chats are per-workspace. Do you have previous chats in that workspace? |
In my opinion, non-workspace chat history needs a home, too. For example, I just opened a new VS Code window and began by talking with the copilot. I spent time writing up just what I wanted, and the response looked really good. I then created a new folder for the project, and of course, VSCode opened a new project window and closed my old one. But I didn't think that it would do that. So now I have a new project, but my history is completely gone, and I feel crushed that I have to find all the right words to get a good response again. |
I see that chats in empty windows don't get saved. @bpasero I use a workspace-scoped Memento from It probably gets a little weird when you open multiple empty windows, since they would be overwriting each others' state, but I'm ok with that. |
Yes in that case you would have to use global storage. For empty windows we invent a fake workspace identifier (which is actually derived from the backup path for "hot exit" in that window) and so as long as that window restores, that state comes back. But any new empty window will have a different workspace identifier that is only valid for as long as the window restores (e.g. because of unsaved files). |
Is there any way to hook into how it works for hot exit, so that having chats in that window would also cause it to use the same workspace identifier and get the chat data back? Or does that not make sense for chat? |
You should be able to get that ID via If you want to participate in hot exit in general, its more complex: you would have to start using working copies and participate in working copy lifecycle. We introduced working copies to have a way for notebooks and custom editors to have parity with text file models. I am not sure its a good fit though because our assumption is that a working copy can always be shown as editor and if its dirty, the dirty indication shows. |
Thanks. I should probably just keep these chats in global storage, and do my best to merge them between windows. |
This can't be perfect, but it should be good enough to avoid losing data in normal cases! |
Is it possible to find a file which contains history of a "chat without workspace"? I ahve just lost a couple of hours of hard work with unexpected history wipe exactly like described above- #1309 (comment) Version: 1.92.1 (user setup) |
Watch video of issue here:
Steps to Reproduce:
Image:
The text was updated successfully, but these errors were encountered: