~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
fix(pdf): prevent duplicate Add PDFs button and add multi-device snapshots
LearningCircuitda7338b847b1
diff --git a/src/local_deep_research/web/static/js/pdf_upload_handler.js b/src/local_deep_research/web/static/js/pdf_upload_handler.jsindex 123840b99c..bfbee68079 100644--- a/src/local_deep_research/web/static/js/pdf_upload_handler.js+++ b/src/local_deep_research/web/static/js/pdf_upload_handler.js@@ -113,6 +113,11 @@ class PDFUploadHandler {* Setup a hidden file input as fallback*/setupFileInput() {+ // Prevent duplicate buttons if init() runs more than once+ if (document.getElementById('pdf-upload-btn')) {+ return;+ }+// Create file input buttonconst fileInput = document.createElement('input');fileInput.type = 'file';@@ -573,12 +578,12 @@ function initializePDFUploadHandler() {// Try to initialize immediatelywindow.pdfUploadHandler = new PDFUploadHandler();- // If textarea not found, try again after delay+ // If textarea not found (async init still pending), try re-init on existing instanceif (!window.pdfUploadHandler.queryTextarea) {- SafeLogger.log('PDF Upload Handler: Textarea not found, retrying...');+ SafeLogger.log('PDF Upload Handler: Textarea not found, retrying on existing instance...');setTimeout(() => {SafeLogger.log('PDF Upload Handler: Retrying initialization...');- window.pdfUploadHandler = new PDFUploadHandler();+ window.pdfUploadHandler.init();}, 500);}}