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。

fix(wecom): 将插件设置识别为无界面会话

davidd45b2bcf1e6e
diff --git a/apps/desktop/src/main/mcp-integrations/__tests__/ghostSetupInteractionSurface.test.ts b/apps/desktop/src/main/mcp-integrations/__tests__/ghostSetupInteractionSurface.test.ts
index e8920af0ed..9254857493 100644
--- a/apps/desktop/src/main/mcp-integrations/__tests__/ghostSetupInteractionSurface.test.ts
+++ b/apps/desktop/src/main/mcp-integrations/__tests__/ghostSetupInteractionSurface.test.ts
@@ -17,7 +17,7 @@ describe('ghostSetupInteractionSessionId', () => {
).toBe('desktop-session');
});
- it.each(['feishu', 'discord', 'slack-hook', 'telegram'])(
+ it.each(['feishu', 'discord', 'slack-hook', 'telegram', 'wecom'])(
'treats %s turns as non-interactive even when they have a business session id',
(source) => {
expect(
diff --git a/apps/desktop/src/main/mcp-integrations/ghostSetupInteractionSurface.ts b/apps/desktop/src/main/mcp-integrations/ghostSetupInteractionSurface.ts
index 385b468357..6a1dc19bbd 100644
--- a/apps/desktop/src/main/mcp-integrations/ghostSetupInteractionSurface.ts
+++ b/apps/desktop/src/main/mcp-integrations/ghostSetupInteractionSurface.ts
@@ -9,6 +9,7 @@ const NON_DESKTOP_SETUP_SOURCES = new Set([
'discord',
'slack-hook',
'telegram',
+ 'wecom',
]);
const headlessTurnDepthBySession = new Map<string, number>();