Skip to content

Commit 6dc0078

Browse files
authored
fix(chat): increase agent silence timeout from 2 to 10 minutes (tinyhumansai#719)
The frontend silence timer was cutting off long-running agent tasks after 120s of no inference progress signals. Increased to 600s so extended thinking and multi-step tasks can complete without being force-aborted. Manual cancel remains the primary stop mechanism. Closes tinyhumansai#715
1 parent 7231335 commit 6dc0078

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

app/src/pages/Conversations.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -536,18 +536,18 @@ const Conversations = ({ variant = 'page' }: ConversationsProps = {}) => {
536536
if (sendingTimeoutRef.current) clearTimeout(sendingTimeoutRef.current);
537537
sendingThreadIdRef.current = threadId;
538538
sendingTimeoutRef.current = setTimeout(() => {
539-
console.warn('[chat] silence timeout: no inference signal for 120s');
539+
console.warn('[chat] silence timeout: no inference signal for 600s');
540540
setSendError(
541541
chatSendError(
542542
'safety_timeout',
543-
'No response from the assistant after 2 minutes. Try again or check your connection.'
543+
'No response from the assistant after 10 minutes. Try again or check your connection.'
544544
)
545545
);
546546
dispatch(clearRuntimeForThread({ threadId }));
547547
dispatch(setActiveThread(null));
548548
sendingTimeoutRef.current = null;
549549
sendingThreadIdRef.current = null;
550-
}, 120_000);
550+
}, 600_000);
551551
};
552552

553553
// Rearm the silence timer on every inference status change for the
@@ -715,7 +715,7 @@ const Conversations = ({ variant = 'page' }: ConversationsProps = {}) => {
715715
}
716716
setInputValue('');
717717
setSendError(null);
718-
// Silence timer: fires only if 120s pass without ANY inference progress
718+
// Silence timer: fires only if 600s pass without ANY inference progress
719719
// (tool call, tool result, iteration start, subagent event, text delta).
720720
// The effect below rearms this timer whenever `inferenceStatusByThread`
721721
// changes for `sendingThreadId`, so long-running agent turns stay alive

0 commit comments

Comments
 (0)