Chats are neither project-specific nor synced across all projects
What happened?
Either:
- Chats should be project-specific, or
- If chats are shared, they should be kept in sync across all open projects.
Relevant log output or stack trace
Steps to reproduce
- Open two different projects in PyCharm.
- In Project A, open the ProxyAI tool window and start a new chat.
- In Project B, open the ProxyAI tool window.
- ✅ The same chat from Project A appears.
- In Project B, add a new message to the chat and wait for a response.
- Switch back to Project A.
- ❌ The message and response added in Project B are not visible in Project A.
CodeGPT version
3.2.2-241.1
Operating System
Windows
Workaround: When the chat is out of sync, close it, then open the chat history and reopen the same chat. The reopened chat will be in sync.
Hmm, I think this is also a question for the users in general.
How would you like it to behave? Would you rather have chats per project or shared across the application?
Currently, the state is shared across all projects which are using the same IDE, and the updates to the UI are not reactive. I'm not sure if it's even possible to listen to some application level config change callbacks. I need to investigate, but it's highly likely it's possible.
I vote to have one global set of chats and the ability to name them.
This is good both when you want to ask a follow-up, but you inadvertently changed IDE window, and when you want project specific chats, by simply clicking on the desired chat tab.
If I remember correctly, the AI Assistant has project specific chats, and sometimes I had to open multiple projects looking for a specific chat. It wasn't fun. (Plus it was impossible to search in chats or across chats.)
The syncing can happen when the IDE gets the focus, just like it happens with syncing the local changes in the git panel (or any other file).