devchat-ai / devchat

Automate your dev tasks with AI-powered scripts, from your IDE's chat panel.
https://www.devchat.ai
Apache License 2.0
342 stars 39 forks source link

Chat command causes output disruption when sent multiple times to devchat #293

Closed yangbobo2021 closed 6 months ago

yangbobo2021 commented 6 months ago

When sending the chat command multiple times to devchat, it results in jumbled chat output. It's required to wait for one chat session to end before initiating another. This issue often occurs when triggering the command via the right-click context menu or through codelens buttons, indicating a need for a pre-execution check to determine if it's possible to send another chat command.

Steps to Reproduce

  1. Initiate a chat session using the chat command through the right-click menu or codelens button.
  2. Without waiting for the current session to end, initiate another chat session using the same method.
  3. Observe that the chat output becomes confused and unreadable.

Expected Behavior There should be a way to either queue the chat commands or prevent a new command from being sent until the current session has completed, ensuring that chat output remains coherent and understandable.

Possible Solution Implementing a check before each chat command execution to verify if another chat session is still active. If so, either queue the command or notify the user that they must wait for the current session to end before initiating a new one.