Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/15821

Vanessafd83286438a5
diff --git a/app/src/layout/util.ts b/app/src/layout/util.ts
index 4d9c50ca41..f2c1ca8787 100644
--- a/app/src/layout/util.ts
+++ b/app/src/layout/util.ts
@@ -750,7 +750,7 @@ export const newModelByInitData = (app: App, tab: Tab, json: any) => {
rootId: json.rootId,
blockId: json.blockId,
mode: json.mode,
- action: typeof json.action === "string" ? [json.action] : json.action,
+ action: typeof json.action === "string" ? [json.action, Constants.CB_GET_FOCUS] : json.action.concat(Constants.CB_GET_FOCUS),
});
}
return model;