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: web clips go through the ingest queue instead of direct autoIngest

nash_sue600a42bf542
diff --git a/src/lib/clip-watcher.ts b/src/lib/clip-watcher.ts
index eb007cfd..d644062c 100644
--- a/src/lib/clip-watcher.ts
+++ b/src/lib/clip-watcher.ts
@@ -1,5 +1,5 @@
import { useWikiStore } from "@/stores/wiki-store"
-import { autoIngest } from "./ingest"
+import { enqueueIngest } from "./ingest-queue"
import { listDirectory } from "@/commands/fs"
const POLL_INTERVAL = 3000 // Check every 3 seconds
@@ -35,11 +35,17 @@ export function startClipWatcher() {
// ignore
}
- // Auto-ingest the clipped file
+ // Enqueue (not auto-ingest directly) so the task lands in the
+ // persisted queue, shows up in the activity panel, and survives
+ // a UI refresh. Same path used by file imports from sources-view.
const llmConfig = store.llmConfig
- if (llmConfig.apiKey || llmConfig.provider === "ollama") {
- autoIngest(clipProjectPath, clipFilePath, llmConfig).catch((err) => {
- console.error("Failed to auto-ingest web clip:", err)
+ const hasLlm =
+ !!llmConfig.apiKey ||
+ llmConfig.provider === "ollama" ||
+ llmConfig.provider === "custom"
+ if (hasLlm) {
+ enqueueIngest(clipProjectPath, clipFilePath).catch((err) => {
+ console.error("Failed to enqueue web clip:", err)
})
}
}