haochi72/dsh-auto-continue-4290

dsh-auto-continue-429

Auto-continue on 429 rate limit errors for DeepSeek Harness Web UI. Host-side RATE_LIMIT recovery plus a floating toggle button in the browser.

包名
dsh-auto-continue-429
版本
0.1.2
许可证
MIT
最近更新
2026年8月18日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:haochi72/dsh-auto-continue-429

🚀 使用

1. 确认加载成功

重启 DSH 后在界面右侧垂直居中位置,应该出现一个绿色圆形 「429」 按钮。

2. 控制开关

操作效果
点击绿色按钮切换开启/关闭(按钮变灰=已关闭)
点击按钮右上角红色 ×隐藏悬浮按钮,右侧出现蓝色「+」
点击蓝色「+」恢复显示悬浮按钮
设置页 → 429 自动 Continue 卡片开启/关闭 + 显示/隐藏按钮

3. 遇到 429 / 配额耗尽时的行为

LLM 返回 429 或配额耗尽(insufficient_quota)
  ↓
dsh-llm-retry 在当前 step 内重试 2 次(内置)
  ↓
重试耗尽 → turn 以 error(RATE_LIMIT / QUOTA) 结束
  ↓
★ 本插件介入
  ↓
等 2 秒 → 发送 "continue" → 新 turn 启动 ✅
  ↓
(如果又 429)
  ↓
等 2 秒 → 发送 "continue" → …(重复到第 20 次)
  ↓
如果某次 turn 正常结束(reason.kind ≠ error)→ 计数归零 🎉
  ↓
连续 20 次全失败 → 停止,等待手动介入

⚙️ 配置(可选)

插件提供以下 Schema 配置项(在 cordis.patch.yml 或 profile 配置中声明):

- id: auto-continue-429
  name: dsh-auto-continue-429
  config:
    maxRetries: 20          # 连续失败最大次数(默认20)
    initialDelayMs: 2000    # 每次失败后的等待时间(毫秒,默认2000=2秒)
    maxDelayMs: 60000       # API Retry-After 上限(毫秒)
    jitterRatio: 0.15       # 抖动比例(保留用于将来扩展,当前未使用)
    continueMessage: "continue"  # 发送的 continue 消息文本