Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(mock-api): keep conversation id authoritative in patch response

Steven Enamakeld34b9c5ba4ee
diff --git a/scripts/mock-api/routes/conversations.mjs b/scripts/mock-api/routes/conversations.mjs
index fd6c94a324..06933df94b 100644
--- a/scripts/mock-api/routes/conversations.mjs
+++ b/scripts/mock-api/routes/conversations.mjs
@@ -192,7 +192,7 @@ export function handleConversations(ctx) {
if (method === "PATCH") {
json(res, 200, {
success: true,
- data: { id: channelItemMatch[1], ...(parsedBody || {}) },
+ data: { ...(parsedBody || {}), id: channelItemMatch[1] },
});
return true;
}