~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 theme service robustness issues
LearningCircuitc980be5350a3
diff --git a/src/local_deep_research/web/static/js/services/theme.js b/src/local_deep_research/web/static/js/services/theme.jsindex ada1f507fa..deb98e9df0 100644--- a/src/local_deep_research/web/static/js/services/theme.js+++ b/src/local_deep_research/web/static/js/services/theme.js@@ -42,13 +42,16 @@// Try to get user ID from meta tag or data attributeconst userMeta = document.querySelector('meta[name="user-id"]');if (userMeta) {- return userMeta.getAttribute('content');+ const content = userMeta.getAttribute('content')?.trim();+ if (content) {+ return content;+ }}// Try to get from body data attributeconst body = document.body;- if (body && body.dataset.userId) {- return body.dataset.userId;+ if (body && body.dataset.userId?.trim()) {+ return body.dataset.userId.trim();}// Fallback for anonymous usersdiff --git a/src/local_deep_research/web/templates/base.html b/src/local_deep_research/web/templates/base.htmlindex d935717458..642a4d3ce7 100644--- a/src/local_deep_research/web/templates/base.html+++ b/src/local_deep_research/web/templates/base.html@@ -17,7 +17,7 @@// Store theme metadata for JavaScript (used by theme.js)window.LDR_THEME_METADATA = {{ get_theme_metadata()|safe }};- var userId = '{{ session.username|default("anonymous", true) }}';+ var userId = {{ session.username|default("anonymous", true)|tojson }};var storageKey = 'ldr-theme-' + userId;var theme = localStorage.getItem(storageKey) || 'system';// Validate theme