Send Button: An Editable Send Button Next to the DSH Input Field

Introduction

In a DeepSeek Harness (DSH) conversation, to “continue from where you left off,” you typically need to type the two characters “继续” and press Enter. That extra step can be a notable disruption during rapid follow-up questions or quick debugging. This plugin adds an editable send button to the right side of the input box—click it once and the text on the button is sent directly. The default text is “继续”.

Plugin Positioning

This is a client-side plugin mounted in the right-hand control area of the DSH input box. It is maintained by CHENJIAMIAN, with the code hosted on GitHub. It does not alter the send logic; it simply turns “typing” into “clicking.”

Core Features

  • Click to Send: Left-click the button, and the text on it is sent as a regular message.
  • In-place Editing: Click the pencil icon to the right of the button; the button transforms into an input field in place, allowing you to modify the text directly.
  • Save and Discard: In edit mode, pressing Enter or clicking elsewhere saves the change; pressing Esc discards it.
  • Persistence: Modified text is stored in the browser’s localStorage under the key dsh-editable-send:text, and persists across page reloads or new sessions.
  • Default Value: The default is set based on the UI language—“继续” for Chinese and Continue for English. Once changed, it will not reset according to language.
  • Length Limit: The button text is capped at 120 characters. Overlong text is truncated with an ellipsis … on the button, while the full content is available in the title attribute.
  • Send Behavior: It uses DSH’s official input box inputActions.setDraft and inputActions.submit, exactly the same as pressing the send key.
  • If the agent is running when the button is clicked, the message enters the send queue and is dispatched in order.
  • The message appears immediately in the conversation (local echo); on failure, the host displays an error and restores the draft.
  • On submit, the button text is used, and the user’s in-progress draft is restored to the input box afterward.
  • The button is disabled during send, arbitration, and command states, so it does not conflict with the state machine.

Installation & Activation

The plugin is published on npm, version 1.0.0. Installation instructions:

# 1) Install the npm package directly (recommended)
plugin_manager install_bundle --target dsh-editable-send

# 2) Search for "send button" in the plugin marketplace

# 3) To modify the code, install from a local directory (linked via symlink, supports hot reload)
plugin_manager install_bundle --target <absolute path to this repo>

After installation, refresh the page for changes to take effect. The browser pane is pure JS with no build step. When upgrading to a new version, restart DSH—Node’s module cache does not update automatically.

Typical Usage

  • After installation, a button appears on the right side of the input box in the DSH interface, defaulting to “继续”.
  • Click the button; the text is sent as a new message.
  • Click the pencil icon to the right of the button; it becomes an input field where you can edit the text.
  • Press Enter or click elsewhere to save; press Esc to discard the change.
  • The modified text is stored in the browser and persists the next time you open the page.

Compatibility & Limitations

  • The plugin declares engines.dsh: >=0.2.1-rc.2 <0.3.0 and has been tested and confirmed working on the DSH 0.2.1-rc.3 desktop build.
  • It is mounted in the official slot conversation.input.right, which is an additive list slot and does not override or replace any official controls.
  • If an older version lacks this slot, the button simply does not appear and no error is thrown.
  • The button text is stored per browser, not per profile. Switching browsers or clearing site data resets it to the default.
  • Only the button text itself is sent; the user’s in-progress draft is not appended.
  • Draft restoration is best-effort: in edge cases (the async window where the submit state machine clears the draft), the draft may land on the button text instead.
  • The desktop build swallows the web page’s contextmenu event, so the edit entry point is only the pencil icon—there is no right-click menu.

Use Cases & Cautions

Best suited for scenarios where you frequently need to “continue the conversation” or “quickly send a fixed phrase.” Before use, ensure your DSH version meets the requirements, and review the source code and license.

Summary

This plugin turns “typing” into “clicking” via an editable button, reducing the number of steps needed during rapid follow-up exchanges. The send behavior fully follows DSH’s official logic and does not interfere with the normal flow. If you often need to quickly send a fixed phrase, give this tool a try.

  • Directory page: https://www.skillhub.cn/plugins/CHENJIAMIAN/dsh-editable-send
  • GitHub: https://github.com/CHENJIAMIAN/dsh-editable-send
羽毛球分组比赛记分
小程序二维码

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

Xiaoye