dsh-session-pause: Pausing the Current Round in DSH and Supporting Resume After Restart

Preface

The DSH plugin ecosystem emphasizes that “everything is a plugin.” The community directory is an independent site, not an official app store, and has no official affiliation with DeepSeek / High-Flyer. For a running DSH Web session, if you only want the current turn to stop at the next step boundary, retain the full context, and continue later or after a DSH restart, you need a pause mechanism that neither terminates the session outright nor introduces a new storage format.

Below is an introduction to watericetangcw/dsh-session-pause. It provides the ability to pause the current turn, fully persist to disk, resume execution, and recover after a restart.

What This Is

watericetangcw/dsh-session-pause is maintained by watericetangcw and is positioned as a DSH web bundle.

It addresses the following: during the execution of the current turn, you want the session to pause at a step boundary rather than being terminated outright; messages, tool call results, and request context after the pause must be preserved so that execution can continue; and even if DSH is restarted midway, you can reopen the session and continue.

This bundle does not modify any DSH code and is used as a profile bundle. The license is marked as MIT, and the copyright is marked as © 2026 WateRice.

Core Features

  1. Adds a Pause button to the left of the main Send/Stop button.
    When clicked, the current turn shuts down gracefully in a paused state once it reaches a step boundary, and automatically persists to disk.

  2. Fully writes to the existing session storage during the pause.
    Messages, chunks, tool calls and results, and request context are written to the existing session JSONL, without introducing a new storage format.

  3. The paused state can be restored after a DSH restart.
    After restarting DSH and reopening the session, you can return to the paused state and continue from the pause point using the Resume button.

  4. Pause requests can be cancelled.
    While draining, you can hover over the button to reveal an X icon and cancel the pause request. Clicking Stop only aborts the current turn and does not cancel the pause.

  5. Supports slash commands.
    Supports /pause, /pause-cancel, and /resume.

  6. The agent enters a paused state during the pause.
    The goal auto-turn does not start naturally.

Installation and Enablement

First, install the plugin:

dsh plugin --profile web add github:watericetangcw/dsh-session-pause

After installation, restart dsh web and refresh the browser page once to use it.

The bundle’s package.json requires:

node ^22.19.0 || >=24.0.0

Note: This bundle intentionally does not carry installable @deepseek-ai/* runtime dependencies. It should be installed via dsh plugin add; do not npm install it into a profile as a regular library.

To uninstall:

dsh plugin --profile web remove dsh-session-pause

Restart dsh web after uninstalling.

Typical Usage

Below are several reproducible usage paths.

  1. Pause the current turn

During execution, click the Pause button, or enter:

/pause

Wait for the current turn to reach a step boundary, after which the session shuts down in a paused state and persists to disk.

  1. Cancel a pause request

If a pause request is being drained, hover over the spinning button and click the X icon, or enter:

/pause-cancel

Note: Clicking Stop only aborts the current turn and does not cancel the pause.

  1. Continue from the pause point

After pausing, click the Resume button, or enter:

/resume

The session continues running from the pause point.

  1. Continue after restarting DSH

After pausing, you can restart directly:

dsh web

After restarting, reopen the previous session and click the Resume button to continue from the pause point.

Applicable Scenarios and Notes

Suitable for users and developers who need to temporarily pause the current turn in a DSH Web session, preserve context, and continue later or after a DSH restart.

Before use, it is recommended to note:

  1. The plugin runs with the permissions of the current dsh process; check the source code and license before installation.
  2. The license is marked as MIT, and the copyright is marked as © 2026 WateRice.
  3. It should be installed via dsh plugin add; do not npm install it into a profile as a regular library.
  4. The runtime environment must satisfy node ^22.19.0 || >=24.0.0.
  5. After restarting DSH, you need to reopen the corresponding session before resuming.

Links

GitHub repository:

https://github.com/watericetangcw/dsh-session-pause

Directory page provided by the plugin clue:

https://www.skillhub.cn/plugins/watericetangcw/dsh-session-pause

This directory page is a community directory clue and does not represent an official app store; the community directory is an independent site with no official affiliation with DeepSeek / High-Flyer.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye