test(claws): preserve partial collision result

This commit is contained in:
Patrick Erichsen
2026-07-20 14:11:41 -07:00
parent 988531fe43
commit f57f58c042
+6 -1
View File
@@ -334,7 +334,12 @@ describe("applyClawAddPlan", () => {
transform({ agents: { list: [{ id: " Worker " }] } });
},
}),
).rejects.toMatchObject({ code: "agent_id_collision" });
).resolves.toMatchObject({
status: "partial",
workspaceCreated: false,
configCommitted: false,
error: { code: "agent_id_collision" },
});
await expect(access(plan.agent.workspace)).rejects.toThrow();
});