From aa31765544377db6849f077a68cfed072947e08c Mon Sep 17 00:00:00 2001 From: Strider Date: Fri, 20 Mar 2026 21:04:18 +0800 Subject: [PATCH] fix: include fallbacks in agentTurn hint detection for partial patches coercePayload() now recognizes fallbacks as an agentTurn-specific field, so partial payload patches like { fallbacks: [...] } infer kind without requiring callers to also send kind explicitly. Co-Authored-By: Claude Opus 4.6 --- src/cron/normalize.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cron/normalize.ts b/src/cron/normalize.ts index b1afdfaaa12..1446d99d935 100644 --- a/src/cron/normalize.ts +++ b/src/cron/normalize.ts @@ -101,7 +101,8 @@ function coercePayload(payload: UnknownRecord) { typeof next.model === "string" || typeof next.thinking === "string" || typeof next.timeoutSeconds === "number" || - typeof next.allowUnsafeExternalContent === "boolean"; + typeof next.allowUnsafeExternalContent === "boolean" || + Array.isArray(next.fallbacks); if (hasMessage) { next.kind = "agentTurn"; } else if (hasText) {