From ec9fba6cacb0e5b7334d16dac434ddd6f61a6f15 Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev Date: Thu, 19 Feb 2026 08:05:03 +0700 Subject: [PATCH] Increase agent cycle timeout default to 20 minutes --- Frontend/server/agent/langgraphCrmAgent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frontend/server/agent/langgraphCrmAgent.ts b/Frontend/server/agent/langgraphCrmAgent.ts index fb75d18..a81525a 100644 --- a/Frontend/server/agent/langgraphCrmAgent.ts +++ b/Frontend/server/agent/langgraphCrmAgent.ts @@ -866,7 +866,7 @@ export async function runLangGraphCrmAgentFor(input: { }); const maxCycles = Math.max(1, Math.min(Number(process.env.CF_AGENT_MAX_CYCLES ?? "3"), 8)); - const cycleTimeoutMs = Math.max(5000, Math.min(Number(process.env.CF_AGENT_CYCLE_TIMEOUT_MS ?? "45000"), 180000)); + const cycleTimeoutMs = Math.max(5000, Math.min(Number(process.env.CF_AGENT_CYCLE_TIMEOUT_MS ?? "1200000"), 1800000)); let consecutiveNoProgress = 0; let finalText = ""; const cycleNotes: string[] = [];