diff --git a/src/agents/pi.ts b/src/agents/pi.ts index b88873ecc..779dd1f88 100644 --- a/src/agents/pi.ts +++ b/src/agents/pi.ts @@ -188,7 +188,8 @@ export const piSpec: AgentSpec = { const argv = [...ctx.argv]; let bodyPos = ctx.bodyIndex; const modeIdx = argv.indexOf("--mode"); - const modeVal = modeIdx >= 0 ? argv[modeIdx + 1]?.toString().toLowerCase() : undefined; + const modeVal = + modeIdx >= 0 ? argv[modeIdx + 1]?.toString().toLowerCase() : undefined; const isRpcMode = modeVal === "rpc"; // Non-interactive print + JSON if (!isRpcMode && !argv.includes("-p") && !argv.includes("--print")) {