diff --git a/lib/core/providers/app_providers.dart b/lib/core/providers/app_providers.dart index 198d7f2..064ad2e 100644 --- a/lib/core/providers/app_providers.dart +++ b/lib/core/providers/app_providers.dart @@ -706,7 +706,8 @@ class _ConversationsCacheTimestamp extends _$ConversationsCacheTimestamp { } // Conversation providers - Now using correct OpenWebUI API with caching -final conversationsProvider = FutureProvider>((ref) async { +@riverpod +Future> conversations(Ref ref) async { // Do not fetch protected data until authenticated. Use watch so we refetch // when the auth state transitions in either direction. final authed = ref.watch(isAuthenticatedProvider2); @@ -962,7 +963,7 @@ final conversationsProvider = FutureProvider>((ref) async { // Return empty list instead of re-throwing to allow app to continue functioning return []; } -}); +} final activeConversationProvider = NotifierProvider(