Skip to content

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

Merge remote-tracking branch 'origin/dev' into dev

Vanessa5f53538c4f02
diff --cc app/src/layout/dock/agent/SessionStore.ts
index d4a1b9256a,c6d5da4265..b49d2c8663
--- a/app/src/layout/dock/agent/SessionStore.ts
+++ b/app/src/layout/dock/agent/SessionStore.ts
@@@ -53,7 -53,7 +53,8 @@@ export interface AgentSession
id?: string;
type: "user" | "thinking" | "assistant" | "confirm" | "question" | "snapshot" | "rollback";
content?: string;
+ blockHTML?: string;
+ references?: Array<{id: string; title: string}>;
// thinking step:新格式只含 reasoning/reasoningContent/toolNames/content;
// text/toolCalls 仅为读取老数据而保留为可选(渲染时归一化)。
steps?: Array<{
diff --cc kernel/agent/agent.go
index 98d1815062,65ebcfe1bd..c8e46f3120
--- a/kernel/agent/agent.go
+++ b/kernel/agent/agent.go
@@@ -359,7 -359,7 +359,8 @@@ type SessionEntry struct
ID string `json:"id,omitempty"`
Type string `json:"type"` // user|thinking|assistant|confirm|snapshot|rollback
Content string `json:"content,omitempty"`
+ References []Reference `json:"references,omitempty"`
+ BlockHTML string `json:"blockHTML,omitempty"` // 仅 user,用于保留发送框的 BlockDOM 展示结构
Steps []SessionEntryStep `json:"steps,omitempty"` // 仅 thinking
ToolCalls []AgentToolCall `json:"toolCalls,omitempty"` // 仅 assistant
Duration float64 `json:"duration,omitempty"` // 秒(thinking/assistant 均可能带)