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: creating a new site pulls assistant messages from another site #259

Closed kozer closed 3 months ago

kozer commented 3 months ago

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

Proposed Changes

This PR fixes a bug where when the user creates a new site, it keeps old selected site messages in AI assistant

Testing Instructions

  1. Create a new site.
  2. Go to the assistant tab and ask some questions.
  3. While being on that tab, add a new site.
  4. Ensure that the chat is updated with being in an empty state.
  5. Changing back to the old site must still displays the chats.

Pre-merge Checklist