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.

패키지
@irwdone/dsh-tool-call-leak-fix
호환성
미검증
버전
0.5.1
라이선스
MIT
최근 업데이트
2026. 11. 2.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:IRwDONE/dsh-tool-call-leak-fix

5. 配置

该行的 config 会被校验并归一化;非法值回退默认而不是抛错。数值阈值必须是整数且 ≥1(只有 maxCorrectionsPerTurn 允许 0)。

键默认含义
enabledtrue为 false 时不注册任何监听器,等同关闭插件
maxLines100单个字符串叶子的行数上限(PAYLOAD_TOO_LONG 预警)
maxChars20000单个字符串叶子的字符数上限
closingTagCount8</ 前缀出现多少次算「密集」——只作证据,永不导致拦截
endSequenceRepeats2尾部连续结束序列达到几个即判损坏
maxCorrectionsPerTurn1每个 turn 最多自愈几次(防循环)。本 bundle 的 patch 把它设为 2:让"第一次纠正后又写坏"的情况获得一次更硬的二次纠正
langzhzh / en,决定注入文案与拦截原因的语言
noopChecktrueM3 空转检查的总开关
debugLogfalse诊断日志开关;false 时不打开任何文件(零开销)
debugLogPath''空串 ⇒ 由系统临时目录推导(绝不硬编码本机路径)
contextGuardfalse内部保留、未接线——见「已知边界」
contextGuardNote''内部保留、未接线
forkBrieftrueR16(M7):fork 会话在其首步之前注入一次"会话简报"(把继承来的损坏产物标为无效)。置 false 关闭
forkBriefNote''R16:简报文本;空串 = 内置中英文文本
repairContexttrueR19(M9):把损坏步骤(损坏 且 该步没有任何工具调用)在模型可见 surface 上遮蔽并换成一条说明;零模型调用。先自检、失败即对整个会话关闭。设 false 可完全停用