fix: 在appendAssistantPlaceholder前再次enableAutoScroll,防止renderMessages的DOM事件重置滚动状态
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user