Introduction¶
When running long tasks with the DSH Web GUI, a turn may stop midway due to network errors, user interruption, or token limits. The common workaround is to manually type “Continue” (继续) into the input box and try to append the interruption reason and context to the prompt; otherwise, the model tends to repeat completed steps or re-explain the background. Introducing the client-side plugin dsh-continue-button (maintainer: lilcandi): it adds a round “Continue” button next to the composer’s send key. A single click writes a structured continuation instruction into the draft and follows the same submission path as the user pressing send, allowing the interrupted task to resume from the breakpoint.
What is this¶
dsh-continue-button is a pure client-side DSH plugin (Category: Client-side). It has no host service dependencies, makes no additional network requests, and does not inject system prompts. It is distributed as a hand-written lazy-CJS bundle (client.js) with zero build dependencies. The package.json specifies version 0.1.0, license MIT, and engine requirement DSH >=0.2.0-rc.1 <0.2.1-0 || >=0.2.1-0 <0.3.0-0.
The plugin mounts a button in the official DSH slot conversation.input.activity (to the right of the model selector, left of the send/stop main button); if the slot is occupied, it falls back to conversation.input.right (to the left of the model selector) within approximately 2 seconds.
Core Functionality¶
Click Behavior¶
| Scenario | Behavior |
|---|---|
| Session interrupted / Turn errored | Reads interruption reason and transcript tail context, generates structured continuation instruction, and auto-sends |
| Session still running | Sends as well; queued for the next turn via inputActions.submit() with mode:"queue" without interrupting the current turn |
| Text already in draft | Continuation instruction is appended after existing draft text and sent together; does not overwrite |
| Alt-click or Right-click | Sends only the raw “Continue” text without context |
The button provides approximately 900ms of visual feedback after sending.
Smart Mode Continuation Text (Default)¶
By default, it generates a four-section prompt, for example:
Continue.
[Interruption Status] Previous "send" failed: ECONNRESET socket hang up
[Current Task] Attach plugin to profile
[Last Output Before Interruption (Tail Fragment)] Finished modifying three files, ready to run tests next.
(Previous turn was aborted, ending content incomplete)
[Turn Termination] INTERRUPTED User aborted
Please continue directly from the interruption point: do not repeat completed content, do not re-explain background, directly give the next action step.
The [Interruption Status] takes the first matching signal by priority: session.promptError, session.lastAgentError, transcript tail turn-error / turn-max-tokens, session.awaitingFirstTurn, session.running === true, input.queue.length, or fallback text “Previous turn ended, awaiting continuation”. Context paragraphs come from the currently loaded transcript (ChatSnapshot.legacy.nodes); it does not read disk session logs.
Implementation Points (Excerpt from README)¶
- Uses
setDraft+inputActions.submit(), following the same composer transaction path as the user manually pressing send. - Host-side
index.jsonly records loading; browser-side logic is inclient.js. - Directory contains
cordis.patch.ymlused to write the plugin line into the profile bundle manifest.
Installation and Activation¶
Installation example from README (local paths need to be replaced based on your machine):
dsh plugin --profile web add file:J:/plugin/dsh-continue-button
This command writes the dependency into the profile’s dependencies and appends dsh-continue-button to dsh.profile.bundles. After installation, you must restart dsh web: the browser bundle is synthesized into __DSH_BOOT__ by @deepseek-ai/dsh-client-modules scanning dsh.client at startup; a running process will not rescan the profile manifest.
Uninstallation:
dsh plugin --profile web remove dsh-continue-button
Then manually delete the corresponding line from dsh.profile.bundles and restart.
Please read the repository source code and MIT license yourself before installing; the plugin executes on the browser side, and its permission boundary is consistent with the current DSH Web session.
Typical Usage¶
- Complete installation in the target profile (e.g.,
web) and restartdsh web. - Open the conversation composer, locate the button with
aria-label="Continue"(class name.dshcb-btn) between the model selector and the send key. - When a task is interrupted or requires explicit continuation, click “Continue” once; for the shortest instruction only, use Alt+click or right-click.
- If there is already an explanation in the draft, write it first then click the button; the continuation section will be appended and sent together.
For development, after modifying client.js, the README explains you can use @deepseek-ai/dsh-client-hmr to sync the copy to profiles/.../node_modules/dsh-continue-button/ for hot updates within about 1 second, without needing a restart or refresh; however, initial installation still requires a restart to enter the manifest.
Verification and Troubleshooting¶
You can run repository tests even without DSH runtime:
node J:\plugin\dsh-continue-button\test\load-check.mjs
node J:\plugin\dsh-continue-button\test\install-check.mjs
The README records load-check.mjs 45/45 and install-check.mjs 19/19 passing.
If the button does not appear, check in the order suggested by the README: whether it has been restarted after initial installation, whether dsh --profile web --dump-config contains continue-button, whether there are bundle registration failures in the console, and whether window.__DSH_BOOT__.entries contains dsh-continue-button.
Applicable Scenarios and Notes¶
Suitable for developers who frequently run multi-step agent tasks in DSH Web where turns are prone to interruption. Not suitable for scenarios expecting to change server-side behavior or read local session logs—this plugin deliberately only consumes the transcript loaded on the current page.
The community directory SkillHub Plugin Page and GitHub Repository are independent sources of information, with no official affiliation to DeepSeek / High-Flyer; metadata such as star counts are subject to the page (currently approximately 1 star on GitHub).
Conclusion¶
dsh-continue-button collapses “writing continuation prompt + sending” into a single click next to the send key and automatically assembles context from interruption signals and the transcript tail as much as possible. For details, screenshots, and hot-update workflows, refer to the repository README.
- Directory Page: https://www.skillhub.cn/plugins/lilcandi/dsh-continue-button
- GitHub: https://github.com/lilcandi/dsh-continue-button