add response versioning support in messages for regeneration improvements

This commit is contained in:
2026-09-22 14:48:13 +02:00
parent 7602692341
commit 72e429b1b3
15 changed files with 591 additions and 86 deletions
+5 -1
View File
@@ -151,7 +151,11 @@ test("images feed dedicated vision, cache, streamed reasoning, reload and shared
const exported = await (await s.api("/exports/workspace")).json();
assert.deepEqual(exported.workspace.chats[0].messages[0].attachments, uploads);
const botId = history.messages.at(-1).id;
assert.equal((await s.api(`/chats/${chatId}/messages/${botId}/retry`, {model: "qwen3:14b"})).status, 200);
const retryWire = await (await s.api(`/chats/${chatId}/messages/${botId}/retry/stream`, {model: "qwen3:14b", reasoning: true})).text();
assert.match(retryWire, /event: chunk/);
assert.match(retryWire, /event: thinking/);
assert.match(retryWire, /event: done/);
assert.ok(s.requests.at(-1).messages.some(v => v.content.includes("A blue screenshot")));
assert.equal(s.requests.filter(v => v.model === "gemma3:4b").length, 2, "Retry reuses vision cache");
const branchResponse = await s.api(`/chats/${chatId}/messages/${botId}/branch`, {confirmed: true});
assert.equal(branchResponse.status, 200);