fix(gateway): avoid whatsapp fallback for internal runs

This commit is contained in:
Peter Steinberger
2026-01-09 22:32:59 +01:00
parent 53f51786f2
commit 35083fcb37
8 changed files with 97 additions and 10 deletions

View File

@@ -23,6 +23,7 @@ export async function runAgentStep(params: {
message: string;
extraSystemPrompt: string;
timeoutMs: number;
provider?: string;
lane?: string;
}): Promise<string | undefined> {
const stepIdem = crypto.randomUUID();
@@ -33,6 +34,7 @@ export async function runAgentStep(params: {
sessionKey: params.sessionKey,
idempotencyKey: stepIdem,
deliver: false,
provider: params.provider ?? "webchat",
lane: params.lane ?? "nested",
extraSystemPrompt: params.extraSystemPrompt,
},