Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(bots): 群任务启动说明不再声称卡片已经发到群里
Chris0c50233307ad
diff --git a/packages/lizi-mcps/src/__tests__/lizi_xdtHelperMcpServer.test.ts b/packages/lizi-mcps/src/__tests__/lizi_xdtHelperMcpServer.test.tsindex 48f5383bd6..cb81b9b3bb 100644--- a/packages/lizi-mcps/src/__tests__/lizi_xdtHelperMcpServer.test.ts+++ b/packages/lizi-mcps/src/__tests__/lizi_xdtHelperMcpServer.test.ts@@ -420,6 +420,8 @@ describe("cindy_helper MCP server", () => {deadline_at: 1_788_000_000_000,});expect(sessionTask).not.toHaveProperty("delegationId");+ // The card is posted in the background: the teammate must not say it is already there.+ expect((sessionTask as { guidance?: string }).guidance).not.toContain("already posted");expect(startSessionTask).toHaveBeenLastCalledWith(expect.objectContaining({callerSessionId: "bot-parent-session",diff --git a/packages/lizi-mcps/src/lizi_xdtHelperMcpServer.ts b/packages/lizi-mcps/src/lizi_xdtHelperMcpServer.tsindex 4de7a21e90..38286febd5 100644--- a/packages/lizi-mcps/src/lizi_xdtHelperMcpServer.ts+++ b/packages/lizi-mcps/src/lizi_xdtHelperMcpServer.ts@@ -429,7 +429,7 @@ function registerStartSessionTaskEntry(...(result.completionDestination ? { completion_destination: result.completionDestination } : {}),guidance:(result.completionDestination === 'group'- ? 'This task lives in this group: its card is already posted here, and anything it needs confirmed plus its final result will arrive here as your own messages. Tell the group briefly what you started; do not promise a private-chat update. '+ ? 'This task lives in this group: its card is being posted here, and anything it needs confirmed plus its final result are sent here as your own messages (only if the group can no longer take them do they go to your owner privately). Tell the group briefly what you started; do not claim the card or result is already here. ': result.completionDestination === 'private'? 'This older group cannot carry task messages: anything the task needs confirmed and its final result go to your owner\'s private chat with you, not here. Tell the group briefly what you started and that the result will reach your owner privately. ': '') + "The task card tracks progress and the result will return automatically. Do not start it again. Treat model_route and task/session ids as internal bookkeeping; do not echo them or the delegated instruction in ordinary replies unless the user asks for these details.",