dsh-wait-minute: Delaying Message Sends within DSH Sessions

Introduction

When interacting with agents in DeepSeek Harness (DSH), a common requirement is to “send this prompt later”: for example, waiting for a local build to finish, waiting for a colleague to confirm parameters, or intentionally staggering the rhythm of consecutive questions. If sent immediately, you have to manually note the time and come back to paste it; if using a system calendar or external timer, the message still requires a secondary copy and becomes disconnected from the current session context.

dsh-wait-minute is a community-maintained DSH workflow plugin that writes plain text from the input box into a persistent delayed queue within the current session. Upon expiration, it submits the original text via the DSH standard session sending interface. It does not call Schedule, does not create automation tasks, and does not send [SCHEDULE REMINDER] wrappers. The following section describes its positioning, capabilities, and installation usage.

Overview

The plugin server side only uses webServer and connection; the client depends on the conversation and session UI modules provided by @deepseek-ai/dsh-web-app. It is applicable to the documented DSH 0.2.0-rc.2 and no longer depends on the Schedule bundle.

The DSH ecosystem emphasizes “everything is a plugin”; community directories like SkillHub are independent sites and have no official affiliation with DeepSeek / High-Flyer. Before installing the plugin, it is recommended to review the source code and MIT license yourself, and understand that the plugin runs with the permissions of the current DSH process.

Core Features

Delayed Enqueuing and Sending Path

  1. Enter the message in the original chat input box.
  2. Click the clock icon next to the send button to set the hours and minutes respectively (e.g., 00:05, 01:30).
  3. Click the original send button or press Enter in the message editor. After successful saving, the draft is cleared, and the message enters the delayed queue of the current session with a countdown displayed.
  4. Upon expiration, the plugin uses the DSH standard sessionController.prompt to send {type: text, text: original} with mode: queue. If the AI is busy, it follows the standard DSH queue sending logic without forcing a stop or interruption.

The minimum delay is 1 minute: 00:00 is not allowed and will not degrade into an immediate send. Only plain text is supported; attachments or slash commands are not supported. In delay mode, these are intercepted with a prompt rather than silently sent immediately.

In-Queue Operations

Each message in the queue provides:

  • Edit: Modify the message text, keeping the original sending time by default; check “Reset Delay” to change hours/minutes, recalculating the delay from the current save time. If saving fails, the edit draft is retained.
  • Send Now: Do not wait for the countdown; immediately submit the original text to the current session’s standard message sending flow. It is removed from the queue after successful acknowledgment.
  • Cancel Sending: Delete the unsent queued message. It does not recall messages already submitted to the session.

Expiration, editing, canceling, and sending now share a serial operation queue to avoid duplicate submissions. If a message has already expired and been submitted while editing, the interface retains the edit draft but cannot change the submitted message back to an unsent state.

Interface and Sidebar

  • The queue appearance aligns with the native conversation waiting queue: a menu bar attached to the input box, compact previews, and icon operations; single items are displayed directly, while multiple items are collapsed into a count title by default and expanded when editing.
  • Idle session rows display a clock and the number of delayed messages; the hover details show the nearest scheduled time, the number of items being submitted, or pending result confirmation.
  • Native “Running”, “Pending Approval”, and unread completion indicators are prioritized; delay information is displayed in hover details and does not overwrite native status or Stop behavior.
  • After modifying the queue, the new state is read immediately; other sessions refresh every 5 seconds; the delayed status is cleared after the last message is sent or canceled.

Time Input

The hour field ranges from 0–8760, and minutes from 0–59; only numbers are accepted; invalid or out-of-bounds values are not written. Zeros are automatically padded after leaving the field (e.g., 1:5 → 01:05). Mouse wheel and arrow key adjustments, pasting short-format times, and full-width colons are supported and normalized.

First Message in a New Session

First, select the workspace via the standard DSH flow so that the new session input box is editable. Then, the first message can be sent with a delay directly without sending an instant message first. After enqueuing, a summary title (Delayed · Message Summary) is published, and a dedicated session-title model request is initiated in the background to generate a formal title. This request only generates a title; it does not submit a standard chat message, execute the question, fake a turn, or block enqueuing. If it fails or exceeds 6 seconds, the summary title is retained. Existing titles are not overwritten; if a manual rename occurs during generation, the user’s title is prioritized.

