From 22fc3dad7b47de3ab86174532dc8abd7f33828fc Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 10 Jan 2026 18:14:01 +0000 Subject: [PATCH] style: format helper --- src/agents/pi-embedded-helpers.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/agents/pi-embedded-helpers.ts b/src/agents/pi-embedded-helpers.ts index 908940848..850e3cac1 100644 --- a/src/agents/pi-embedded-helpers.ts +++ b/src/agents/pi-embedded-helpers.ts @@ -110,7 +110,9 @@ export async function sanitizeSessionMessagesImages( : undefined; const toolUseId = (toolMsg as { toolUseId?: unknown }).toolUseId; const sanitizedToolUseId = - options?.sanitizeToolCallIds && typeof toolUseId === "string" && toolUseId + options?.sanitizeToolCallIds && + typeof toolUseId === "string" && + toolUseId ? sanitizeToolCallId(toolUseId) : undefined; const sanitizedMsg = {