fix: 在appendAssistantPlaceholder前再次enableAutoScroll,防止renderMessages的DOM事件重置滚动状态

This commit is contained in:
thzxx
2026-06-12 15:07:35 +08:00
parent 8b50ae323f
commit cf52568947
+1
View File
@@ -880,6 +880,7 @@ async function sendMessageWithAgentLoop(text: string, currentSession: ChatSessio
clearToolCardsExternal(); clearToolCardsExternal();
clearTerminalExternal(); clearTerminalExternal();
enableAutoScroll(); // renderMessages 的 DOM 操作可能触发 scroll 事件导致 autoScroll=false
appendAssistantPlaceholder(); appendAssistantPlaceholder();
state.set(KEYS.IS_STREAMING, true); state.set(KEYS.IS_STREAMING, true);
updateSendButton(true); updateSendButton(true);