From 744878bf62767f5b446778b3097978679d2d3db7 Mon Sep 17 00:00:00 2001 From: "paseo-bot[bot]" <266920839+paseo-bot[bot]@users.noreply.github.com> Date: Tue, 13 Oct 2026 13:26:03 +0200 Subject: [PATCH] refactor(agents): name finish notification options --- packages/server/src/server/agent/agent-prompt.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/server/src/server/agent/agent-prompt.ts b/packages/server/src/server/agent/agent-prompt.ts index f98b0358f5..6340f98559 100644 --- a/packages/server/src/server/agent/agent-prompt.ts +++ b/packages/server/src/server/agent/agent-prompt.ts @@ -516,8 +516,7 @@ export function setupFinishNotification(params: SetupFinishNotificationParams): async function notify( reason: FinishNotificationReason, - permissionRequest?: AgentPermissionRequest, - lastError?: string, + { permissionRequest, lastError }: Pick, ): Promise { const callerRecord = await agentStorage.get(callerAgentId); if (callerRecord?.archivedAt) { @@ -560,7 +559,7 @@ export function setupFinishNotification(params: SetupFinishNotificationParams): if (stopped) return; if (options.terminal ?? true) stop(); notificationQueue = notificationQueue - .then(() => notify(reason, options.permissionRequest, options.lastError)) + .then(() => notify(reason, options)) .catch((error) => { logger.error( { err: error, childAgentId, callerAgentId, reason },