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。

test(bots): follow D11 in the task-composer wiring assertion (botMentions now comes from the live filtered list)

nana6ab964aad362
diff --git a/apps/desktop/src/renderer/features/bots/__tests__/botNavigation.test.ts b/apps/desktop/src/renderer/features/bots/__tests__/botNavigation.test.ts
index 9dc18e597b..dfb0cbde5d 100644
--- a/apps/desktop/src/renderer/features/bots/__tests__/botNavigation.test.ts
+++ b/apps/desktop/src/renderer/features/bots/__tests__/botNavigation.test.ts
@@ -165,7 +165,7 @@ describe('Bot task route recovery', () => {
it('passes the live Bot roster and the teammate identity into the shared task composer', () => {
expect(source).toContain('window.electronAPI.localDb.bots.list(');
expect(source).toContain('lastReadAtByBotId: { [botId]: lastReadAt }');
- expect(source).toContain('botMentions={gate.mentions}');
+ expect(source).toContain('botMentions={mentions}');
expect(source).toContain('botIdentity={chatIdentity ?? gate.identity}');
// The live identity is wrapped with canonicalChat so only the main private chat offers add-to-group.
expect(source).toContain('{ ...(identity ?? gateIdentity), canonicalChat }');