lib/screens/chat_screen.dart
.. .. @@ -78,6 +78,8 @@ 78 78 final savedSessionId = prefs.getString('activeSessionId'); 79 79 if (savedSessionId != null && mounted) { 80 80 ref.read(activeSessionIdProvider.notifier).state = savedSessionId; 81 + // Load messages for the restored session so chat isn't empty on startup82 + await ref.read(messagesProvider.notifier).switchSession(savedSessionId);81 83 } 82 84 if (!mounted) return; 83 85