In the DeepSeek Harness dialog, arrow keys are typically used only for cursor movement or triggering default behaviors, and sent content cannot be retrieved via keyboard shortcuts. The dsh-input-history plugin intercepts arrow keys to provide a persistent input history for the dialog.
Core Features¶
Sent content is saved to local storage, and records persist after application restarts. When the input box is empty, pressing ↑ retrieves earlier records, while pressing ↓ returns to newer records. Pressing ↓ after reaching the end restores the unsent draft from before the retrieval process.
Pressing ↑ or ↓ repeatedly allows continuous navigation; the cursor position is handled automatically, so you do not need to manually move the cursor to the beginning each time. If you manually edit retrieved content, control of the arrow keys is immediately handed back to the editor, and they will no longer be intercepted.
The plugin automatically ignores blank content and keeps only the latest entry for duplicates, retaining a maximum of 200 records. During Input Method Editor (IME) composition, when holding Shift, Ctrl, Alt, Meta, or other modifier keys, or when slash commands, @ references, or other popups are open, the arrow keys remain controlled by the original program to avoid conflicts.
Installation and Activation¶
- Edit the
package.jsonin the profile directory to add the dependency and bundle configuration:
{
"dependencies": {
"dsh-input-history": "link:/absolute/path/to/dsh-input-history"
},
"dsh": {
"profile": {
"bundles": [
"dsh-input-history"
]
}
}
}
- Navigate to the profile directory and run the pnpm installer bundled with the desktop client:
node "<DSH Installation Directory>\resources\app\node_modules\pnpm\bin\pnpm.cjs" install
- Restart DSH Desktop.
Note: You must use the link: protocol instead of the file: protocol during installation, and do not use npm for installation. pnpm creates a Junction pointing to the source directory, making it directly effective; npm copies files, which breaks the profile’s dependency management structure.
Typical Usage¶
- Enter content in the conversation input box and send it.
- Place the cursor back in the input box.
- Press
↑to sequentially retrieve earlier content. - Press
↓to navigate back to newer content. - Press
↓again after reaching the end to restore the unsent draft from before the retrieval process.
Use Cases and Notes¶
This plugin relies on specific Harness interfaces (conversation.input, setDraft, registerRootListener, arbitrate). If the Harness build is older and lacks these interfaces, the plugin will silently fail without throwing errors.
Development environment requirements: DSH Desktop 2.0.13, Client Core @deepseek-ai/dsh@0.1.5-rc.2, Client UI @deepseek-ai/dsh-client-ui-conversation@0.1.5-rc.2, Platform: Web, Node.js >= 22.
History records are stored only in the local storage of the current application’s WebView and are not uploaded to the network. However, clearing site data will delete the history records along with it.