test: fix toolUseId fixture typing

This commit is contained in:
Josh Lehman 2026-03-12 19:45:04 -07:00
parent ffd7f20b26
commit 282c8adfe3
No known key found for this signature in database
GPG Key ID: D141B425AC7F876B
1 changed files with 2 additions and 2 deletions

View File

@ -298,7 +298,7 @@ describe("compaction-safeguard toolResult trimming", () => {
toolName: "exec",
content: [{ type: "text", text: "original use payload" }],
timestamp: 3,
} as AgentMessage,
} as unknown as AgentMessage,
];
const prunedMessages: AgentMessage[] = [
originalMessages[0],
@ -315,7 +315,7 @@ describe("compaction-safeguard toolResult trimming", () => {
toolName: "exec",
content: [{ type: "text", text: "trimmed use payload" }],
timestamp: 3,
} as AgentMessage,
} as unknown as AgentMessage,
];
const restored = restoreOriginalToolResultsForKeptMessages({