test(server): expect failure activity during agent creation

Verify fetched and live creation timelines use the typed error item when an initial provider prompt is rejected.
This commit is contained in:
paseo-bot[bot]
2026-10-13 05:03:13 +02:00
parent 303ee418cc
commit e5efa7324d
@@ -374,7 +374,7 @@ test.each(["agent", "workspace"] as const)(
clientMessageId: agent.clientMessageId,
messageId: agent.clientMessageId,
},
{ type: "assistant_message", text: `[System Error] ${rejection}` },
{ type: "error", message: rejection },
];
expect(
(await client.fetchAgentTimeline(created.id)).entries.map((entry) => entry.item),