From b313c9695596def2576aeb5c6dd1e229df105b7e Mon Sep 17 00:00:00 2001 From: Chaim Date: Wed, 6 May 2026 17:55:48 +0000 Subject: [PATCH] fix: increase curl timeout to 600s for long-running AI tasks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CURLOPT_TIMEOUT was 180s. Generating a consultation summary requires up to 10 AI iterations at ~20s each, regularly hitting the limit and causing a "שגיאה בתקשורת" error in the UI before Shira could respond. Raised to 600s. The shira-hermes agent runner now also enforces a 570s total budget so it returns a clean Hebrew message if the limit is hit, rather than the PHP connection being cut mid-response. Refs Task Master #2 Co-Authored-By: Claude Opus 4.6 (1M context) --- .../Modules/SmartAssistant/Services/SmartAssistantService.php | 2 +- manifest.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/custom/Espo/Modules/SmartAssistant/Services/SmartAssistantService.php b/files/custom/Espo/Modules/SmartAssistant/Services/SmartAssistantService.php index 5e96fbf..15318f4 100644 --- a/files/custom/Espo/Modules/SmartAssistant/Services/SmartAssistantService.php +++ b/files/custom/Espo/Modules/SmartAssistant/Services/SmartAssistantService.php @@ -518,7 +518,7 @@ class SmartAssistantService CURLOPT_POSTFIELDS => $payload, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => $headers, - CURLOPT_TIMEOUT => 180, + CURLOPT_TIMEOUT => 600, CURLOPT_CONNECTTIMEOUT => 10, ]); diff --git a/manifest.json b/manifest.json index 3621dbd..019717e 100644 --- a/manifest.json +++ b/manifest.json @@ -3,11 +3,11 @@ "module": "SmartAssistant", "description": "Unified AI Assistant for Legal CRM — floating chat with case memory, office alerts, and AI Gateway integration", "author": "klear", - "version": "2.8.0", + "version": "2.8.1", "acceptableVersions": [ ">=8.0.0" ], - "releaseDate": "2026-04-19", + "releaseDate": "2026-05-06", "php": [ ">=8.1" ]