From fa92b4157e033c0e7ca2a5df94e999cec2f7337f Mon Sep 17 00:00:00 2001 From: ekko <152005280+EKKOLearnAI@users.noreply.github.com> Date: Sat, 20 Jun 2026 10:18:04 +0800 Subject: [PATCH] [codex] increase goal evaluate timeout (#1686) * fix(goal): increase goal evaluate timeout from 5s to 120s 5s timeout from #1580 is too aggressive for users with remote/slow LLM services. Goal judge calls silently fail causing goal continuation to never enqueue, leaving the goal stuck at 1 turn. Align with auxiliary.goal_judge.timeout default (120s) in config.yaml. * docs: note goal evaluate timeout change --------- Co-authored-by: WenhuaXia --- .../2026-06-20-pr1686-goal-evaluate-timeout.md | 6 ++++++ .../src/services/hermes/run-chat/handle-bridge-run.ts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 docs/chat-chain-changes/2026-06-20-pr1686-goal-evaluate-timeout.md diff --git a/docs/chat-chain-changes/2026-06-20-pr1686-goal-evaluate-timeout.md b/docs/chat-chain-changes/2026-06-20-pr1686-goal-evaluate-timeout.md new file mode 100644 index 00000000..df47f527 --- /dev/null +++ b/docs/chat-chain-changes/2026-06-20-pr1686-goal-evaluate-timeout.md @@ -0,0 +1,6 @@ +--- +date: 2026-06-20 +pr: 1686 +feature: Goal auto-continuation evaluation timeout +impact: Goal judge evaluation now waits up to 120 seconds instead of 5 seconds, preventing slow remote LLM services from timing out before continuation can be queued. +--- diff --git a/packages/server/src/services/hermes/run-chat/handle-bridge-run.ts b/packages/server/src/services/hermes/run-chat/handle-bridge-run.ts index 63a2247e..a87ce000 100644 --- a/packages/server/src/services/hermes/run-chat/handle-bridge-run.ts +++ b/packages/server/src/services/hermes/run-chat/handle-bridge-run.ts @@ -37,7 +37,7 @@ import type { AuthenticatedUser } from '../../../middleware/user-auth' const BRIDGE_USAGE_FLUSH_DELAY_MS = 200 const BRIDGE_TITLE_EVENT_POLL_INTERVAL_MS = 500 const BRIDGE_TITLE_EVENT_POLL_TIMEOUT_MS = 45_000 -const BRIDGE_GOAL_EVALUATE_TIMEOUT_MS = 5_000 +const BRIDGE_GOAL_EVALUATE_TIMEOUT_MS = 120_000 function stringValue(value: unknown): string { return typeof value === 'string' ? value.trim() : ''