fix: drop unsigned gemini tool calls from history

This commit is contained in:
Peter Steinberger
2026-01-16 22:42:32 +00:00
parent a4e99ecdaf
commit a7bec3340f
4 changed files with 89 additions and 62 deletions

View File

@@ -190,10 +190,6 @@ describe("sanitizeSessionHistory (google thinking)", () => {
expect(assistant.content).toEqual([
{ type: "text", text: "hello" },
{ type: "text", text: "ok" },
{
type: "text",
text: '[Tool Call: read (ID: call_1)]\nArguments: {\n "path": "/tmp/foo"\n}',
},
{
type: "toolCall",
id: "call_2",