fix(tool-pair-validator): continue after synthetic repairs

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
SpencerJung
2026-05-22 16:36:12 +09:00
parent cb205e1479
commit 28569307eb
3 changed files with 31 additions and 2 deletions
+4
View File
@@ -157,6 +157,10 @@ describe("createMessagesTransformHandler", () => {
tool_use_id: "toolu_01SRMQs3DUtVKWoSxC8bxxVA",
isError: true,
content: [{ type: "text", text: "Tool output unavailable (context compacted)" }],
}, {
type: "text",
text: "Recovered missing tool results. Continue from the repaired tool output.",
synthetic: true,
}],
})
expect(messages[4]?.parts[0]).toEqual({