Preface¶
When using the Web composer in DeepSeek Harness (DSH) to converse with agents, the input box typically only retains the current draft. To resend or fine-tune the previous user message, you have to manually copy the chat history or type it all over again. Terminal agents such as opencode have long been accustomed to using the arrow keys to switch between “sent content” and “unsent drafts”; Harness’s Lexical editor by default reserves ↑/↓ for the editor itself and does not include this behavior out of the box.
The community plugin dsh-composer-input-history described below fills this gap: within a Session, use ↑ to recall previously sent messages from the current conversation, and ↓ to move forward through history and restore the draft you were writing. Maintainer: liumorrisclaw. Category: client-side plugin. Source code and documentation: GitHub repository; community directory page: SkillHub entry.
What This Is¶
dsh-composer-input-history provides Shell-style input history for the DeepSeek Harness Web composer: ↑ pulls back messages already sent in the current Session, ↓ advances through newer messages, and after passing the newest message it returns to the draft you were writing before browsing; pressing ↓ again discards that draft and clears the input box.
The plugin adds no Harness Client packages and modifies no styles; it registers an invisible Session-level occupant via conversation.composer.dock, uses the standard useChat, useInput, and inputActions.setDraft to read and write the draft, and arbitrates key presses through two paths — the document-level keydown and shortcuts’ observeFixedInput (the first handler cancels the event, avoiding key conflicts with the slash menu and IME).
Core Features¶
Key Behavior¶
| Action | Behavior |
|---|---|
| Press ↑ with an empty draft | Recalls the most recently sent message |
| Press ↑ again | Moves back one message earlier each time |
| Press ↑ with a single-line draft and the cursor on the first line | Recalls history and remembers the current draft |
| Press ↑ with a multi-line draft and the cursor not on the first line | Hands off to the editor (cursor moves as usual) |
| Press ↓ while browsing history | Moves to a newer message |
| ↓ past the newest sent message | Restores the draft being written before browsing |
| Press ↓ again after the draft is restored | Discards the draft and clears the composer |
| Start typing while browsing | Exits browse mode; the recalled text becomes the current draft |
History Source and Scope¶
History comes from the Chat nodes already loaded in the current Session’s chat view (snapshot.nodes, in anchor order), merged with session-level localStorage persistent records (capped at 300), so messages pruned by compaction may still be recalled after a restart.
Included: ordinary user messages, steering messages, and messages that wake up a turn.
Skipped: hidden nodes (compacted or interrupted), attachment-only messages, and content sent on behalf of Harness (goal rounds, skill catalogs, runtime snapshots, job notices, model notices, approval answers, compaction checkpoints, etc.).
Differences from Other Plugins¶
There is another community plugin on npm, dsh-input-history, which also uses ↑/↓ to recall prompts, but with a different mechanism. The comparison from the README is as follows:
| dsh-composer-input-history | dsh-input-history | |
|---|---|---|
| History source | Session transcript loaded in the Chat view | Separate local store of submitted prompts |
| Non-empty draft | Can recall and remember the draft, restoring it below the newest message | Recalls only when the composer is empty |
| Attachments | Recalled as plain text; attachments not restored | Can be persisted and re-attached |
| Menus / IME | Yields key handling to slash/reference menus and IME compositions | — |
If you want recall to match the conversation visible in the UI, and to be able to ↑ back through history while you are typing, this plugin is the better choice.
Compatibility and Verification¶
The development and verification target is @deepseek-ai/dsh 0.2.0-rc.2. The plugin declares dsh.client.inject on dsh-client-ui-conversation, dsh-client-ui-chat, and dsh-client-shortcuts, and the bundle is marked immediately: true under the web profile. The README reports 48 tests (unit + simulated composer integration) and manual confirmation on a real Web instance and the Desktop composer.
The current npm package version is 0.1.2 (see the repository’s package.json), licensed under MIT.
Installation and Activation¶
The plugin runs with the Web client permissions of the current DSH process; before installing, it is recommended to read the repository source code and LICENSE to confirm it meets your security policy. The DSH ecosystem emphasizes “everything is a plugin”; SkillHub and similar sites are community directories with no official affiliation with DeepSeek / High-Flyer.
Install from npm under the web profile (short name):
dsh plugin --profile web add dsh-composer-input-history
Or add directly from GitHub:
dsh plugin --profile web add https://github.com/liumorrisclaw/dsh-composer-input-history
You can also add it via the Web UI’s Plugins page, or list the package directory through the plugin manager. The bundle is disabled by default and must be selected in the profile to take effect.
A local checkout can be installed by path:
dsh plugin --profile web add /absolute/path/to/dsh-composer-input-history
Use dsh --profile <name> --dump-config to check whether the composed profile contains the bundle entry.
Typical Usage¶
- In an open Session, send several user messages to the composer.
- With the input box empty, press ↑ — the most recently sent plain-text content should appear.
- Keep pressing ↑ to browse earlier messages; press ↓ to move in the newer direction — after passing the newest message, it should return to the unsent draft you had before pressing ↑.
- After the draft is restored, press ↓ again and the composer should be cleared.
- If the input box already contains multi-line text and the cursor is not on the first line, ↑ should still be handled by the editor for in-line movement rather than captured for history.
When no Session is open on the home page there is no composer dock, so recall is unavailable; history is limited to the current Session and does not span Sessions.
Use Cases and Caveats¶
Suitable for: Web users who frequently fine-tune or resend the previous prompt within the same Session; scenarios where you want behavior close to terminal agents and history consistent with the transcript visible in the chat window.
Limitations (from the README):
- Cross-Session recall is not yet implemented.
- Messages sent while the plugin is not installed will not enter its merged history.
- Recall is plain text only; reference chips and attachments are not restored.
- It assumes only one resident composer per Web page.
Installation commands and behavior descriptions are subject to the repository README above; in case of conflict, the repository documentation prevails.
Conclusion¶
dsh-composer-input-history fills the ↑/↓ seam deliberately left open by the Harness Web composer through a keyboard observer, threading previously sent messages and the current draft within a Session into a single browsable line. For a directory introduction or one-click jump, open the SkillHub plugin page; for installation commands, key maps, and limitation notes, refer to GitHub: liumorrisclaw/dsh-composer-input-history.