IRwDONE/dsh-tool-call-leak-fix ↗★ 2
@irwdone/dsh-tool-call-leak-fix
Fixes DSH's silent failure where a tool call never executes and its markup (antml:-prefixed or bare invoke/parameter tags) leaks into the reply as text: detects and denies damaged calls, self-heals within the same turn, and after a fork voids the damaged output on the model-visible surface. Zero dependencies.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:IRwDONE/dsh-tool-call-leak-fix说明文档
阅读完整 README ↗5. 配置
该行的 config 会被校验并归一化;非法值回退默认而不是抛错。数值阈值必须是整数且 ≥1(只有 maxCorrectionsPerTurn 允许 0)。
| 键 | 默认 | 含义 |
|---|---|---|
enabled | true | 为 false 时不注册任何监听器,等同关闭插件 |
maxLines | 100 | 单个字符串叶子的行数上限(PAYLOAD_TOO_LONG 预警) |
maxChars | 20000 | 单个字符串叶子的字符数上限 |
closingTagCount | 8 | </ 前缀出现多少次算「密集」——只作证据,永不导致拦截 |
endSequenceRepeats | 2 | 尾部连续结束序列达到几个即判损坏 |
maxCorrectionsPerTurn | 1 | 每个 turn 最多自愈几次(防循环)。本 bundle 的 patch 把它设为 2:让"第一次纠正后又写坏"的情况获得一次更硬的二次纠正 |
lang | zh | zh / en,决定注入文案与拦截原因的语言 |
noopCheck | true | M3 空转检查的总开关 |
debugLog | false | 诊断日志开关;false 时不打开任何文件(零开销) |
debugLogPath | '' | 空串 ⇒ 由系统临时目录推导(绝不硬编码本机路径) |
contextGuard | false | 内部保留、未接线——见「已知边界」 |
contextGuardNote | '' | 内部保留、未接线 |
forkBrief | true | R16(M7):fork 会话在其首步之前注入一次"会话简报"(把继承来的损坏产物标为无效)。置 false 关闭 |
forkBriefNote | '' | R16:简报文本;空串 = 内置中英文文本 |
repairContext | true | R19(M9):把损坏步骤(损坏 且 该步没有任何工具调用)在模型可见 surface 上遮蔽并换成一条说明;零模型调用。先自检、失败即对整个会话关闭。设 false 可完全停用 |