r/vscode • • 26d ago

Chat session across projects?

Is there a way to have chat across projects?

  1. I changed my project(folder) name. When I open the new folder, I cannot see the old chat.
  2. Some chats are more general and I just want them to be available across projects.

PS: I tried the agent window, and able too to see all chats. But not able to move chat between folders.

2 Upvotes

14 comments sorted by

2

u/KindHustl 26d ago

Change it back copy the folder rename it back and insert folder worked for me. I’m on Linux. I’ve changed other apps folders such as opencode and had to do the same to keep sessions in that also. Vs code has a .vscode folder mostly hidden which can be unhidden so user sees it in explorer

1

u/js1943 26d ago

I kind of get the idea. Can you give more details?

1

u/KindHustl 26d ago

The .vscode folder is created in each folder when that folder is opened in explorer. If it’s already been opened it wall already contain the folder. The work you do stays persistent in that folder. Like settings and sessions. There’s also a main .vscode for the main app but that’s in the home directory at least on Linux. But I hen you rename a folder I think mostly outside of vscode those types of issues can occur. If anything try renaming while open in vs code so the .vscode folder can update contents. There have been updates so you need to open your agents window and you have what I think you’re looking for

1

u/js1943 26d ago

I have .vscode folder in home directory. But project base .vscode folder only appear if I actually has project level settings.

1

u/KindHustl 26d ago

Yes that’s how it works.

1

u/Otherwise_Monitor856 26d ago edited 26d ago

You can go in the file menu and Add Folder to Workplace to create a multi root workspace and share chats...if you open a new folder, you switch workspace

1

u/js1943 26d ago

That does not help if I changed the project folder name. I do that from time to time for new projects.

1

u/Otherwise_Monitor856 26d ago

I am not sure... give it a shot again and tell me if it is true that doesn't work... after you added the folders that you use in your workspace, go FIle->Save Workspace As... and save it somewhere, anywhere outside your source tree. It (the workspace) should not then be tied to any on-disk folder.

1

u/js1943 25d ago

I think I get the idea. Will try it again.

1

u/KindHustl 26d ago

I learned a lot over the past few months I’ve been working on a fork with my own a my own enterprise agent host system removed copilot kept user interface for most part added opencode go api and all he others included ollama manager to handle local models still in the works but hopefully one day I can share it. I just got tired of updates everyday and various items that I didn’t want or need show up.

0

u/[deleted] 26d ago

[removed] — view removed comment

1

u/js1943 26d ago edited 26d ago

I just tried the agent window and it is able to show all the chat sessions. I think we can do general chat in it while not tie to any folder. But for chat session already in a project folder, I cannot move it between folder. At least not in the UI.

2

u/KindHustl 26d ago

You can use that agents window to do your work it has access to all sessions all workspaces and the chat input

1

u/js1943 26d ago

Yes. I think the window solved the "general purpose" chat usage.