Skip to content

Commit 3c83fc4

Browse files
author
zhangmq45
committed
fix(opencode): retry on xfyun engine busy response
When xfyun (讯飞云) returns 'engine busy', OpenCode should retry instead of failing. Fixes #31812
1 parent 8c80113 commit 3c83fc4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/opencode/src/session/retry.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ export function retryable(error: Err, provider: string) {
129129
if (
130130
lower.includes("rate increased too quickly") ||
131131
lower.includes("rate limit") ||
132-
lower.includes("too many requests")
132+
lower.includes("too many requests") ||
133+
lower.includes("engine busy")
133134
) {
134135
return { message: msg }
135136
}

0 commit comments

Comments
 (0)