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
@@ -235,7 +235,9 @@ export async function maybeRepairH5HtmlAfterFinish({
repairAttemptsBySession.set(key, attempts + 1);
const prompt = buildH5HtmlRepairPrompt(evaluation);
const requestId = `h5-html-repair-${crypto.randomUUID()}`;
// goosed validates request_id as a UUID, so repair metadata must not be
// encoded by prefixing the id. The message metadata below carries the type.
const requestId = crypto.randomUUID();
const userMessage = {
role: 'user',
content: [{ type: 'text', text: prompt }],