Skip to content

armgit / jan

Public Imported from GitHub
0

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.tsx
index 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) return
checkForUpdate()
- }, [checkForUpdate, isLlamacppEnabled])
+ }, [checkForUpdate, isLlamacppEnabled, updateState.autoUpdateEnabled])
const [backendUpdateState, setBackendUpdateState] = useState({
remindMeLater: false,