Skip to content

The open source coding agent.

TypeScript

lower max retries to 3 - ai sdk currently cannot abort during a retry delay so things appear to be frozen

Dax Raad6ef4cfa2fa03
diff --git a/packages/opencode/src/session/index.ts b/packages/opencode/src/session/index.ts
index cb6d3f5bcad..09641aa0a50 100644
--- a/packages/opencode/src/session/index.ts
+++ b/packages/opencode/src/session/index.ts
@@ -812,7 +812,7 @@ export namespace Session {
messages,
}
},
- maxRetries: 10,
+ maxRetries: 3,
maxOutputTokens: outputLimit,
abortSignal: abort.signal,
stopWhen: stepCountIs(1000),