test: include transcript update ids

This commit is contained in:
Shakker
2026-05-11 21:49:17 +01:00
parent 935cf2088d
commit ba90ee6b49

View File

@@ -42,15 +42,17 @@ describe("guardSessionManager transcript updates", () => {
} as AgentMessage);
expect(updates).toStrictEqual([
expect.objectContaining({
{
message: {
content: [{ text: "hello from subagent", type: "text" }],
role: "assistant",
timestamp,
},
messageId: expect.any(String),
sessionFile,
sessionKey: "agent:main:worker",
}),
},
]);
expect(updates[0]?.messageId).not.toBe("");
});
});