Rinai-R/dsh-omp-retry
An OMP-style retry policy for rate limits: up to ten attempts, at least thirty seconds apart, honouring a provider's retry-after up to five minutes.
Rate limits get long waits instead of fast repeats: the delay is the larger of thirty seconds and the provider's own retry-after, and a required wait above five minutes ends the chain rather than sleeping through it. Cancellation, turn end and plugin disposal abort an active wait, so a paused session does not keep a timer alive. If you work against tight per-minute quotas, this is a one-line policy change that avoids most of the failed turns.
Install
dsh plugin --profile desktop add github:Rinai-R/dsh-omp-retryThe GitHub line from the README, which notes you should substitute your own profile name for a web or custom profile, then restart. The README explains the gap it fills: the built-in retry policy's defaults exhaust five attempts between half a second and ten seconds, so a rate-limit window can still be open when the budget is gone.
Compatibility
It prepends one error listener ahead of the built-in retry bundle and owns only the rate-limit failure code; server, timeout, transport and empty-response failures stay with the built-in policy. Context-window, quota, auth and invalid-request errors are never retried by it, which is the correct behaviour — those are not transient. Every scheduled retry appends durable events, so the normal retry UI and session history keep working.
Details
- Repo: Rinai-R/dsh-omp-retry
- Category: Models & Providers
- Stars: 1
- Version: installed from the repo's default branch
Alternatives
r600a-code/dsh-swarm-router · zeng6125-rgb/dsh-llm-retry-settings · mirelconstantin/dsh-opencode-router