← 返回列表

dsh-reasoning-only-guard

DeepSeek Harness 会话与消息 低风险

防止「只有推理、没有正文」的一轮把整个会话变成不可用。某一轮没有可见文本也没有 tool-call 时,assistant 消息会以空内容落盘,此后该会话的每一次请求都会被网关以 "content or tool_calls must be set" 拒绝,会话彻底死亡且无法再从对话里找回。本插件只注册一个 llm/stream waterfall 监听器,且仅当这一轮没有任何可见产出时,在终止 finish 之前注入一小段文本,使落盘消息永远不为空。附带 DSH 自带 mock 造不出的夹具(严格只有推理的 SSE 服务,因为 llm-mock-server 不允许空 successText,且 reasoning_success 总会再补一段正文),以及把真实落盘会话经 DSH 自己的 serializeMessages 重放的端到端复现。属预防而非修复。零依赖、单文件、不访问进程与文件系统。

Keeps one reasoning-only turn from making an entire session unusable. When a turn produces no visible text and no tool call, the assistant message is persisted empty, the gateway then rejects every later request in that session with 'content or tool_calls must be set', and the session is dead with no way back through chat. This plugin registers a single llm/stream waterfall listener and, only when the turn carried nothing visible, injects a small text block immediately before the terminal finish, so the persisted message is never empty. Ships the fixture DSH's own mock cannot express (a strictly reasoning-only SSE server, since llm-mock-server forbids an empty successText and always appends text after reasoning), plus an end-to-end reproduction that replays a real persisted session through DSH's own serializeMessages. Preventive, not a repair. Zero dependencies, one file, no process or filesystem access.

怎么安装

DeepSeek Harness dsh plugin add github:apex-mochen/dsh-reasoning-only-guard

简介

dsh-reasoning-only-guard **Stops a reasoning-only turn from bricking a session.** If a turn produces no visible text and no tool call, this plugin injects a small text block so the assistant message that gets persisted is never empty. The failure it prevents When a model answers entirely inside its reasoning channel, the turn has no text and no tool call. The assistant message is then persisted with empty content, and **every later turn of that session replays it**. A gateway rejects an assistant message with neither content nor tool_calls (content or tool_calls must be set) — so from that poi…

推荐参考

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

信息

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

链接

GitHub ↗ 报告问题 ↗

基础安全检查

检查结果
curated 收录但无 npm 包/安装命令
收录来源
curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin

同类推荐

DeepSeek Harness
推荐77

DSH-EasyRewrite

Renzic-Stone/DSH-EasyRewrite

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

☆ 115 ↓ 8.1K 会话与消息
DeepSeek Harness
推荐75

dsh-synapse

liangmianya/dsh-synapse

DeepSeek Harness 的可视化非线性对话工作区:把会话、追问与分支变成可浏览、可拖拽的对话地图。

☆ 402 ↓ 1.1K 会话与消息
DeepSeek HarnessClaude Code
推荐71

dsh-claude-move

PerryLink/dsh-claude-move

四合一迁移向导:把 Claude Code、Codex、OpenCode、Hermes 的会话、记忆、技能、指令与斜杠命令迁入 DSH(/move 向导,审批门 + 幂等 move.json,会话可续聊)。

☆ 23 ↓ 3.1K 会话与消息
DeepSeek Harness 新上架
推荐71

dsh-web

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

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

☆ 5.9K ↓ – 会话与消息