NightsVesa/dsh-input-history ↗★ 0
dsh-input-history
DSH Web 输入框的历史记录插件,支持通过方向键上/下快速回溯已提交的提示词、斜杠命令或恢复正在输入的草稿。
AI 分析
核心用途是提升输入框的交互效率。适合需要频繁重复使用、修改历史输入或撤销草稿的 DSH Web 端用户。
安裝
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:NightsVesa/dsh-input-history說明文件
閱讀完整 README ↗dsh-input-history
Input history for the DeepSeek Harness Web composer. In any loaded session, press ArrowUp to recall older submitted prompts or slash commands and ArrowDown to move forward and restore the draft you were typing.
Install from GitHub
dsh plugin --profile web add github:NightsVesa/dsh-input-history
dsh web
The repository commits its built lib/ artifacts, so GitHub installation does not run a prepare script or require a pnpm allowBuilds entry. For a reproducible install, pin a commit:
dsh plugin --profile web add github:NightsVesa/dsh-input-history#
Remove it with:
dsh plugin --profile web remove dsh-input-history
Behavior
- History is isolated per session and capped at 256 entries.
- Existing user messages, steering messages, and slash commands are read from the loaded durable session window.
- An open command/reference menu keeps ownership of the arrow keys.
- Modified arrow chords, IME composition, read-only input, and inactive composer states retain their native behavior.
- Reaching the newest entry with
ArrowDownrestores the draft that existed before navigation began.
Development
Requires Node.js ^22.19.0 or >=24.0.0 and pnpm 11.7.0.
pnpm install
pnpm run check
The plugin is a standard DSH bundle: package.json declares dsh.bundle, cordis.patch.yml inserts the plugin, and the browser half is exposed through ./client with a dsh.client manifest.
Compatibility
Tested against DeepSeek Harness 0.1.0-rc.5. The browser integration targets the stock composer's public data-composer-card marker and the client runtime's sessions service.
License
MIT