From ce5032cef4e99d04b971782817a7f7e32875ac92 Mon Sep 17 00:00:00 2001 From: JOJO <1498581755@qq.com> Date: Thu, 1 Jan 2026 17:35:22 +0800 Subject: [PATCH] fix: keep scroll lock user-controlled during thinking --- static/src/composables/useLegacySocket.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/static/src/composables/useLegacySocket.ts b/static/src/composables/useLegacySocket.ts index 4839cb0..095af5e 100644 --- a/static/src/composables/useLegacySocket.ts +++ b/static/src/composables/useLegacySocket.ts @@ -835,7 +835,6 @@ export async function initializeLegacySocket(ctx: any) { streamingState.activeTextAction = null; ctx.stopRequested = false; ctx.streamingMessage = true; // 确保设置为流式状态 - ctx.chatEnableAutoScroll(); ctx.scrollToBottom(); }); @@ -853,8 +852,7 @@ export async function initializeLegacySocket(ctx: any) { if (result && result.blockId) { const blockId = result.blockId; ctx.chatExpandBlock(blockId); - // 开始思考时自动锁定滚动到底部 - ctx.chatEnableAutoScroll(); + // 开始思考时尝试滚动到底部,但不改变用户锁定选择 ctx.scrollToBottom(); ctx.chatSetThinkingLock(blockId, true); ctx.$forceUpdate();