haochi72/dsh-auto-continue-429 ↗★ 2
dsh-auto-continue-429
Auto-continue on 429 rate limit and quota-exhausted errors for DeepSeek Harness Web UI. Host-side RATE_LIMIT/QUOTA recovery plus an on/off switch at the bottom of the chat input area.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:haochi72/dsh-auto-continue-429说明文档
阅读完整 README ↗🚀 使用
1. 确认加载成功
重启 DSH 后在对话框输入区底部,应该出现一个胶囊形的 「429」开关条(绿色=已开启)。
2. 控制开关
| 操作 | 效果 |
|---|---|
| 点击对话框底部的开关条 | 切换快捷开关(quickOn),绿色=开,灰色=关 |
| 设置页 → 429 自动 Continue 卡片 →「启用插件」 | 切换主开关(enabled),与对话框快捷开关互不联动 |
| 在设置页停用插件 | 对话框底部的开关条自动隐藏;重新启用后恢复显示 |
| 设置页 →「连续失败上限」 | 自定义失败多少轮后停止自动 continue(1-100) |
3. 遇到 429 / 配额耗尽时的行为
LLM 返回 429 或配额耗尽(insufficient_quota)
↓
dsh-llm-retry 在当前 step 内重试 2 次(内置)
↓
重试耗尽 → turn 以 error(RATE_LIMIT / QUOTA) 结束
↓
★ 本插件介入
↓
等 1~2 秒(随机)→ 发送 "continue" → 新 turn 启动 ✅
↓
(如果又 429)
↓
等 1~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)
continueMessage: "continue" # 发送的 continue 消息文本