An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: fix https://github.com/siyuan-note/siyuan/issues/12197
Vanessad15865975f1d
diff --git a/app/src/constants.ts b/app/src/constants.tsindex 6d20224688..4d60547ccd 100644--- a/app/src/constants.ts+++ b/app/src/constants.ts@@ -94,7 +94,7 @@ export abstract class Constants {public static readonly CB_GET_ROOTSCROLL = "cb-get-rootscroll"; // 如果为 rootID 就滚动到指定位置,必有 rootIDpublic static readonly CB_GET_HTML = "cb-get-html"; // 直接渲染,不需要再 /api/block/getDocInfo,否则搜索表格无法定位public static readonly CB_GET_HISTORY = "cb-get-history"; // 历史渲染- public static readonly CB_GET_OPENNEW = "cb-get-opennew"; // 编辑器只读后新建文件需为临时解锁状态+ public static readonly CB_GET_OPENNEW = "cb-get-opennew"; // 编辑器只读后新建文件需为临时解锁状态 & https://github.com/siyuan-note/siyuan/issues/12197// localstoragepublic static readonly LOCAL_ZOOM = "local-zoom";diff --git a/app/src/protyle/index.ts b/app/src/protyle/index.tsindex 8932678b71..81b455a653 100644--- a/app/src/protyle/index.ts+++ b/app/src/protyle/index.ts@@ -282,7 +282,7 @@ export class Protyle {private afterOnGet(mergedOptions: IOptions) {if (this.protyle.model) {/// #if !MOBILE- if (mergedOptions.action?.includes(Constants.CB_GET_FOCUS)) {+ if (mergedOptions.action?.includes(Constants.CB_GET_FOCUS) || mergedOptions.action?.includes(Constants.CB_GET_OPENNEW)) {setPanelFocus(this.protyle.model.element.parentElement.parentElement);}updatePanelByEditor({