Fix AI workflow retry loops and improve fallback handling

This commit is contained in:
2026-02-28 22:01:07 -05:00
parent 3cc085e583
commit 953d7c0099
3 changed files with 158 additions and 2 deletions

View File

@@ -43,6 +43,11 @@ async function processTaskStep(task: Task) {
return await runTaskProcessor(task);
}
// Step-level retries duplicate task-level retry handling and can create noisy AI failure loops.
(
processTaskStep as ((task: Task) => Promise<Record<string, unknown>>) & { maxRetries?: number }
).maxRetries = 0;
async function completeTaskStep(taskId: string, result: Record<string, unknown>) {
'use step';
await completeTask(taskId, result);