Files
open-design/apps
Nicholas-XiongandGitHub a6c01af2c2 fix: synchronously update URL when creating new conversation to prevent route-sync conflict (#2932)
When creating a new conversation, the route-sync effect could fight the
conversation switch if the URL was not updated synchronously. This caused
users to be unable to switch back to older conversations after creating
a new one.

The fix mirrors the approach already used in handleSelectConversation
(added in PR #1710): push the new conversation ID into the URL
synchronously so the route-sync effect sees a matching routeConversationId
before it can revert activeConversationId.

Without this synchronous URL update:
1. handleNewConversation sets activeConversationId to fresh.id
2. The URL-sync effect (L1336) eventually updates the URL
3. But the route-sync effect (L800-819) may see the stale routeConversationId
   and pull activeConversationId back to the old conversation
4. This prevents users from switching to other conversations

Fixes #2930
2026-05-26 06:13:32 +00:00
..
…