Agents: fix embedded auth-profile failure helper typing

This commit is contained in:
Mariano Belinky
2026-02-22 15:03:34 +00:00
committed by Peter Steinberger
parent 0121fa6f1a
commit 4ec0af00fe

View File

@@ -516,6 +516,8 @@ export async function runEmbeddedPiAgent(
const maybeMarkAuthProfileFailure = async (failure: {
profileId?: string;
reason?: Parameters<typeof markAuthProfileFailure>[0]["reason"] | null;
config?: RunEmbeddedPiAgentParams["config"];
agentDir?: RunEmbeddedPiAgentParams["agentDir"];
}) => {
const { profileId, reason } = failure;
if (!profileId || !reason || reason === "timeout") {