Skip to content

fix: bubble cloud project to top on new chat#671

Merged
Mng-dev-ai merged 1 commit into
mainfrom
fix/refresh-cloud-workspaces-on-new-chat
Jun 24, 2026
Merged

fix: bubble cloud project to top on new chat#671
Mng-dev-ai merged 1 commit into
mainfrom
fix/refresh-cloud-workspaces-on-new-chat

Conversation

@Mng-dev-ai

Copy link
Copy Markdown
Owner

Summary

  • When a new cloud-owned chat is created from the landing page, invalidate the cloud workspaces query in addition to the cloud chats query.
  • This re-sorts the project to the top of the Cloud list by last_chat_at, mirroring how the local create mutation already invalidates workspaces.
  • Both invalidations now run in parallel via Promise.all, with a single error handler.

Test plan

  • Create a new chat that routes to the cloud/VPS from the landing page
  • Confirm the project bubbles to the top of the Cloud workspaces list immediately
  • Confirm the new chat still appears in the Cloud chats list

Invalidate the cloud workspaces query alongside cloud chats when a new
cloud-owned chat is created, so the project re-sorts to the top by
last_chat_at — mirroring the local create mutation.
@Mng-dev-ai Mng-dev-ai marked this pull request as ready for review June 24, 2026 23:00
@Mng-dev-ai Mng-dev-ai merged commit 1d9b8ca into main Jun 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant