From f79da77fe0e270dd578856971a37f8894336b04d Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Wed, 20 May 2026 13:00:48 +0900 Subject: [PATCH] test(team-mode): decouple resume history fixture from session routing Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- .../team-mode/team-state-store/resume.test.ts | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/src/features/team-mode/team-state-store/resume.test.ts b/src/features/team-mode/team-state-store/resume.test.ts index 2ab4f752d..0d46921f2 100644 --- a/src/features/team-mode/team-state-store/resume.test.ts +++ b/src/features/team-mode/team-state-store/resume.test.ts @@ -381,20 +381,18 @@ describe("resumeAllTeams", () => { const ancientMtime = new Date(Date.now() - 60 * 60 * 1000) await utimes(reservedPath, ancientMtime, ancientMtime) const sessionGet: SessionGetMock = async () => ({ data: { id: "alive" } }) - const sessionMessages: SessionMessagesMock = async ({ path: sessionPath }) => ({ - data: sessionPath.id === "ses_worker" - ? [ - { - info: { role: "user" }, - parts: [ - { - type: "text", - text: `already accepted`, - }, - ], - }, - ] - : [], + const sessionMessages: SessionMessagesMock = async () => ({ + data: [ + { + info: { role: "user" }, + parts: [ + { + type: "text", + text: `already accepted`, + }, + ], + }, + ], }) // when