Skip to content

~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.

fix: followup improvements from PR #2618 review (#2626)

LearningCircuit99dca1b03b6d
diff --git a/src/local_deep_research/utilities/search_cache.py b/src/local_deep_research/utilities/search_cache.py
index 13ffd08be2..c69ab59adc 100644
--- a/src/local_deep_research/utilities/search_cache.py
+++ b/src/local_deep_research/utilities/search_cache.py
@@ -520,6 +520,7 @@ def _dispose_global_cache():
global _global_cache
if _global_cache is not None:
_global_cache.dispose()
+ _global_cache = None
atexit.register(_dispose_global_cache)
diff --git a/src/local_deep_research/web/queue/manager.py b/src/local_deep_research/web/queue/manager.py
index d09e17454b..f9ad6498c1 100644
--- a/src/local_deep_research/web/queue/manager.py
+++ b/src/local_deep_research/web/queue/manager.py
@@ -74,7 +74,7 @@ class QueueManager:
try:
queue_processor.notify_research_queued(username, research_id)
except Exception as e:
- logger.debug(f"Failed to notify queue processor: {e}")
+ logger.warning(f"Failed to notify queue processor: {e}")
return max_position + 1
diff --git a/src/local_deep_research/web/routes/settings_routes.py b/src/local_deep_research/web/routes/settings_routes.py
index 1c6628a6cb..e40fe2665e 100644
--- a/src/local_deep_research/web/routes/settings_routes.py
+++ b/src/local_deep_research/web/routes/settings_routes.py
@@ -618,6 +618,12 @@ def reset_to_defaults():
except Exception:
logger.exception("Error importing default settings")
+ return jsonify(
+ {
+ "status": "error",
+ "message": "Failed to reset settings to defaults",
+ }
+ ), 500
return jsonify(
{