fix: avoid auto re-locking scroll after tasks

This commit is contained in:
JOJO 2026-01-01 17:37:55 +08:00
parent ce5032cef4
commit 8ead6ebc08
2 changed files with 3 additions and 6 deletions

View File

@ -1228,9 +1228,6 @@ const appOptions = {
}
});
// 重置滚动状态
this.chatEnableAutoScroll();
// 清理Markdown缓存
if (this.markdownCache) {
this.markdownCache.clear();
@ -2219,8 +2216,9 @@ const appOptions = {
this.inputClearMessage();
this.inputSetLineCount(1);
this.inputSetMultiline(false);
this.chatEnableAutoScroll();
this.scrollToBottom();
if (this.autoScrollEnabled) {
this.scrollToBottom();
}
this.autoResizeInput();
// 发送消息后延迟更新当前上下文Token关键修复恢复原逻辑

View File

@ -329,7 +329,6 @@ export const useChatStore = defineStore('chat', {
this.currentMessageIndex = -1;
this.streamingMessage = false;
this.clearExpandedBlocks();
this.enableAutoScroll();
this.clearThinkingLocks();
}
}