dsh-input-history-recall: Navigate Message History Up and Down in the DSH Web Input Field

Introduction

When developing or debugging sessions on the DeepSeek Harness (DSH) Web interface, it is often necessary to reference content previously sent in the current session. The native input box only supports cursor movement and lacks any history message recall capability, forcing users to resort to copy-paste or tab switching to review past messages, which is inefficient.

What Is This

dsh-input-history-recall is a client-side plugin that enables quick recall of user messages already sent in the current session through key gestures in the DSH Web input box. It was developed by maintainer foreverbelief, categorized as a client-side plugin, and published on the npm registry.

It does not depend on any backend. All history retrieval and backfill operations are performed entirely on the frontend, are isolated per session, and involve no network requests or disk writes.

Core Features

In the DSH Web composer input box, trigger history recall by double-tapping an arrow key:

  • Single press of ↑ / ↓: native cursor movement / selection — not intercepted.
  • Two consecutive presses of ↑ within 200 ms: fills in the previous user message sent in the current session.
  • Two consecutive presses of ↓ within 200 ms: steps forward one entry; when reaching the latest message, restores the draft that was being typed before entering history navigation.
  • Long press (auto-repeat), Shift + arrow key, active IME composition, slash/command menu open, command submitting / busy state: none of these are intercepted.

Gesture recognition logic: the first keypress is always passed through; the second keypress is recognized as part of a gesture only if it occurs within 200 ms and matches the same key.

Installation & Activation

The plugin is published on npm under the package name dsh-input-history-recall. Install it into the DSH profile directory and then add it to the bundle list.

cd "$env:USERPROFILE\.dsh\profiles\desktop"
npm install dsh-input-history-recall

Add the following entry to the dsh.profile.bundles array in the same package.json:

"dsh-input-history-recall"

Restart DSH (or refresh the page) for the changes to take effect.

The plugin package ships with its own cordis.patch.yml, which automatically inserts the loading line when the bundle starts. Do not manually add that line to the profile’s cordis.patch.yml, as this will cause a duplicate registration.

Typical Usage

In the DSH Web input box, quickly tap an arrow key twice:

  • To recall the previously sent message: ↑↑
  • To step forward: ↓↓

If you continue pressing ↓ at the latest message, the draft you were editing before entering history navigation will be restored.

Applicable Scenarios & Notes

  • Compatible with DSH 0.1.3-alpha.1 (2026-09-07) and later versions that use the Lexical contenteditable composer ([data-composer-input]). Also maintains backward compatibility with the older textarea composer.
  • Web platform only (platform: "web").
  • History data retrieval priority: chat view snapshot (ChatSnapshot.order + nodes) → legacy session.nodes → empty history (no error thrown).
  • If a newer version of DSH changes the composer or snapshot structure, the gesture may stop working. Troubleshooting order: ① Check whether the input box still carries the data-composer-input attribute; ② Verify whether the chat snapshot still contains order and nodes; ③ Confirm whether the conversation.input.overlay slot still exists.

Summary

dsh-input-history-recall provides a lightweight history message recall capability for DSH Web development and debugging scenarios. By double-tapping an arrow key, you can scroll up and down through messages previously sent in the current session within the input box, without interfering with native cursor movement or IME composition. It is well suited for developers and debuggers who frequently need to reference prior messages.

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

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

Xiaoye