An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:iphone: ai
Vanessa6e4ecf348375
diff --git a/app/src/ai/actions.ts b/app/src/ai/actions.tsindex 8de2287c28..25aa433254 100644--- a/app/src/ai/actions.ts+++ b/app/src/ai/actions.ts@@ -270,6 +270,7 @@ export const AIActions = (elements: Element[], protyle: IProtyle) => {while (target && !target.isSameNode(element)) {if (target.classList.contains("b3-list-item__action")) {editDialog(target.previousElementSibling.textContent, target.parentElement.getAttribute("aria-label"));+ menu.close();event.stopPropagation();event.preventDefault();break;@@ -281,17 +282,20 @@ export const AIActions = (elements: Element[], protyle: IProtyle) => {fillContent(protyle, response.data, elements);});}+ menu.close();event.stopPropagation();event.preventDefault();break;}target = target.parentElement;}- menu.close();});}});menu.element.querySelector(".b3-menu__items").setAttribute("style", "overflow: initial");+ /// #if MOBILE+ menu.fullscreen();+ /// #elseconst rect = elements[elements.length - 1].getBoundingClientRect();menu.open({x: rect.left,@@ -299,4 +303,5 @@ export const AIActions = (elements: Element[], protyle: IProtyle) => {h: rect.height,});menu.element.querySelector("input").focus();+ /// #endif};