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: https://github.com/siyuan-note/siyuan/issues/18399
Vanessa187f5801362d
diff --git a/app/src/layout/dock/agent/AgentComposer.ts b/app/src/layout/dock/agent/AgentComposer.tsindex 12ad2a4c5e..ebb90c0234 100644--- a/app/src/layout/dock/agent/AgentComposer.ts+++ b/app/src/layout/dock/agent/AgentComposer.ts@@ -193,6 +193,9 @@ export function mountComposer(host: HTMLElement, onSend: () => void, onChange?:// capture 阶段拦截 hint 选择、Enter 发送、历史翻页;undo/redo 交给 protyle 的 keydown(调 LocalUndo)。wysiwyg.element.addEventListener("keydown", (event: KeyboardEvent) => {+ if (event.isComposing) {+ return;+ }// hint 面板可见时,Enter/方向键主动调 hint.select 完成选择,避免 capture 与冒泡的时序问题。const hintEl = p.hint?.element;if (hintEl && !hintEl.classList.contains("fn__none")) {