From 141d74a814b74362413a7864bf96db960f3143ff Mon Sep 17 00:00:00 2001 From: Aniket Tuli Date: Fri, 12 Jun 2026 03:03:45 -0700 Subject: [PATCH] fix(plugins): refresh local repositories when preserving them on empty remote The preserve-local branch previously returned before scheduling any repository refreshes, leaving local repositories stale for the whole session on cold start. They now refresh (without pushing) before the early return, matching the non-empty-remote path. Co-Authored-By: Claude Fable 5 --- .../kotlin/com/nuvio/app/features/plugins/PluginRepository.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/composeApp/src/fullCommonMain/kotlin/com/nuvio/app/features/plugins/PluginRepository.kt b/composeApp/src/fullCommonMain/kotlin/com/nuvio/app/features/plugins/PluginRepository.kt index e3a67b8fc..99724f599 100644 --- a/composeApp/src/fullCommonMain/kotlin/com/nuvio/app/features/plugins/PluginRepository.kt +++ b/composeApp/src/fullCommonMain/kotlin/com/nuvio/app/features/plugins/PluginRepository.kt @@ -116,6 +116,9 @@ actual object PluginRepository { if (shouldPreserveLocalPluginRepositories(urls, _uiState.value.repositories)) { log.w { "pullFromServer — remote empty while local has repositories; preserving local" } + _uiState.value.repositories.forEach { repo -> + refreshRepository(repo.manifestUrl, pushAfterRefresh = false) + } initialized = true return }