There is a critical context synchronization issue when a user has multiple projects open simultaneously. The AI assistant receives mismatched context metadata, where the assigned workspace (user_information) remains locked to one project, but the Active Document context leaks from another concurrently open project.
Steps to Reproduce:
-
Open Project A in the IDE and interact with the AI assistant (this locks the
user_informationworkspace to Project A). -
Open Project B in a separate IDE window.
-
Switch focus to Project B, open a file, and make it the
Active Document. -
Send a prompt to the AI assistant from Project B.
Expected Behavior: Both the assigned workspace and the Active Document passed to the AI assistant should correspond to the currently focused project (Project B).
Actual Behavior: The AI assistant receives conflicting context metadata:
-
The system’s assigned workspace (
user_information) is still stuck on Project A. -
The
Active Documentmetadata is captured from Project B.
Impact: This context mismatch causes extreme confusion for the AI assistant. If the AI relies on the Active Document to determine the working directory, it may incorrectly apply code modifications intended for Project A into Project B’s files (or vice versa), leading to severe cross-project code corruption and unintended file modifications outside the designated workspace.