4evercool/dsh-stalled-turn-continue

Resumes turns that end successfully with reasoning only and no text or tool call, which DSH otherwise records as completed.

Catches the failure mode where a model emits a reasoning block and then its end-of-turn token: DSH records the turn as completed, so the agent stops mid-thought and waits for a hand-typed "continue". The measured number in the README is what makes the case — across 123 local session logs, 40 of 498 completed turns (8%) ended without visible output, spread over four models, with a rate that depends on the model and ranged from about 1% to over 50%. When the last assistant message has neither a text part nor a tool call, the plugin waits graceMs and sends one follow-up message through the agent registry, rather than resuming blind on every empty turn.

Workflow & Automation ★ 0 updated 2026-09-15
View on GitHub ↗

Install

dsh plugin --profile web add dsh-stalled-turn-continue

The npm line, then restart DSH; the host log shows a line per resume. Configuration is by overriding the row id in the profile's cordis.patch.yml — do not add a second insert with the same id, which fails the load with duplicate loader entry id. graceMs sets the wait before the follow-up message is sent. Removal is the mirror: dsh plugin --profile web remove dsh-stalled-turn-continue.

Compatibility

DSH with the agent registry available to the host half. It acts only on turn/end with reason.kind of completed or no-visible-output — the second kind is what a DSH build records when it classifies the case itself, and accepting both means a harness upgrade that starts classifying it keeps working. It deliberately ignores error, interrupted, max-tokens, aborted and blocked, so it can run alongside dsh-client-auto-continue without double resumes; that plugin handles those reasons and by design ignores a completed turn, which is exactly the gap this fills.

Details

Alternatives

PerryLink/dsh-autotier · cq-guojia/dsh-task-ledger · ds-hu/dsh-auto-task-center

More plugins in Workflow & Automation

Browse more in Workflow & Automation

Guides for Workflow & Automation plugins