From 9ae4394b81bf0a68a5dfbcfe39fb60a21689ac49 Mon Sep 17 00:00:00 2001 From: Sebastian <19554889+sebslight@users.noreply.github.com> Date: Sat, 14 Feb 2026 22:25:23 -0500 Subject: [PATCH] style(agents): format tool-error suppression condition --- src/agents/pi-embedded-runner/run/payloads.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/agents/pi-embedded-runner/run/payloads.ts b/src/agents/pi-embedded-runner/run/payloads.ts index d4562db4f77..28dc9613c9a 100644 --- a/src/agents/pi-embedded-runner/run/payloads.ts +++ b/src/agents/pi-embedded-runner/run/payloads.ts @@ -233,7 +233,9 @@ export function buildEmbeddedRunPayloads(params: { const isMutatingToolError = params.lastToolError.mutatingAction ?? isLikelyMutatingToolName(params.lastToolError.toolName); - const shouldShowToolError = isMutatingToolError || (!hasUserFacingReply && !isRecoverableError && !params.config?.messages?.suppressToolErrors); + const shouldShowToolError = + isMutatingToolError || + (!hasUserFacingReply && !isRecoverableError && !params.config?.messages?.suppressToolErrors); // Always surface mutating tool failures so we do not silently confirm actions that did not happen. // Otherwise, keep the previous behavior and only surface non-recoverable failures when no reply exists.