From 032842a74c3fbbaeba0b25e7bf474f5ce69079c6 Mon Sep 17 00:00:00 2001 From: Vignesh Natarajan Date: Sat, 14 Feb 2026 19:09:55 -0800 Subject: [PATCH] fix (agents): accept read file_path alias in tool-start path checks --- src/agents/pi-embedded-subscribe.handlers.tools.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/agents/pi-embedded-subscribe.handlers.tools.ts b/src/agents/pi-embedded-subscribe.handlers.tools.ts index 07155d791..54f2429d8 100644 --- a/src/agents/pi-embedded-subscribe.handlers.tools.ts +++ b/src/agents/pi-embedded-subscribe.handlers.tools.ts @@ -75,7 +75,12 @@ export async function handleToolExecutionStart( if (toolName === "read") { const record = args && typeof args === "object" ? (args as Record) : {}; - const filePath = typeof record.path === "string" ? record.path.trim() : ""; + const filePath = + typeof record.path === "string" + ? record.path.trim() + : typeof record.file_path === "string" + ? record.file_path.trim() + : ""; if (!filePath) { const argsPreview = typeof args === "string" ? args.slice(0, 200) : undefined; ctx.log.warn(