diff --git a/frontend/src/pages/console/user/task/task-detail.tsx b/frontend/src/pages/console/user/task/task-detail.tsx index 4692618f..c8d73679 100644 --- a/frontend/src/pages/console/user/task/task-detail.tsx +++ b/frontend/src/pages/console/user/task/task-detail.tsx @@ -852,7 +852,9 @@ export default function TaskDetailPage() { if (previousLiveEndedCycleIdRef.current === latestCompletedLiveCycleId) return previousLiveEndedCycleIdRef.current = latestCompletedLiveCycleId - scheduleChatScrollToBottom("smooth", { forceAutoScroll: true }) + if (!shouldAutoScrollChatRef.current) return + + scheduleChatScrollToBottom("smooth") }, [latestCompletedLiveCycleId, scheduleChatScrollToBottom]) React.useEffect(() => { @@ -862,7 +864,7 @@ export default function TaskDetailPage() { previousRunningMessagesSignatureRef.current = runningMessagesSignature if (!shouldAutoScrollChatRef.current) return - scheduleChatScrollToBottom("smooth") + scheduleChatScrollToBottom("auto") }, [historyLoading, runningMessagesSignature, scheduleChatScrollToBottom]) const detailHeader = (