We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3925370 commit e84eb59Copy full SHA for e84eb59
1 file changed
src/agents/pi-hooks/context-pruning/pruner.test.ts
@@ -390,7 +390,7 @@ describe("pruneContextMessages", () => {
390
391
const toolResult = result[1] as Extract<AgentMessage, { role: "toolResult" }>;
392
expect(toolResult.content).toHaveLength(1);
393
- expect(toolResult.content[0]).toMatchObject({ type: "text" });
+ expect(toolResult.content[0]?.type).toBe("text");
394
const textBlock = toolResult.content[0] as { type: "text"; text: string };
395
expect(textBlock.text).toContain("[image removed during context pruning]");
396
expect(textBlock.text).toContain(
0 commit comments