fix support for chat branching with source tracking

This commit is contained in:
2026-09-08 23:09:27 +02:00
parent c0e3a6b693
commit 6e59b72dca
5 changed files with 45 additions and 13 deletions
+3
View File
@@ -466,6 +466,9 @@ test("conversation branches, edit-resend, and generation settings work", async (
});
assert.equal(branched.status, 200);
assert.notEqual(branched.json.chat.id, chatId);
assert.equal(branched.json.chat.source_chat_id, chatId);
assert.equal(branched.json.chat.branched_from_message_id, firstAssistant.id);
assert.match(branched.json.chat.title, /\(branch\)$/);
assert.deepEqual(branched.json.messages.map((message) => message.content), ["first", "reply-1"]);
assert.equal(branched.json.chat.preferred_model, "preferred:model");
assert.equal(branched.json.chat.temperature, 0.4);