Fix Telegram exec approval delivery and auto-resume fallback

This commit is contained in:
seonang
2026-04-02 02:20:28 +00:00
committed by Peter Steinberger
parent b5161042b7
commit 4207ca2eb8
6 changed files with 149 additions and 39 deletions

View File

@@ -270,7 +270,7 @@ export async function processGatewayAllowlist(
typeof params.timeoutSec === "number" ? params.timeoutSec : params.defaultTimeoutSec;
const followupTarget = buildExecApprovalFollowupTarget({
approvalId,
sessionKey: params.notifySessionKey,
sessionKey: params.notifySessionKey ?? params.sessionKey,
turnSourceChannel: params.turnSourceChannel,
turnSourceTo: params.turnSourceTo,
turnSourceAccountId: params.turnSourceAccountId,
@@ -364,7 +364,7 @@ export async function processGatewayAllowlist(
notifyOnExit: false,
notifyOnExitEmptySuccess: false,
scopeKey: params.scopeKey,
sessionKey: params.notifySessionKey,
sessionKey: params.notifySessionKey ?? params.sessionKey,
timeoutSec: effectiveTimeout,
});
} catch {