Introduction

When chatting in the DSH web client, there are two frequent small annoyances: after sending a long message, if you want to revise it, you can only scroll up the chat history and manually copy it back into the input box; or if you want to ask a small question unrelated to the current conversation, you either have to start a new session or disturb the context of the main conversation.

dsh-air turns these two things into a plugin: press / directly in the input box to switch between sent history records, and /btw opens a docked side dialog without interrupting the main conversation. Below is an introduction to its features, installation method, and precautions.

What is it

dsh-air is a lightweight plugin for the DSH web client, maintained by kaieye, licensed under MIT, with the current version being 0.1.2 (where dsh.client.platform in package.json is web).

It does two things: recall and search of sent history records, and a docked side dialog.

Core Features

  • Press when the input box is empty to recall the previous sent record; press to switch to newer history records.
  • Press Ctrl+R to search sent history records, Enter to accept the current search result, and Esc to cancel the search and restore the original draft.

Side Dialog

  • Type /btw [question] to open a docked side dialog; /side is an equivalent alias.

Panel Width Adjustment

  • The left edge of the BTW panel can be dragged to adjust the width.
  • After focusing on the adjustment handle, / adjusts the width by 24 pixels each time; holding Shift adjusts by 80 pixels each time; Home / End jumps to the minimum / maximum width.
  • Adjustment results are saved locally, so no need to reset adjustments when opening next time.

Settings and Local Data

  • In the “AIR Plugin” section of the settings page, you can view the number of saved history messages, adjust the history limit, and clear history, rich drafts, and large paste data.
  • The history limit defaults to 500 records and can be set between 10 and 5000; the limit setting is preserved when clearing data.
  • History, drafts, and paste references are saved in the current browser’s localStorage. Clearing site data will also remove these records.

Installation and Enablement

Execute the following command in the terminal to install the plugin:

dsh plugin --profile web add dsh-air

After installation, you need to restart DSH for the plugin to take effect.

If no longer needed, use the following command to uninstall:

dsh plugin --profile web remove dsh-air

Typical Usage

  1. After restarting DSH, press when the input box is empty to recall the previous sent record; continue pressing to get older records, and press to switch towards newer ones. Once found, you can edit directly or send again.

  2. When there are many records, press Ctrl+R to search sent history, and Enter to accept the selected result; if just flipping through casually, press Esc to exit search, and the input box will restore the draft before searching.

  3. While the main conversation is ongoing, type /btw [question] to open the side dialog and put unrelated questions into the side panel; /side is an equivalent alias. If the panel is too narrow or too wide, drag the left edge, or focus on the handle and use / to fine-tune the width.

Applicable Scenarios and Notes

dsh-air is suitable for users who frequently adjust prompts in the web client and need to ask temporary questions outside the main conversation. It does not change the dialogue logic but simply adds two high-frequency operations at the input box and panel levels.

Pay attention to two points before use:

  1. History, drafts, and paste references are all saved in the current browser’s localStorage. Changing browsers, changing devices, or clearing site data in the browser will cause these records to be lost; do not rely solely on them for important content.

  2. Like all DSH plugins, the plugin runs with the permissions of the current dsh process. It is recommended to check the source code and license before installation to ensure there are no issues before installing. The source code for dsh-air is open on GitHub under the MIT license.

Conclusion

dsh-air solves small problems, but they are all high-frequency actions in the dialogue interface: one-click recall of history messages, throwing unrelated questions into the side panel, and not disturbing the main conversation’s context. Install, restart, and use it in a few minutes.

  • Community Plugin Directory: https://www.skillhub.cn/plugins/kaieye/dsh-AIR (Community-maintained directory site, no official affiliation with DeepSeek / Huafan)
  • GitHub Repository: https://github.com/kaieye/dsh-AIR