DeepSeek Harness 插件

WongYuYe/dsh-composer-recall

Star 数 ★ 0 下载量(近 30 天) 67 分类 UI 增强 收录于 2026-09-07 npm dsh-composer-recall

DSH 0.1.2-alpha.1 输入框历史:空输入框按 ↑ 召回当前会话刚发过的话,↓ 前进,Esc 还原正在打的草稿。

安装

# npm 包(预构建)

dsh plugin --profile web add dsh-composer-recall

# Release 预构建包

dsh plugin --profile web add "https://github.com/WongYuYe/dsh-composer-recall/releases/latest/download/dsh-composer-recall.tgz"

# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)

dsh plugin --profile web add github:WongYuYe/dsh-composer-recall

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWEDERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yamlallowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。

README

English | 简体中文

DeepSeek Harness 0.1.2-alpha.1 输入框用的方向键历史。

空输入框(或光标在草稿开头)按 召回当前会话里刚发过的话, 前进,Esc 还原正在打的草稿。

适配 Lexical 输入框(div[data-composer-input])和官方 setDraft()。仍去读 session.getSnapshot().nodes<textarea> 的旧历史插件,在这个版本上会崩或没反应。

安装

dsh plugin --profile desktop add dsh-composer-recall

或从 GitHub:

dsh plugin --profile desktop add github:WongYuYe/dsh-composer-recall

装完请重启 DSH Desktop(或刷新 Web GUI)。

从源码:

git clone https://github.com/WongYuYe/dsh-composer-recall.git
cd dsh-composer-recall
dsh plugin --profile desktop add .

使用

  1. 聚焦输入框。
  2. 草稿为空,或光标在草稿开头时,按
  3. 再按 看更早的消息, 前进。
  4. Esc 退出历史并还原暂存的草稿。
  5. 浏览时直接打字会保留召回内容并离开历史模式。

历史来自当前会话已经渲染出来的用户消息,不是跨工作区的全局环。

兼容性

状态
Harness DeepSeek Harness 0.1.2-alpha.1(Lexical 作曲器)
平台 Web GUI / DSH Desktop
持久化 仅当前会话(已渲染的用户行)

为什么要做这个

0.1.2-alpha.1 的会话快照不再暴露 nodes,作曲器也从 textarea 换成了 Lexical contenteditable。面向 rc 线的社区历史插件会崩或静默失效。本插件从 [data-chat-flow-kind="user"] 行读取,并通过 shell.setDraft(text) 写回。

许可

MIT

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

社区评论

评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。