Leeminjing/dsh-messages-sanitizer ↗★ 0
dsh-messages-sanitizer
DeepSeek Harness plugin: auto-repairs an invalid messages array (orphaned tool_calls / tool messages) to stop 400 INVALID_REQUEST session lock-ups.
AI Analysis
核心用途是解决 400 INVALID_REQUEST 导致的会话锁死问题。适合经常遇到工具调用链异常、需要自动修复消息历史的 DSH 用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Leeminjing/dsh-messages-sanitizerREADME
Read the full README ↗配置
| 键 | 类型 | 默认 | 说明 |
|---|---|---|---|
enabled | boolean | true | 总开关 |
停用方式:删除 cordis.patch.yml 中的插入行,或改为:
- insert:
- id: messages-sanitizer
name: 'dsh-messages-sanitizer'
disabled: true