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.

feat(setup): require explicit click to download first model

Akarshan Biswas9d4046333e77
diff --git a/web-app/src/containers/SetupScreen.tsx b/web-app/src/containers/SetupScreen.tsx
index 06894ec16..3d7780a32 100644
--- a/web-app/src/containers/SetupScreen.tsx
+++ b/web-app/src/containers/SetupScreen.tsx
@@ -291,15 +291,6 @@ function SetupScreen() {
huggingfaceToken,
])
- // Auto-start download when screen is shown
- const hasAutoStarted = useRef(false)
- useEffect(() => {
- if (hasAutoStarted.current || isDownloaded) return
- hasAutoStarted.current = true
- handleQuickStart()
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, [])
-
// Use ref to track if we've already navigated
const hasNavigatedRef = useRef(false)