fix(mindspace): use UUIDs for repair replies

This commit is contained in:
john
2026-07-12 15:53:11 +08:00
parent 73b308af0a
commit f9561cd91d
4 changed files with 8 additions and 2 deletions
+3 -1
View File
@@ -646,7 +646,9 @@ export async function maybeRepairPageDataAfterFinish({
repairAttemptsBySession.set(key, attempts + 1);
const prompt = buildPageDataCollectRepairPrompt(afterBind);
const requestId = `page-data-repair-${crypto.randomUUID()}`;
// goosed validates request_id as a UUID. Keep the repair classification in
// message metadata rather than making the request id non-conformant.
const requestId = crypto.randomUUID();
const userMessage = {
role: 'user',
content: [{ type: 'text', text: prompt }],