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 latest main and retain topic cache execution checks

ylliuuu6652ef3cd3db66
diff --cc apps/mobile/src/__tests__/chatServerClient.test.ts
index be3ec75bc9,c176fe5ad4..5b53efc25a
--- a/apps/mobile/src/__tests__/chatServerClient.test.ts
+++ b/apps/mobile/src/__tests__/chatServerClient.test.ts
@@@ -55,18 -53,16 +55,20 @@@ describe('direct Chat Server client', (
store: { read: async () => saved, write: async (_, state) => { saved = state ?? undefined; } } });
const client = createChatServerClient(request, undefined, async () => history);
const first = await client.load(id(1), undefined, id(20));
+ expect(chatGroupView(first, id(10)).round.speakers).toMatchObject([{ executionId: id(30), executionStatus: 'running' }]);
+ executionStatus = 'stopping';
request.mockClear();
- expect((await client.load(id(1), undefined, id(20))).messages).toEqual(first.messages);
+ const reopened = await client.load(id(1), undefined, id(20));
+ expect(reopened.messages).toEqual(first.messages);
expect(first.messages.map(m => m.id)).toEqual([id(21), id(20)]);
+ expect(chatGroupView(reopened, id(10)).round.speakers).toMatchObject([{ executionId: id(30), executionStatus: 'stopping' }]);
- // Exactly the two live-state reads: no repeated snapshot, root or reply-page download.
- expect(request.mock.calls.map(([path]) => path)).toEqual([
- `/conversations/${id(1)}/executions`,
- expect.stringContaining(`/conversations/${id(1)}/execution-failures?`),
- ]);
+ // History stays cached while the existing live execution and failure reads
+ // still refresh. No snapshot, root or reply-page request may be repeated.
+ const refreshedPaths = request.mock.calls.map(([path]) => path.split('?')[0]);
+ expect(refreshedPaths).toHaveLength(2);
+ expect(refreshedPaths).toEqual(expect.arrayContaining([
+ `/conversations/${id(1)}/executions`, `/conversations/${id(1)}/execution-failures`,
+ ]));
});
// #6907: existing fixtures never pair a human's group name A with account ownerName B (unit tier).
it('keeps owner labels scoped to each group and follows refreshed names without changing identities', () => {