Skip to content

LLM Wiki is a cross-platform desktop application that turns your documents into an organized, interlinked knowledge base — automatically. Instead of traditional RAG (retrieve-and-answer from scratch every time), the LLM incrementally builds and maintains a persistent wiki from your sources。

TypeScript

fix: reset scheduled import path on project switch

skfan135f4becc868473
diff --git a/src/App.tsx b/src/App.tsx
index 0713d6db..552f0815 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -369,6 +369,13 @@ function App() {
stopScheduledImport()
}).catch(() => {})
+ // Reset scheduled import path to default when switching projects
+ const currentConfig = useWikiStore.getState().scheduledImportConfig
+ useWikiStore.getState().setScheduledImportConfig({
+ ...currentConfig,
+ path: "raw",
+ })
+
// Clear all per-project state BEFORE flipping back to the welcome screen
// so old data cannot leak in via any async render pass.
const { resetProjectState } = await import("@/lib/reset-project-state")