dsh-reasoning-only-guard

Source candidate

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.

Author: apex-mochen · Sessions & Messages · Catalog snapshot: 2026-09-18

Canonical semantic path

Models & AI CapabilitiesRequest Reliability & Output Validation

One primary path; alternate capabilities remain separate.

What it may solve

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.

Imported third-party catalog description; not a Registry verification conclusion.

What can currently be confirmed

Not analyzed

DSH compatibility

No exact-version test is available.

Not analyzed

Security analysis

No Registry security conclusion is available.

Not analyzed

Functional verification

No functional smoke evidence is available.

Not analyzed

Permissions

Plugin permissions have not been resolved.

Not analyzed

Package integrity

Package structure and integrity have not been analyzed.

Continue with the latest plugin manager

Describe your task in a DSH conversation and mention dsh-reasoning-only-guard. After installing or updating the manager from npm latest, it can find this candidate through Registry, then inspect its actual source and version locally.

Install or update the plugin manager (latest)