feat: Improve model tools auto-selection and lifecycle management

This commit is contained in:
cogwheel0
2025-12-02 16:31:54 +05:30
parent e97a778f81
commit 1b22143aed
3 changed files with 17 additions and 0 deletions

View File

@@ -173,6 +173,9 @@ class AppStartupFlow extends _$AppStartupFlow {
keepAlive(appIntentCoordinatorProvider);
keepAlive(quickActionsCoordinatorProvider);
// Ensure model tools auto-selection is active throughout app lifecycle
keepAlive(defaultModelAutoSelectionProvider);
// Kick background model loading flow (non-blocking)
Future<void>.delayed(const Duration(milliseconds: 120), () {
if (!ref.mounted) return;