From 7c925aa5a0c23d51c39ebfb07773a53a6df8cef1 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 = {