Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
fix(llamacpp): skip startup backend update check when auto-update is off
Akarshanda968e8c65fc
diff --git a/web-app/src/containers/dialogs/BackendUpdater.tsx b/web-app/src/containers/dialogs/BackendUpdater.tsxindex 60c437d21..c57e72abf 100644--- a/web-app/src/containers/dialogs/BackendUpdater.tsx+++ b/web-app/src/containers/dialogs/BackendUpdater.tsx@@ -28,10 +28,13 @@ const BackendUpdater = () => {}}- // Check when the shell mounts or when the llamacpp provider is toggled on/off+ // Check when the shell mounts or when the llamacpp provider is toggled on/off.+ // Skipped when auto-update is disabled — users opt into checks via the manual+ // "Check for Updates" button in provider settings.useEffect(() => {+ if (!updateState.autoUpdateEnabled) returncheckForUpdate()- }, [checkForUpdate, isLlamacppEnabled])+ }, [checkForUpdate, isLlamacppEnabled, updateState.autoUpdateEnabled])const [backendUpdateState, setBackendUpdateState] = useState({remindMeLater: false,