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: Make get_setting_from_snapshot respect LDR_TESTING_WITH_MOCKS

LearningCircuit07828680e991
diff --git a/src/local_deep_research/config/thread_settings.py b/src/local_deep_research/config/thread_settings.py
index 62ec96c1f5..d01bb58f1a 100644
--- a/src/local_deep_research/config/thread_settings.py
+++ b/src/local_deep_research/config/thread_settings.py
@@ -72,7 +72,12 @@ def get_setting_from_snapshot(
return value
# In CI/test environment with fallback LLM, return default values
- if check_fallback_llm and os.environ.get("LDR_USE_FALLBACK_LLM", ""):
+ # But skip this if we're in test mode with mocks
+ if (
+ check_fallback_llm
+ and os.environ.get("LDR_USE_FALLBACK_LLM", "")
+ and not os.environ.get("LDR_TESTING_WITH_MOCKS", "")
+ ):
from loguru import logger
logger.debug(