Skills Plugins MCP Model 导航 博客 资讯 留言 我的中心

dsh-reasoning-only-guard

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.

dsh plugin --profile web add github:apex-mochen/dsh-reasoning-only-guard

Source

Plugin metadata is mirrored from a public directory; GitHub is the source of truth.
Publisher
apex-mochen
Category
Sessions & Messages
Last updated
2026-09-16