From 6268ed57ea236ffc2f7d432e1bf1e256e639ffa1 Mon Sep 17 00:00:00 2001 From: Ayaan Zaidi Date: Sun, 22 Feb 2026 21:00:17 +0530 Subject: [PATCH] fix(agents): stop param shadowing in auth failure marker --- src/agents/pi-embedded-runner/run.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/agents/pi-embedded-runner/run.ts b/src/agents/pi-embedded-runner/run.ts index c60aaed0071..0a810a38a6d 100644 --- a/src/agents/pi-embedded-runner/run.ts +++ b/src/agents/pi-embedded-runner/run.ts @@ -500,11 +500,11 @@ export async function runEmbeddedPiAgent( let lastRunPromptUsage: ReturnType | undefined; let autoCompactionCount = 0; let runLoopIterations = 0; - const maybeMarkAuthProfileFailure = async (params: { + const maybeMarkAuthProfileFailure = async (failure: { profileId?: string; reason?: Parameters[0]["reason"] | null; }) => { - const { profileId, reason } = params; + const { profileId, reason } = failure; if (!profileId || !reason || reason === "timeout") { return; } @@ -513,7 +513,7 @@ export async function runEmbeddedPiAgent( profileId, reason, cfg: params.config, - agentDir: params.agentDir, + agentDir, }); }; try {