





















@@ -186,12 +186,13 @@ describe("acp translator stable lifecycle handlers", () => {
186186"agent:main:a1",
187187"agent:main:a2",
188188]);
189-expect(first.sessions.every((session) => session.cwd === "/work/a")).toBe(true);
189+expect(first.sessions.map((session) => session.cwd)).toEqual(["/work/a", "/work/a"]);
190190expect(first.nextCursor).toEqual(expect.any(String));
191191expect(second.sessions.map((session) => session.sessionId)).toEqual([
192192"agent:main:a3",
193193"agent:main:a4",
194194]);
195+expect(second.sessions.map((session) => session.cwd)).toEqual(["/work/a", "/work/a"]);
195196expect(second.nextCursor).toBeNull();
196197expect(request).toHaveBeenNthCalledWith(1, "sessions.list", {
197198limit: 3,
@@ -225,7 +226,7 @@ describe("acp translator stable lifecycle handlers", () => {
225226const result = await agent.listSessions(createListSessionsRequest({ cwd: "/work/a" }));
226227227228expect(result.sessions.map((session) => session.sessionId)).toEqual(["agent:main:a1"]);
228-expect(result.sessions.every((session) => session.cwd === "/work/a")).toBe(true);
229+expect(result.sessions.map((session) => session.cwd)).toEqual(["/work/a"]);
229230230231sessionStore.clearAllSessionsForTest();
231232});
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。