From 9e06ae526157f53d4e2b2abdcf2cc7b13d74790b Mon Sep 17 00:00:00 2001 From: chaitin Date: Sun, 3 May 2026 06:53:00 +0000 Subject: [PATCH] fix: respect manual chat scroll position Co-authored-by: monkeycode-ai --- frontend/src/pages/console/user/task/task-detail.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 = (