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(strategy): increase LangGraph subagent timeouts to prevent premature termination (#3625)

LearningCircuitc66feab3fe5d
diff --git a/src/local_deep_research/advanced_search_system/strategies/langgraph_agent_strategy.py b/src/local_deep_research/advanced_search_system/strategies/langgraph_agent_strategy.py
index 65960afae5..a5d69a0f66 100644
--- a/src/local_deep_research/advanced_search_system/strategies/langgraph_agent_strategy.py
+++ b/src/local_deep_research/advanced_search_system/strategies/langgraph_agent_strategy.py
@@ -34,7 +34,7 @@ DEFAULT_MAX_ITERATIONS = (
50 # agent needs many more cycles than pipeline strategies
)
MIN_ITERATIONS = 10 # below this the agent can barely do anything useful
-SUBAGENT_TIMEOUT_SECONDS = 300 # 5 minutes per subagent
+SUBAGENT_TIMEOUT_SECONDS = 1800 # 30 minutes per subagent
MAX_SUBTOPICS = 8
MAX_SUBAGENT_WORKERS = 4
CONTENT_FETCH_TIMEOUT = 30
@@ -346,7 +346,9 @@ def _make_research_subtopic_tool(
):
topic = futures[future]
try:
- ordered_results[topic] = future.result(timeout=30)
+ ordered_results[topic] = future.result(
+ timeout=SUBAGENT_TIMEOUT_SECONDS
+ )
except TimeoutError:
logger.warning(f"Subagent timed out for: {topic[:80]}")
ordered_results[topic] = (