MistRain-1/dsh-reconnect ↗★ 3

dsh-reconnect

Safe model-request retry for DeepSeek Harness with exponential backoff, model-availability recovery, and configurable unknown-error limits. 适合需要应对模型请求超额或未知错误,实现自动安全重试的用户。

パッケージ
dsh-reconnect
互換性
未検証
Harness ピア範囲
*
バージョン
2.0.0
ライセンス
MIT
最終更新
2026/08/21

同名パッケージの別リポジトリ

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MistRain-1/dsh-reconnect

ドキュメント

README 全文を読む ↗

Visual Configuration

Open Settings → Plugin configuration. ReConnect is shown as a plugin card in that page:

  • Max wait per attempt: drop-down presets (1/2/5/10/30/60/120 seconds) or a custom value
  • Retry on quota: toggle, off by default
  • Retry unknown errors indefinitely: toggle, on by default
  • Max retries for unknown errors: default 3. Missing or unconfigured model errors are not subject to this cap and always retry.

Changes take effect immediately without restarting DSH.

YAML Configuration

The plugin accepts optional values in its Cordis row config:

  • maxDelayMs (integer milliseconds, default 60000): caps the local exponential-backoff delay; for example 15000 produces 1s -> 2s -> 4s -> 8s -> 15s -> 15s... indefinitely. A positive Provider Retry-After remains authoritative.
  • retryQuota (boolean, default false): whether QUOTA errors are also retried.
  • retryUnknown (boolean, default true): whether unknown errors are retried indefinitely.
  • unknownMaxRetries (integer, default 3): bounded cap for consecutive unknown failures in the same model step; missing or unconfigured model errors do not use this cap.

The settings service persists the plugin card values. Restore defaults removes the user overrides and immediately returns to the schema/Cordis defaults; a restart is not required.

The plugin's own retry policy is the downstream recovery for both Provider normal and always policies. The two layers do not multiply retries: normal schedules only its configured codes before this plugin, while always delegates the decision downstream.

maxDelayMs caps the local exponential wait, not a Provider Retry-After value and not the total retry duration.

- insert:
    - id: reconnect
      name: dsh-reconnect
      config:
        maxDelayMs: 15000
        retryQuota: false
        retryUnknown: true

Invalid or missing maxDelayMs values fall back to 60000.