Open selected chats from search

Re-apply explicit chat routes after workspace restoration and repeated route notifications so search results and chat notifications open the requested session. Add regression coverage for route, registration, and workspace restore behavior.
This commit is contained in:
2026-11-13 15:58:16 +00:00
parent eeb07e5645
commit ec3c1e4c6a
8 changed files with 241 additions and 12 deletions
+7 -1
View File
@@ -248,7 +248,13 @@ class AppRouterDelegate extends RouterDelegate<AppRoute> with ChangeNotifier {
/// Records a user move; the Router turns the new configuration into a
/// history entry (or a replacement when it already matches the location).
void goTo(AppRoute route) {
if (route == _route) return;
// A repeated deep link is still an explicit request to show that route.
// The chat workspace may have changed independently while the URL stayed
// the same (for example, a different split pane became active).
if (route == _route) {
notifyListeners();
return;
}
_rememberParent(route);
_route = route;
notifyListeners();