fengxiforcy/dsh-surrogate-guard ↗★ 0
dsh-surrogate-guard
DeepSeek Harness plugin: neutralize lone UTF-16 surrogates in tool results and entering messages before the session log records them (prevents permanent 400 INVALID_REQUEST).
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:fengxiforcy/dsh-surrogate-guardドキュメント
README 全文を読む ↗配置
- id: surrogate-guard
config:
replacement: '?' # 默认 U+FFFD
toolResults: true # tools/post-execute + tools/ptc-dispatch-log
userMessages: true # agent/pre-step
log: true # 只记数量,不记内容