An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:sparkles: AI Agent https://github.com/siyuan-note/siyuan/issues/17797
Daniel5e79f936c996
diff --git a/app/src/assets/scss/business/_agentChat.scss b/app/src/assets/scss/business/_agentChat.scssindex 17e69838d8..8140d59761 100644--- a/app/src/assets/scss/business/_agentChat.scss+++ b/app/src/assets/scss/business/_agentChat.scss@@ -608,6 +608,12 @@flex: 1;min-height: 0;}++ .b3-menu__label {+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+ }}.agent-session-popup__search {diff --git a/kernel/agent/agent.go b/kernel/agent/agent.goindex 1cac98c2fd..5eb02ce53f 100644--- a/kernel/agent/agent.go+++ b/kernel/agent/agent.go@@ -31,6 +31,7 @@ import ("time""github.com/88250/gulu"+ "github.com/siyuan-note/logging""github.com/sashabaranov/go-openai""github.com/siyuan-note/filelock"@@ -217,6 +218,7 @@ func AgentChat(ctx context.Context, client *openai.Client, model string, sessiondefer close(ch)defer func() {if r := recover(); r != nil {+ logging.LogErrorf("agent chat panic: %v\n%s", r, logging.ShortStack())sendEvent(ch, AgentEvent{Type: "error", Error: fmt.Sprintf("internal error: %v", r)})}}()