Repository navigation
Conversation
Reuses the existing channel retry infrastructure (retryAsync,
RetryConfig, RetryConfigSchema) to add opt-in retry for model
provider requests. When a provider has retry config, transient
failures (ECONNREFUSED, 429, 502/503/504, timeouts) are retried
with exponential backoff. Client errors (400, 401, 403, 404) fail
immediately. This is useful for self-hosted backends with scheduled
maintenance windows.
Config example:
models.providers.<name>.retry = {
attempts: 25,
minDelayMs: 5000,
maxDelayMs: 60000,
jitter: 0.15
}
Closes openclaw#31104
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Greptile SummaryThis PR adds opt-in
Confidence Score: 3/5Mostly safe to merge with caution — the stale-runner bug is real but only affects config-reload scenarios, not initial startup. Score of 3 reflects a genuine P1 logic bug (stale runners after config reload) and a P2 gap in non-retryable status code coverage. The feature works correctly on first boot, but dynamic config updates without a restart will silently continue using the old retry policy, which could frustrate users who remove retry config to stop aggressive retrying during an incident. src/agents/models-config.providers.normalize.ts (stale runner lifecycle) and src/infra/retry-policy.ts (non-retryable status codes) Prompt To Fix All With AIThis is a comment left during a code review.
Path: src/agents/models-config.providers.normalize.ts
Line: 142-144
Comment:
**Stale retry runners persist after config reload**
`registerProviderRetryConfig` adds entries to the module-scoped `providerRetryRunners` map but there is no corresponding cleanup path. `clearProviderRetryRunners()` is exported and used in tests, but is never called in any production code path.
In practice this means:
- If a user removes the `retry` field from a provider config and config reloads (via the `normalizeProviders` → `models-config.plan.ts` path), the old retry runner for that provider persists until process restart. The removed config has no runtime effect.
- If the retry config is changed (e.g., `attempts` reduced from 25 to 3), `registerProviderRetryConfig` will overwrite the entry on re-registration **only if `normalizedProvider.retry` is still truthy**. Removal still leaves the stale entry.
A simple fix is to call `clearProviderRetryRunners()` at the top of `normalizeProviders` (before the provider loop), so the map is rebuilt on every normalization pass:
```ts
// At the top of normalizeProviders, before the for loop:
clearProviderRetryRunners();
```
Alternatively, for providers that no longer have a retry field, explicitly delete the entry:
```ts
if (normalizedProvider.retry) {
registerProviderRetryConfig(normalizedKey, normalizedProvider.retry);
} else {
deregisterProviderRetryConfig(normalizedKey); // new helper
}
```
How can I resolve this? If you propose a fix, please make it concise.
---
This is a comment left during a code review.
Path: src/infra/retry-policy.ts
Line: 118-125
Comment:
**422 Unprocessable Entity not in non-retryable set**
`isNonRetryableProviderError` currently blocks retry for status 400, 401, 403, and 404 — but not **422**. OpenAI, vLLM, and most other LLM-compatible providers return 422 for structurally invalid payloads (bad parameters, missing required fields, schema mismatches). These are permanent client errors that will never succeed on retry.
Because `PROVIDER_API_RETRY_RE` does not include `"422"` or `"unprocessable"`, a 422 whose error message happens to contain a matching term (e.g. `reset`, `closed`) could accidentally be retried, wasting quota and delaying the error surfacing to the caller.
```suggestion
function isNonRetryableProviderError(err: unknown): boolean {
if (!err || typeof err !== "object") {
return false;
}
const status = "status" in err ? (err.status as number) : undefined;
// Client errors that are never retryable
return status === 400 || status === 401 || status === 403 || status === 404 || status === 422;
}
```
How can I resolve this? If you propose a fix, please make it concise.Reviews (1): Last reviewed commit: "feat: add configurable retry for LLM pro..." | Re-trigger Greptile |
| if (normalizedProvider.retry) { | ||
| registerProviderRetryConfig(normalizedKey, normalizedProvider.retry); | ||
| } |
There was a problem hiding this comment.
Stale retry runners persist after config reload
registerProviderRetryConfig adds entries to the module-scoped providerRetryRunners map but there is no corresponding cleanup path. clearProviderRetryRunners() is exported and used in tests, but is never called in any production code path.
In practice this means:
- If a user removes the
retryfield from a provider config and config reloads (via thenormalizeProviders→models-config.plan.tspath), the old retry runner for that provider persists until process restart. The removed config has no runtime effect. - If the retry config is changed (e.g.,
attemptsreduced from 25 to 3),registerProviderRetryConfigwill overwrite the entry on re-registration only ifnormalizedProvider.retryis still truthy. Removal still leaves the stale entry.
A simple fix is to call clearProviderRetryRunners() at the top of normalizeProviders (before the provider loop), so the map is rebuilt on every normalization pass:
// At the top of normalizeProviders, before the for loop:
clearProviderRetryRunners();Alternatively, for providers that no longer have a retry field, explicitly delete the entry:
if (normalizedProvider.retry) {
registerProviderRetryConfig(normalizedKey, normalizedProvider.retry);
} else {
deregisterProviderRetryConfig(normalizedKey); // new helper
}Prompt To Fix With AI
This is a comment left during a code review.
Path: src/agents/models-config.providers.normalize.ts
Line: 142-144
Comment:
**Stale retry runners persist after config reload**
`registerProviderRetryConfig` adds entries to the module-scoped `providerRetryRunners` map but there is no corresponding cleanup path. `clearProviderRetryRunners()` is exported and used in tests, but is never called in any production code path.
In practice this means:
- If a user removes the `retry` field from a provider config and config reloads (via the `normalizeProviders` → `models-config.plan.ts` path), the old retry runner for that provider persists until process restart. The removed config has no runtime effect.
- If the retry config is changed (e.g., `attempts` reduced from 25 to 3), `registerProviderRetryConfig` will overwrite the entry on re-registration **only if `normalizedProvider.retry` is still truthy**. Removal still leaves the stale entry.
A simple fix is to call `clearProviderRetryRunners()` at the top of `normalizeProviders` (before the provider loop), so the map is rebuilt on every normalization pass:
```ts
// At the top of normalizeProviders, before the for loop:
clearProviderRetryRunners();
```
Alternatively, for providers that no longer have a retry field, explicitly delete the entry:
```ts
if (normalizedProvider.retry) {
registerProviderRetryConfig(normalizedKey, normalizedProvider.retry);
} else {
deregisterProviderRetryConfig(normalizedKey); // new helper
}
```
How can I resolve this? If you propose a fix, please make it concise.| function isNonRetryableProviderError(err: unknown): boolean { | ||
| if (!err || typeof err !== "object") { | ||
| return false; | ||
| } | ||
| const status = "status" in err ? (err.status as number) : undefined; | ||
| // Client errors that are never retryable | ||
| return status === 400 || status === 401 || status === 403 || status === 404; | ||
| } |
There was a problem hiding this comment.
422 Unprocessable Entity not in non-retryable set
isNonRetryableProviderError currently blocks retry for status 400, 401, 403, and 404 — but not 422. OpenAI, vLLM, and most other LLM-compatible providers return 422 for structurally invalid payloads (bad parameters, missing required fields, schema mismatches). These are permanent client errors that will never succeed on retry.
Because PROVIDER_API_RETRY_RE does not include "422" or "unprocessable", a 422 whose error message happens to contain a matching term (e.g. reset, closed) could accidentally be retried, wasting quota and delaying the error surfacing to the caller.
| function isNonRetryableProviderError(err: unknown): boolean { | |
| if (!err || typeof err !== "object") { | |
| return false; | |
| } | |
| const status = "status" in err ? (err.status as number) : undefined; | |
| // Client errors that are never retryable | |
| return status === 400 || status === 401 || status === 403 || status === 404; | |
| } | |
| function isNonRetryableProviderError(err: unknown): boolean { | |
| if (!err || typeof err !== "object") { | |
| return false; | |
| } | |
| const status = "status" in err ? (err.status as number) : undefined; | |
| // Client errors that are never retryable | |
| return status === 400 || status === 401 || status === 403 || status === 404 || status === 422; | |
| } |
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/infra/retry-policy.ts
Line: 118-125
Comment:
**422 Unprocessable Entity not in non-retryable set**
`isNonRetryableProviderError` currently blocks retry for status 400, 401, 403, and 404 — but not **422**. OpenAI, vLLM, and most other LLM-compatible providers return 422 for structurally invalid payloads (bad parameters, missing required fields, schema mismatches). These are permanent client errors that will never succeed on retry.
Because `PROVIDER_API_RETRY_RE` does not include `"422"` or `"unprocessable"`, a 422 whose error message happens to contain a matching term (e.g. `reset`, `closed`) could accidentally be retried, wasting quota and delaying the error surfacing to the caller.
```suggestion
function isNonRetryableProviderError(err: unknown): boolean {
if (!err || typeof err !== "object") {
return false;
}
const status = "status" in err ? (err.status as number) : undefined;
// Client errors that are never retryable
return status === 400 || status === 401 || status === 403 || status === 404 || status === 422;
}
```
How can I resolve this? If you propose a fix, please make it concise.There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2c93abb2f9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (normalizedProvider.retry) { | ||
| registerProviderRetryConfig(normalizedKey, normalizedProvider.retry); |
There was a problem hiding this comment.
Clear stale provider retry runners on config reload
normalizeProviders registers a runner when normalizedProvider.retry exists, but there is no corresponding unregister path when a later config reload removes that retry block (or removes the provider). Because the registry is module-scoped, the old runner remains active and openai-transport-stream will keep retrying for that provider until process restart, so runtime behavior no longer matches the updated config.
Useful? React with 👍 / 👎.
| continue; | ||
| } | ||
| next[normalizedKey] = normalizedProvider; | ||
|
|
||
| // Register provider-level retry config when present so the transport |
There was a problem hiding this comment.
Register retry after duplicate provider-key merge
When two provider keys normalize to the same id (for example, accidental whitespace variants), the existing branch merges configs and continues before reaching the retry-registration block. If only the later duplicate defines retry, the merged provider config contains retry settings but no runner is registered, so retries silently do not apply for that provider.
Useful? React with 👍 / 👎.
- Clear retry runner registry at start of normalizeProviders so removed/changed retry configs take effect without process restart - Move retry registration after duplicate provider-key merge so merged providers get their retry runner registered - Add 422 Unprocessable Entity to non-retryable status codes - Add test for 422 non-retry behavior Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 32d9efa49a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const responseStream = retryRunner | ||
| ? await retryRunner(createStream, "responses") | ||
| : await createStream(); |
There was a problem hiding this comment.
Make retry backoff abort-aware for streaming requests
This wraps stream creation in retryRunner(...), but the retry loop is not cancellation-aware, so if the first attempt fails and the user aborts while backoff sleep is in progress, cancellation is delayed until the sleep (and potentially later attempts) completes. In practice, a cancelled request can appear hung for up to the configured backoff window(s) when provider retry is enabled; retries should short-circuit immediately once options.signal is aborted.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Valid point. The existing retryAsync() in src/infra/retry.ts uses a plain sleep() that is not AbortSignal-aware — the sleepWithAbort() utility in src/infra/backoff.ts exists but is not wired into retryAsync. Fixing this would require modifying the shared retry infrastructure (used by all channel integrations too), which feels out of scope for this PR. Happy to file a follow-up issue to make retryAsync abort-aware.
In practice, the outer catch block in the transport stream checks options?.signal?.aborted and sets stopReason = "aborted", so the request does get cleaned up — just with a delay of up to one backoff interval.
| // Rebuild the provider retry runner registry on every normalization pass | ||
| // so removed/changed retry configs take effect without a process restart. | ||
| clearProviderRetryRunners(); |
There was a problem hiding this comment.
Clear provider retry runners on empty-provider reloads
The retry registry is cleared only here inside normalizeProviders, but config reloads that resolve to zero providers take the early skip path in models planning and never call this function, leaving previously registered runners active. That means removing all providers (or passing through an empty-provider config) can still apply stale retry behavior until restart. Fresh evidence: this commit moved the clear into normalization, so the early-empty skip path now bypasses registry reset entirely.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Good catch. When the provider map is empty/undefined, normalizeProviders returns early before reaching the clearProviderRetryRunners() call, so stale runners survive.
Fixed by moving the clear before the early return:
Move clearProviderRetryRunners() before the empty-provider early return so stale runners are cleaned up even when all providers are removed from config. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8112eeac68
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| // Uses the final merged value so duplicate-key merges are covered. | ||
| const finalRetry = next[normalizedKey]?.retry; | ||
| if (finalRetry) { | ||
| registerProviderRetryConfig(normalizedKey, finalRetry); |
There was a problem hiding this comment.
Normalize provider IDs before registering retry runners
registerProviderRetryConfig is keyed with normalizedKey, which only trims whitespace, but the runtime lookup path uses normalized provider IDs (for example lowercased and alias-mapped IDs such as z.ai → zai in model selection). When a config uses case variants or aliases, the transport calls getProviderRetryRunner(model.provider) with a different key and silently skips retries for that provider. Register (or lookup) with the same canonical provider-id normalization used by model resolution so provider retry works consistently.
Useful? React with 👍 / 👎.
| "headers" in err && err.headers && typeof err.headers === "object" | ||
| ? (err.headers as Record<string, unknown>) | ||
| : undefined; | ||
| const retryAfter = headers?.["retry-after"]; |
There was a problem hiding this comment.
Read Retry-After from Headers objects
getProviderApiRetryAfterMs assumes err.headers is a plain object and reads headers["retry-after"], but OpenAI-style errors commonly expose headers as a Headers instance. In that case this lookup returns undefined, so 429/503 responses with Retry-After are ignored and retries run on backoff defaults instead of server guidance, which can trigger premature retries and faster attempt exhaustion. Handle Headers via .get("retry-after") (with object fallback) before computing delay.
Useful? React with 👍 / 👎.
Three follow-up fixes for items the original PR explicitly deferred to a
later patch:
1. Provider ID normalization mismatch (provider-retry.ts)
Registration used `key.trim()` only; runtime lookups used `model.provider`
in canonical form (lowercased + alias-mapped). Provider configs keyed by
"OpenAI", "z.ai", "modelstudio", etc. silently failed to match runtime
lookups. Fix: route both register and lookup through normalizeProviderId
so they're symmetric. Tests cover case, alias, and whitespace variants.
2. Retry-After header parsing (retry-policy.ts)
getProviderApiRetryAfterMs assumed err.headers is a plain object and used
bracket access. fetch `Headers` instances only expose `.get()` —
bracket access returns undefined, silently dropping the server's hint.
Fix: probe both shapes; for plain objects also try Title-Case variants
(HTTP header names are case-insensitive, Headers.get handles that
internally). Tests cover plain-bag (lowercase + Title-Case) and Headers.
3. Abort-signal-aware backoff (retry.ts + retry-policy.ts + 3 transport sites)
Plain setTimeout-based sleep ignored the request's AbortSignal; cancelling
a request would still wait up to one full backoff interval (max 30s) before
the retry loop exited. Fix:
- Added `signal?: AbortSignal` to RetryOptions; abortableSleep() rejects
promptly on abort, retry loop catches and stops without throwing the
abort itself (rethrows the most recent attempt's error so the caller
can distinguish API failure from cancel by checking signal.aborted).
- Also check signal.aborted at top of each loop iteration so we don't
start a new attempt for an already-cancelled request.
- RetryRunner now accepts an optional `{ signal }` options object as a
third arg; backwards-compatible with the existing `(fn, label)` form.
- Three call sites in openai-transport-stream.ts updated to pass
`{ signal: options?.signal }`.
Tests: backoff is interrupted within ~50ms of abort even with 5s minDelay;
no new attempt is started when signal aborts during the first attempt.
All 51 retry-related tests pass; tsc --noEmit clean.
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Keep open, but not merge-ready: the PR tackles a real provider-retry gap, yet the current patch has blocking design issues around global retry state, over-broad config exposure, stale merge conflicts, and missing real behavior proof. Canonical path: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. So I’m closing this here because the remaining work is already tracked in the canonical issue. Review detailsBest possible solution: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. Do we have a high-confidence way to reproduce the issue? Not applicable as a feature PR. Source inspection confirms current main lacks configurable main LLM provider retry, while the patch defects are source-reproducible from the PR head and current main contracts. Is this the best way to solve the issue? No. The PR is a plausible direction, but the best fix needs scoped per-model/shared retry state and a settled provider API contract instead of a global registry plus generic schema that only some transports honor. Security review: Security review cleared: No concrete security or supply-chain regression was found; the diff does not add dependencies, workflow execution, credential handling, or secret exposure, though retry behavior remains an auth/provider merge-risk concern. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against b5999bc6a07d. |
|
Folded the three deferred review items into this PR rather than a follow-up.
Verification:
|
|
Codex review: found issues before merge. What this changes: The branch adds opt-in Maintainer follow-up before merge: This is an active contributor implementation touching public config and shared transport/retry behavior; maintainers should request fixes/rebase and choose between this PR and #38640 rather than queue an automated replacement now. Review findings:
Review detailsBest possible solution: Update this implementation or a single canonical replacement so provider retry is opt-in, scoped correctly through config reloads, preserves existing timeout/request-option behavior, updates generated config surfaces and docs, and has targeted regression coverage before #38640 is resolved. Full review comments:
Overall correctness: patch is incorrect What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against e46dccb35374. |
Pre-existing TS errors that blocked `pnpm check` (and therefore
`pnpm tsgo` in CI). All test-only changes; no runtime code touched
beyond fixture/mock typing.
- extensions/memory-core/src/dreaming.test.ts: add the now-required
`recencyHalfLifeDays` field to 12 ShortTermPromotionDreamingConfig
fixtures (uses constants.DEFAULT_DREAMING_RECENCY_HALF_LIFE_DAYS).
- src/memory-host-sdk/dreaming.test.ts, src/gateway/server-methods/
doctor.test.ts: explicitly type the resolveMemorySearchConfig mock
with `() => { enabled: boolean } | null` so test mocks can return
null (the real function's return type is `… | null`; vi.fn was
inferring the type from the initializer and dropping `| null`).
- src/agents/models-config.providers.{anthropic-vertex,nvidia,
moonshot}.test.ts: add the now-required `models` field to
ModelProviderConfig fixtures (or annotate the helper return as
ModelProviderConfig). Introduce a small partialModels() helper
in nvidia.test.ts to keep call sites readable.
- src/agents/models-config.providers.cloudflare-ai-gateway.test.ts:
narrow the credential union with an "in" check before reading
`metadata` (AuthProfileCredential lacks that field).
- src/agents/models-config.providers.ollama.test.ts: cast the env
literal as NodeJS.ProcessEnv so subsequent OLLAMA_API_KEY reads
typecheck (`satisfies` only validated, didn't widen).
- src/agents/models-config.providers.stepfun.test.ts: add `!`
non-null assertions on already-asserted standardProvider/
planProvider before calling .models on them.
- src/auto-reply/reply/dispatch-from-config.test.ts: update
`sendPolicy: "deny"` to the SessionSendPolicyConfig shape
`{ default: "deny" }`.
- src/infra/run-node.test.ts: change the spawn mock's `kill` return
type from `string` to `void` to match the consumer's
`kill?: (signal?) => void | boolean` shape.
- src/plugin-sdk/acp-runtime.test.ts, src/plugins/wired-hooks-
reply-dispatch.test.ts: add `CommandAuthorized: false` to ctx
fixtures (FinalizedMsgContext requires it).
Verification: pnpm tsgo / pnpm check pass. Retry test suite (the
PR-relevant work) 68/68 passes. dispatch-from-config moves -1 vs
HEAD (the sendPolicy fix repaired one pre-existing failure).
Other touched files have the same failure counts as HEAD.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Three P2 findings from clawsweeper at 2026-04-29T16:59:
1. Clear retry runners on the empty-provider skip path
`planOpenClawModelsJson` returns `{ action: "skip" }` early when
provider resolution is empty, before normalizeProviders runs — so
the previous fix that put `clearProviderRetryRunners()` inside
normalizeProviders is unreachable on that path. Add the call in
plan.ts before the early return so a "remove all providers"
reload actually clears the registry. The clear inside
normalizeProviders stays — it covers "1+ providers, retry removed
from one" while this new clear covers "0 providers, normalize
never called."
2. Preserve OpenAI SDK request options in the three createStream
wrappers. Upstream main passes
`buildOpenAISdkRequestOptions(model, options?.signal)` to the SDK
so per-provider `timeoutSeconds` reaches each request; the PR
branch was passing only `{ signal: options.signal }`, which would
drop the timeout on rebase. Port a minimal helper with the same
signature (signal-only on this base; the timeout-resolution
chain doesn't exist here yet) and call it at all three sites.
On rebase to current main, the helper definition resolves to
main's timeout-aware version and the three call sites stay
unchanged.
3. Regenerate the public config schema. Adding
models.providers.*.retry to ModelProviderSchema changes the
surface that buildConfigSchema() serves; ran
`pnpm config:schema:gen` and `pnpm config:docs:gen` to update
src/config/schema.base.generated.ts (now contains the four
retry entries) and the config-doc baseline sha256.
Verification: pnpm tsgo / pnpm check clean. 68/68 retry-related
tests pass (provider-retry, retry-policy, retry, transport-stream).
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Folded the three P2 findings from the @clawsweeper / Codex review at 2026-04-29T16:59 into commit 1. Clear retry runners on the empty-provider skip path ( 2. Preserve 3. Regenerate the public config schema Verification: Re: #38640 — happy to defer to whichever design the maintainers prefer; this PR's scope (opt-in |
…1443) Closes the clawsweeper P3 finding asking for a changelog entry for the new opt-in `models.providers.<name>.retry` feature. Description summarizes the scope landed across the prior commits (config schema, runner registry, abort-aware backoff, provider-id normalization, Retry-After parsing, 422 in non-retryable set) so reviewers and downstream users can find the feature in the next release notes. Sweep status (responding to bot reviews on this PR): - HTTP 422 in isNonRetryableProviderError: already addressed in src/infra/retry-policy.ts:176 (no change needed). - Register-after-duplicate-key-merge: current loop in src/agents/models-config.providers.normalize.ts uses the merged next[normalizedKey].retry value with no `continue` short-circuit, so duplicate-key merges are correctly covered (no change needed). - Changelog entry: this commit.
|
Bot-feedback sweep + status update. Three potentially-unclosed bot points checked, results:
On rebase against current Current status: all bot rounds addressed, CI clean (4 ✓ / 3 skip / 1 cancel — no real failures), no human-maintainer review yet. Ready when a reviewer has cycles. |
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper applied the proposed close for this PR.
|
Summary
retryconfig tomodels.providers.<name>for retrying transient LLM provider failures (ECONNREFUSED, 429, 502/503/504, timeouts)retryAsync,RetryConfig,RetryConfigSchema) — no new retry primitivesMotivation
Self-hosted LLM backends (vLLM, Ollama, etc.) sometimes require scheduled restarts for maintenance. Without provider-level retry, all in-flight and new requests fail during the restart window. This change lets users configure retry to ride through transient outages:
Closes #31104
Test plan