- Início
- Plugins
- Ferramentas e funções
- dsh-stalled-turn-continue
dsh-stalled-turn-continue
4evercool/dsh-stalled-turn-continue
DSH plugin: resumes a turn that ended successfully with reasoning only, no text and no tool call, by sending one bounded follow-up
Instalar
dsh plugin --profile web add github:4evercool/dsh-stalled-turn-continueREADME
dsh-stalled-turn-continue
A DeepSeek Harness (DSH) host plugin that resumes a turn which ended successfully with reasoning only — no text part and no tool call.
The problem
A model sometimes emits a reasoning block and then its end-of-turn token. DSH records that turn as turn/end with reason.kind: "completed", so the agent stops mid-thought and waits for a hand-typed "continue". dsh-client-auto-continue does not cover this case: it reacts to error, interrupted, max-tokens and host/agent-error, and by design ignores a completed turn.
Measured on 123 local session logs: 40 of 498 completed turns (8 %) ended without visible output, across four models. The rate depends on the model (from about 1 % to over 50 %).
What it does
On turn/end with reason.kind completed or no-visible-output, the plugin checks the turn's last assistant message. If that message has neither a text part nor a tool call, it waits graceMs and sends one follow-up message through the agent registry.
- It ignores
error,interrupted,max-tokens,abortedandblocked, so it runs alongsidedsh-client-auto-continuewithout double resumes. no-visible-outputis the kind a DSH build records when it classifies this turn itself; the plugin accepts both kinds, so such a DSH upgrade keeps it working.- A turn with visible output resets the counter; a human message or a host
turn/startcancels an armed resume.
Install
dsh plugin --profile web add dsh-stalled-turn-continue
Restart DSH. The host log then shows:
[stalled-turn-continue] watching; grace=3000ms cooldown=20000ms maxConsecutive=3
Config
Override the row by id in your profile's cordis.patch.yml. Do not add a second insert with the same id — that fails the load with duplicate loader entry id.
- id: stalled-turn-continue
config:
graceMs: 3000
cooldownMs: 20000
maxConsecutive: 3
| Key | Default | Meaning |
|---|---|---|
enabled | true | false mounts nothing |
graceMs | 3000 | Wait after turn/end before resuming; the host may start its own turn meanwhile |
cooldownMs | 20000 | Minimum time between two resumes in one session |
maxConsecutive | 3 | Resumes in a row without visible output before the plugin waits for a human |
continueText | see index.js | Text of the follow-up message |
A patch replaces the row's whole config, so restate every key you want to keep.
Test
npm test
Remove
dsh plugin --profile web remove dsh-stalled-turn-continue
License
MIT
Plugins relacionados
archify (deepseek-harness)
tt-a1i/archify
WeKnora (dsh-weknora)
tencent/weknora
weknora
tencent/weknora
BrowserSkill (dsh-plugin-browserskill)
tencent/browserskill