From 0af30b94053552c8975f831ab1837acaa1629f47 Mon Sep 17 00:00:00 2001 From: Dev M Date: Sun, 6 Sep 2026 02:18:41 +0000 Subject: [PATCH] Fix useRealLLM() call site after live-mode gate One branch still treated the helper as a boolean constant. --- src/lib/agent/agents.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/agent/agents.ts b/src/lib/agent/agents.ts index 30e798b..1a0f6e8 100644 --- a/src/lib/agent/agents.ts +++ b/src/lib/agent/agents.ts @@ -170,7 +170,7 @@ async function runResearcher(state: ResearchState, ctx: SynthesisContext, sq: Su let collected: EvidenceItem[] = []; - if (useRealLLM && top.length > 0) { + if (useRealLLM() && top.length > 0) { try { const messages: ChatMessage[] = [ {