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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user