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 <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-05-20 13:00:48 +09:00
parent af42f0ac70
commit f79da77fe0
@@ -381,20 +381,18 @@ describe("resumeAllTeams", () => {
const ancientMtime = new Date(Date.now() - 60 * 60 * 1000) const ancientMtime = new Date(Date.now() - 60 * 60 * 1000)
await utimes(reservedPath, ancientMtime, ancientMtime) await utimes(reservedPath, ancientMtime, ancientMtime)
const sessionGet: SessionGetMock = async () => ({ data: { id: "alive" } }) const sessionGet: SessionGetMock = async () => ({ data: { id: "alive" } })
const sessionMessages: SessionMessagesMock = async ({ path: sessionPath }) => ({ const sessionMessages: SessionMessagesMock = async () => ({
data: sessionPath.id === "ses_worker" data: [
? [ {
{ info: { role: "user" },
info: { role: "user" }, parts: [
parts: [ {
{ type: "text",
type: "text", text: `<peer_message from="lead" messageId="${workerMessageId}" kind="message">already accepted</peer_message>`,
text: `<peer_message from="lead" messageId="${workerMessageId}" kind="message">already accepted</peer_message>`, },
}, ],
], },
}, ],
]
: [],
}) })
// when // when