fix: avoid auto re-locking scroll after tasks
This commit is contained in:
parent
ce5032cef4
commit
8ead6ebc08
@ -1228,9 +1228,6 @@ const appOptions = {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// 重置滚动状态
|
|
||||||
this.chatEnableAutoScroll();
|
|
||||||
|
|
||||||
// 清理Markdown缓存
|
// 清理Markdown缓存
|
||||||
if (this.markdownCache) {
|
if (this.markdownCache) {
|
||||||
this.markdownCache.clear();
|
this.markdownCache.clear();
|
||||||
@ -2219,8 +2216,9 @@ const appOptions = {
|
|||||||
this.inputClearMessage();
|
this.inputClearMessage();
|
||||||
this.inputSetLineCount(1);
|
this.inputSetLineCount(1);
|
||||||
this.inputSetMultiline(false);
|
this.inputSetMultiline(false);
|
||||||
this.chatEnableAutoScroll();
|
if (this.autoScrollEnabled) {
|
||||||
this.scrollToBottom();
|
this.scrollToBottom();
|
||||||
|
}
|
||||||
this.autoResizeInput();
|
this.autoResizeInput();
|
||||||
|
|
||||||
// 发送消息后延迟更新当前上下文Token(关键修复:恢复原逻辑)
|
// 发送消息后延迟更新当前上下文Token(关键修复:恢复原逻辑)
|
||||||
|
|||||||
@ -329,7 +329,6 @@ export const useChatStore = defineStore('chat', {
|
|||||||
this.currentMessageIndex = -1;
|
this.currentMessageIndex = -1;
|
||||||
this.streamingMessage = false;
|
this.streamingMessage = false;
|
||||||
this.clearExpandedBlocks();
|
this.clearExpandedBlocks();
|
||||||
this.enableAutoScroll();
|
|
||||||
this.clearThinkingLocks();
|
this.clearThinkingLocks();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user