From 4f4e43c9534dccf2cb10c8a59b2e3a0e616c5b84 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Tue, 25 Aug 2026 01:56:30 +0300 Subject: [PATCH] Allow cold local cognition to finish --- cmd/core-runtime/main.go | 2 +- cmd/creator-web/main.go | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/core-runtime/main.go b/cmd/core-runtime/main.go index f45921e..af51fd5 100644 --- a/cmd/core-runtime/main.go +++ b/cmd/core-runtime/main.go @@ -115,7 +115,7 @@ func main() { if err != nil { log.Fatal(err) } - cognitiveClient, err := newCognitiveInterpretationClient(envOr("COGNITIVE_RUNTIME_URL", "http://cognitive-worker:8083"), &http.Client{Timeout: 20 * time.Second}) + cognitiveClient, err := newCognitiveInterpretationClient(envOr("COGNITIVE_RUNTIME_URL", "http://cognitive-worker:8083"), &http.Client{Timeout: 90 * time.Second}) if err != nil { log.Fatal(err) } diff --git a/cmd/creator-web/main.go b/cmd/creator-web/main.go index b19c99b..5cc14a6 100644 --- a/cmd/creator-web/main.go +++ b/cmd/creator-web/main.go @@ -17,7 +17,10 @@ func main() { // local cognition. Keep the browser gateway alive long enough to return // the completed response instead of converting a successful core 201 // into a misleading 502. - &http.Client{Timeout: 30 * time.Second}, + // A cold local model may need more than one short HTTP round-trip to + // load on CPU. Keep the browser gateway aligned with the cognition + // deadline instead of turning that wait into a false unavailable reply. + &http.Client{Timeout: 90 * time.Second}, envOr("COGNITIVE_RUNTIME_URL", "http://cognitive-worker:8083"), envOr("AGENT_WORKER_URL", "http://agent-worker:8090"), ) -- 2.54.0