dsh-continue-task: Resuming Interrupted Sessions for DeepSeek Harness
ceasarxuu/dsh-continue-task
A DSH plugin that automatically resumes interrupted DeepSeek Harness sessions after an app restart, network failure, or exhausted model quota, following configurable recovery policies.
dsh-continue-task is a session recovery plugin for DeepSeek Harness that handles tasks cut off by an app exit, a network failure, or an exhausted model quota. It reads the last turn state from the persisted log to classify the interruption, then appends a continuation message according to your policy so the workflow picks itself back up. Every recovery appears as an ordinary session message, making it clear why and what was continued, with the session log remaining the single source of truth. A settings console lets you tune startup wait, lookback window, retry parameters, and backup models, and lists pending sessions for item-by-item handling.
How to Install
dsh plugin --profile web add @ceasarxuu/dsh-continue-taskReplace --profile with the profile name you actually run (see ls ~/.dsh/profiles/): usually web in the browser UI, desktop or desktop-NNN in the desktop app.
- Category
- Sessions & Messages
- Platform
- DSH Plugin
- Author
- ceasarxuu
- Distribution
- Plugin
dsh-continue-task Key Features
dsh-continue-task Repo Summary
What Does It Do?
Continue Task is a DSH plugin for DeepSeek Harness that automatically resumes sessions interrupted by an app restart, a network failure, or an exhausted model quota. It solves the problem of tasks stalling after an unexpected interruption: the plugin inspects the last turn state in the persisted log, classifies the cause, and appends a continuation message according to your configured policy. Every recovery is delivered as an ordinary session message, so the conversation itself shows why it continued and what it continued, keeping the session log as the single source of truth. It is maintained by ceasarXuu under the MIT license and written in JavaScript.
Core Features
- Automatic resume after startup: looks back at recently active sessions and appends a restart continuation message for turns left unfinished by a crash or a normal exit.
- Exponential backoff for network errors: retries only retryable error codes, succeeds on the first attempt after connectivity returns, and respects retry-count and total-wait limits.
- Fallback model on quota errors: switches to a configured backup model when quota, credential, or model-unavailable routing errors occur, supporting up to three backup provider/model entries.
- Explicit safety boundaries: user-stopped sessions, subagent sessions, and archived sessions are never resumed, and manual input cancels any pending automatic recovery and resets its counter.
- Settings console: adjust startup wait, lookback window, maximum recoveries per scan, retry parameters, and continuation prompts, then review pending sessions and recent actions with one-click scan or per-item cancel.
How to Use This Plugin?
After installing and enabling it in DSH, open the Continue Task section in Settings and configure the four policy groups: continue after startup, automatic retry on network failure, model switching on quota exhaustion, and the general recovery prompt. Changes save automatically. Day to day no action is needed: interrupted sessions are resumed by policy, and once a recovery request is accepted the session shows as running in the sidebar, where you can view, stop, or keep typing as usual. After fixing your network or quota, use the scan-and-recover action at the bottom of the page to force one more attempt; stopping a session manually cancels its automatic retries.
How to Troubleshoot This Plugin?
If a crash happens before the user input is persisted, no recoverable turn may be visible, and the task has to be restarted by hand. Network recovery uses backoff retries rather than probing system connectivity, so retries fail fast and keep backing off while offline, which is expected behavior. Errors outside the native resumable set, such as malformed model output, are recovered by appending a continuation message instead. For remote storage without a local file location, stale sessions fall back to the last prompt time from the session list.
This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: ceasarxuu/dsh-continue-task. The plugin is third-party code that runs on your machine once installed; inclusion does not imply endorsement — please review the source before installing.
DSH Plugin FAQ
