Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

Merge pull request #5782 from Battleplus/fix/issue-3098-consolidated

Lizi97cdd8537188
diff --cc packages/lizi-mcps/src/xdt-helper/get_chat_history.ts
index fefea6a0d8,7ad7986697..d8a905e48d
--- a/packages/lizi-mcps/src/xdt-helper/get_chat_history.ts
+++ b/packages/lizi-mcps/src/xdt-helper/get_chat_history.ts
@@@ -255,9 -266,12 +269,13 @@@ export function registerGetChatHistoryT
workingDir: m.sessionWorkingDir,
agentKind: m.sessionAgentKind,
title: m.sessionTitle,
+ ...(deps.history.sessionUrl ? { sessionUrl: deps.history.sessionUrl(m.sessionId) } : {}),
};
}
+ // error 行的 content:写入侧只对 message / sdkError 过过 redactSensitiveText,
+ // reason 等其余字段是入库原样内容。出口必须自己兜住,否则未知结构的原始字段会
+ // 直接出网 —— 与 desktop 侧历史出口同一口径。
+ // 其余 role 逐字节透传,保持既有行为不变。
const out: Record<string, unknown> = {
id: m.id,
sessionId: m.sessionId,