← 返回列表

dsh-messages-sanitizer

DeepSeek Harness 会话与消息 低风险

工具调度崩溃后自动修复 messages 数组(孤儿 tool_calls / tool 消息),防止 400 INVALID_REQUEST 会话卡死。

Auto-repairs the messages array after a tool-dispatch crash (orphaned tool_calls / tool messages), preventing 400 INVALID_REQUEST session lock-ups.

怎么安装

DeepSeek Harness dsh plugin add dsh-messages-sanitizer

简介

dsh-messages-sanitizer **🔧 你在 DeepSeek Harness 里创建 / 加载插件,对话崩了吗?本插件专治这个。** > 开发或加载本地插件时,一次工具调度崩溃(Cannot read properties of undefined (reading 'prepare'))就会在会话里留下孤儿 tool_calls,之后**每一轮**都被 400 INVALID_REQUEST 拒绝、重试无效、会话卡死。**本插件自动把 messages 数组修回 合法,让对话继续,不再卡死。** 💥 Before ✅ After (安装本插件后) 插件崩溃 插件崩溃 ↓ ↓ 留下孤儿 tool_calls messages 自动修复 ↓ ↓ 400 INVALID_REQUEST 死循环 对话继续 ↓ 对话卡死 DeepSeek Harness 消息数组自动矫正插件:**防止一切因 messages 数组不合法导致的聊天崩溃**。 背景:你遇到的那个崩溃 OpenAI 兼容协议要求工具调用成对出现,且 tool 消息必须**紧邻**其 assistant tool_calls 消息(中间不能插入任何 user / assistant 消息): assistant { content: ..., tool_calls: [{ id: "call_A", ... …

推荐参考

50 工具本身 · 参考星标、下载量、最近更新、安全检查和文档情况
– 用户关注 · 参考最近的查看、安装命令复制和外链访问
50 推荐程度
0访问
0独立访客
0复制安装命令
0下载点击
0外链跳转

信息

协议
MIT
语言
JavaScript
GitHub 星标
3
月下载
828
最近更新
2026-09-04
创建于
2026-08-15

链接

GitHub ↗ npm ↗ 报告问题 ↗

基础安全检查

检查结果
无
收录来源
curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
主题标签
ai-agent, coding-agent, deepseek, deepseek-harness, deepseek-harness-plugin, dsh-plugin, message-repair, openai-compatible, tool-calling

同类推荐

DeepSeek Harness
推荐77

DSH-EasyRewrite

Renzic-Stone/DSH-EasyRewrite

在 dsh web 中内联编辑与撤回自己的消息——惰性、无痕,带版本翻页器与会话级草稿持久化。

☆ 116 ↓ 5.7K 会话与消息 ↗
DeepSeek Harness 新上架
推荐71

dsh-web

zhu1090093659/dsh-web-ui/tree/main/packages/dsh-chat-recovery

对话恢复插件:编辑最近一轮已结束的用户消息、显式重试失败轮次;两条路径都走 session fork 分支,原会话不被改动。

☆ 5.9K ↓ – 会话与消息 ↗
DeepSeek Harness
推荐71

dsh-nested-followups

sluminositys/dsh-nested-followups

从任意层级的已完成回答持续创建隔离分支,主会话始终不受影响。

☆ 48 ↓ 830 会话与消息 ↗
DeepSeek Harness 精选
推荐69

dsh-session-sync

PerryLink/dsh-session-sync

DeepSeek Harness 的跨设备会话同步:经 git 在多机之间同步会话与设置。

☆ 12 ↓ 2.8K 会话与消息 ↗