Automattic / studio

Studio by WordPress.com, a free desktop app that helps developers streamline their local WordPress development workflow.
https://developer.wordpress.com/studio/
GNU General Public License v2.0
172 stars 17 forks source link

Studio: AssistantIsThinking triggrers across multiple sites #260

Closed kozer closed 3 months ago

kozer commented 3 months ago

Fixes https://github.com/Automattic/dotcom-forge/issues/7767

Proposed Changes

This PR fixes a bug where when the chat "is thinking" , the loading indicator persists across multiple sites.

Testing Instructions

  1. Create two sites.
  2. Navigate to Studio AI Assistant tab, of the first one.
  3. Submit a prompt to the model; eg: "Give me a 3 paragraph text" ( in order to make the response to slow down and make easier to notice )
  4. You should be able to see the "thinking" indicator.
  5. Switch to another site.
  6. Ensure that the indicator is not there.
  7. Now switch to the first one.
  8. Ensure that you still see the indicator..

Pre-merge Checklist