← 返回列表

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 github:Leeminjing/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", ... …

推荐参考

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

信息

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

链接

GitHub ↗ 报告问题 ↗

基础安全检查

检查结果
curated 收录但无 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 新上架
推荐69

dsh-message-edit

Moeblack/dsh-message-edit

基于分支的消息编辑、reroll、重试与版本时间线。

☆ 25 ↓ 524 会话与消息
DeepSeek Harness 新上架
推荐66

dsh-message-edit

dsh-external/dsh-message-edit

DSH 插件:分支式消息编辑、重掷、重试与版本时间线。

☆ 25 ↓ 524 会话与消息
DeepSeek HarnessClaude CodeCodexMCP 服务器 新上架
推荐65

task-passport

dongsheng123132/task-passport

通过机器可读检查点与乐观锁,在 DeepSeek Harness、WorkBuddy、Claude Code 和 Codex 之间交接持久任务状态。

☆ 6 ↓ 527 会话与消息
DeepSeek HarnessCodex 新上架
推荐64

dsh-side-chat

heartmove/dsh-side-chat

选中对话片段,在右侧面板的侧边聊天中提问(按会话隔离);AI 回复可原文或摘要后带回主会话。

☆ 7 ↓ 206 会话与消息