Persistence and Reliability Highlights

  • Messages are stored in the Storage kv unit wait_minute_outbox, and session creation records are stored in wait_minute_created_sessions; they do not appear in automation task management.
  • Closing the browser page does not affect saved messages; the DSH main program must be running. Messages cannot be sent on time during exit, shutdown, or hibernation; they are processed after recovery.
  • Creation success is displayed only after successful persistence; the original draft is retained on failure.
  • In cases of crashes or sending failures resulting in uncertain outcomes, automatic resending does not occur; the queue displays an error. Manual immediate retries may trigger a duplicate sending confirmation.
  • Disabling the plugin stops the timing and sending of the independent queue; it resumes after re-enabling. It is recommended to cancel unsent messages before uninstalling.

The independent queue API is /api/wait-minute/outbox-v1; the client performs read-only validation before modifying. Responses contain identifiers such as X-Wait-Minute-Engine: standalone-outbox-v1. After successful startup, GET /.well-known/wait-minute returns the engine, running version, and ready: true (read-only, no private data), which can be used to verify the plugin is ready.

Installation and Activation

The plugin is installed separately by profile: desktop and web (dsh web) configurations are independent. If only one form is installed, the other form will not have the delay functionality.

  • Desktop Application: Config name desktop, directory %USERPROFILE%\.dsh\profiles\desktop
  • Browser Version: Config name web, directory %USERPROFILE%\.dsh\profiles\web

In the DSH plugin installation entry, you can select the Release attachment dsh-wait-minute-1.0.2.tgz, or install via the command below. The address must include the version tag; do not use releases/latest/download/....

PowerShell examples (replace desktop with web for the browser version):

# First install or upgrade to v1.0.2
dsh plugin --profile desktop add https://github.com/TZDXF/dsh-wait-minute/releases/download/v1.0.2/dsh-wait-minute-1.0.2.tgz
dsh plugin --profile web     add https://github.com/TZDXF/dsh-wait-minute/releases/download/v1.0.2/dsh-wait-minute-1.0.2.tgz

# Check installation source and version
dsh plugin --profile desktop why dsh-wait-minute

# Uninstall
dsh plugin --profile desktop remove dsh-wait-minute

If the installation tool returns restart-required, or after installation/update, you must fully exit and reopen DSH (fully exit the desktop app and reopen; stop the original process and restart for dsh web). The version number shown on the plugin page does not mean the new code has been re-imported at runtime. Installed configurations can be verified with dsh plugin --profile <config-name> install; normally it outputs Already up to date.

The README also notes: under specific conditions, pnpm may report ERR_PNPM_MISSING_TARBALL_INTEGRITY for cached Release addresses; if affected, you can download the tgz first and then install via the local path add "file:...". See the “Installation” section of the repository README for details.

Typical Usage

After the installation and restart mentioned above, in any session with a selected workspace:

  1. Write the plain text prompt to be sent later in the input box.
  2. Click the clock icon and set the hours and minutes (at least 1 minute total).
  3. Confirm enqueuing using the original send method, and view the countdown and queue items above the input box.
  4. You can edit the text, check to reset the delay, send immediately, or cancel as needed; upon expiration, the message enters the DSH normal sending queue.

New sessions can also use the above flow directly on the first message without sending an instant message first.

Use Cases and Notes

Suitable for: Developers who want to “write now, deliver scheduled” within the same DSH session but do not want to go through the Schedule / automation task chain; scenarios where you need to see at a glance in the sidebar which sessions have pending delayed messages.

Notes:

  • Depends on the continuous operation of the DSH main process and the version behavior described in the documentation; other DSH versions need to be re-verified against the README.
  • “Send Now Success” indicates the session has acknowledged receipt, not that the AI has completed execution.
  • The plugin accesses storage and session APIs with the permissions of the current DSH process; please review the source code and MIT license before installation.
  • During the development phase, it does not read, migrate, or clean up old Schedule data; this plugin path is unrelated to Schedule.

Conclusion

dsh-wait-minute converges “delayed sending” into an in-session persistent outbox: setting hours/minutes, queue management, sidebar status, and standard queued sending upon expiration, decoupled from Schedule. If you want to try installing it in DSH, you can enter the description from the SkillHub catalog page, or directly install dsh-wait-minute-1.0.2.tgz from the Release under the corresponding profile.

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

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

Xiaoye