From 44a91eb69b4f84bc71087f870b796a3fcfa57b65 Mon Sep 17 00:00:00 2001 From: teahubxyz Date: Tue, 20 Oct 2026 18:18:54 +0000 Subject: [PATCH] havre tests: a sent photo's turn shifts the indexes after it Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01BQqGFv54JJTw7p3rgGjP7C --- ventures/havre/tests/abilities.test.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ventures/havre/tests/abilities.test.mjs b/ventures/havre/tests/abilities.test.mjs index 35b14fd..00d5c9f 100644 --- a/ventures/havre/tests/abilities.test.mjs +++ b/ventures/havre/tests/abilities.test.mjs @@ -287,8 +287,8 @@ test("the conversation as the model reads it: a photo it sent is mentioned to it assert.deepEqual(api.map((m) => m.role), ["user", "assistant", "user", "user", "assistant", "user"]); assert.equal(api[1].content, "*sends a photo: On the deck*\n\n*sends a short video: Waving*"); assert.equal(api[2].content, "lovely"); - assert.equal(api[2].content, "[a photo: A gull on a post.] what's this?"); - assert.equal(api[4].content, "hello there"); + assert.equal(api[3].content, "[a photo: A gull on a post.] what's this?"); + assert.equal(api[5].content, "hello there"); assert.ok(!api.some((m) => /\[photo\]/.test(m.content)), "the model never sees a photo placeholder in its own voice"); const seen = A.withPicture([{ role: "system", content: "s" }, { role: "user", content: "[a photo] look" }], "data:image/jpeg;base64,AAAA"); assert.deepEqual(seen[1].content[1], { type: "image_url", image_url: { url: "data:image/jpeg;base64,AAAA" } });