dsh-llm-network-retry: Keeping a conversation alive during network outages

`dsh-llm-network-retry` is a DSH plugin maintained by elfgzp that implements the `unbounded_connection_retries` rule from Codex CLI: it retries connection failures (TRANSPORT/TIMEOUT/NETWORK) without limits, starting at 5 seconds and doubling up to 60 seconds, while keeping other errors bounded; actual 400 errors, authentication failures, or context overflow still fail immediately. It hooks into the retry waterfall of the agent loop at the same extension point as the built-in `llm-retry`, executing via `prepend` to prevent double reconnection chains. It works out of the box without any configuration, but also offers three presets (`codex/always/normal`) and optional configurations such as backoff and scope. Additionally, the plugin handles the interruption caused by process crashes: it marks scan sessions on startup and automatically resumes sessions upon reopening, without blind replaying and to prevent restart loops. It is suitable for long-running task scenarios frequently affected by network switching. Before installation, users should check the source code and license (MIT). The plugin only covers failures at the model request layer.

Read More