dshplugin.devDeepSeek Harness Plugins
DSH Qinput History plugin logo
DeepSeek Harness Plugin

DSH Qinput History

1
Published by 2128627267

A community-built DeepSeek Harness plugin indexed from its public source repository.

Sessionsdsh-plugin

Get this plugin

Review the source, then continue to the publisher.

Get this plugin
Share on X ↗

About this plugin

Source snapshot 8/15/2026

dsh-qinput-history 输入记忆(持续记忆你的 prompt)

为 DeepSeek Harness 提供输入持续记忆,解决:DsH 崩溃 / 输入失败 / 误清空时,精心编写的大段 prompt 丢失无法恢复的问题。

核心能力(v2,键盘优先)

  1. ↑ / ↓ 键盘切换历史(shell 式):

    • 在输入框内按 :回填上一条历史输入;继续 ↑ 逐条往前翻
    • :往回走;翻到底恢复你正在编辑的草稿
    • 与系统修饰键/输入法组合(Ctrl/Alt/IME)不冲突;仅作用于 composer 输入框
    • 历史来自会话日志 user/message 事件(真实、持久、重启不丢)
  2. 草稿自动快照(崩溃恢复)

    • 输入停顿 800ms 后自动把草稿写入 .dsh-features/draft-cache.json(按会话键控)
    • DSH 崩溃 / 页面刷新 / 输入失败后重开:若检测到"未成功发送"的草稿且输入框为空,自动回填(通过与最后一条已发送消息的时间比对判断)
    • 输入条左侧显示极小的 状态提示(非按钮,hover 可见说明)

设计取舍:不再使用"点按钮 → 弹浮层 → 点条目"的交互(v1 形态),改为纯键盘导航 + 自动记忆。

Host RPC(HTTP JSON)

方法入参返回
POST /dsh-qinput-history/list{ sessionId, limit? }[{ text, time }](最近优先,合并相邻重复,过滤系统消息)
POST /dsh-qinput-history/snapshot/save{ sessionId, text, time }{ ok }
POST /dsh-qinput-history/snapshot/get{ sessionId }{ text, time, lastSentTime }(time > lastSentTime 表示未发送)

安装(原生 bundle,与 dshmarket 同类)

本插件是标准 DSH bundle:安装后作为普通插件运行,不产生 Cordis 动态插件、无需批准、无需任何手动激活

dsh plugin --profile web add dsh-qinput-history

重启 dsh web 后:

  • 输入条左侧 ↕ 提示由标准 client bundle 挂载;
  • ↑/↓ 历史与草稿快照直接可用;
  • 不出现 qihis-*,也没有 run-* 消息。

仓库

  • GitHub:https://github.com/2128627267/dsh-qinput-history
  • Topic:dsh-plugin(发布时请在仓库设置里添加该 topic)