An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: fix https://github.com/siyuan-note/siyuan/issues/5018
Vanessa99151601a52c
diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.tsindex 0734acd718..d248684860 100644--- a/app/src/protyle/util/onGet.ts+++ b/app/src/protyle/util/onGet.ts@@ -117,7 +117,6 @@ const setHTML = (options: { content: string, action?: string[] }, protyle: IProtif (protyle.options.render.scroll) {protyle.scroll.update(protyle.block.blockCount, protyle);}-if (options.action.includes(Constants.CB_GET_HL)) {preventScroll(protyle); // 搜索页签滚动会导致再次请求const hlElement = highlightById(protyle, protyle.block.id, true);@@ -179,6 +178,19 @@ const setHTML = (options: { content: string, action?: string[] }, protyle: IProtif (protyle.element.classList.contains("block__edit") && (protyle.element.nextElementSibling || protyle.element.previousElementSibling)) {protyle.element.style.minHeight = Math.min(30 + protyle.wysiwyg.element.clientHeight - 16, window.innerHeight / 3) + "px";}+ // https://github.com/siyuan-note/siyuan/issues/5018+ if (!protyle.scroll.element.classList.contains("fn__none") &&+ protyle.wysiwyg.element.lastElementChild.getAttribute("data-eof") !== "true" &&+ protyle.wysiwyg.element.clientHeight < protyle.contentElement.clientHeight) {+ fetchPost("/api/filetree/getDoc", {+ id: protyle.wysiwyg.element.lastElementChild.getAttribute("data-node-id"),+ mode: 2,+ k: protyle.options.key || "",+ size: Constants.SIZE_GET,+ }, getResponse => {+ onGet(getResponse, protyle, [Constants.CB_GET_APPEND, Constants.CB_GET_UNCHANGEID]);+ });+ }if (options.action.includes(Constants.CB_GET_APPEND) || options.action.includes(Constants.CB_GET_BEFORE)) {return;}