DeepSeek Harness 插件

Arbeiter-bit/dsh-reedit

Star 数 ★ 1 分类 会话与消息 收录于 2026-10-17

双击自己发送的消息即可修改,并从该处开一条新分支继续。

安装

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

dsh plugin --profile web add github:Arbeiter-bit/dsh-reedit

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

README

该插件的 README 只有英文版本。

Double-click any of your own messages to rewrite it and resend from that point. The original conversation is untouched.

What it does

Hovering one of your messages shows the hint; double-click it to open an editor prefilled with that message. Confirming:

  1. forks the session at the event before the original message, so neither it nor any later message is carried into the new branch,
  2. sends the edited text into that branch, and
  3. opens the branch in the main panel.

Clicking anywhere outside the editor leaves edit mode without saving.

The original session is never modified — nothing is rewritten in place, because a session log is append-only. Editing message n-1 is therefore the reason message n does not appear in the new branch: the branch starts before n-1.

Your messages also get a faint blue bubble, so a user message cannot be mistaken for an assistant reply.

Why it owns the user bubble

Double-click and the hover hint need the bubble's own DOM, and the shipped renderer keeps its action row internal and exposes no hook. This plugin registers conversation.chat.node for key user at priority: -1, shadowing that renderer.

A keyed cell accepts a second registration only at a different priority; at priority 0 it throws keyed slot ... already has an entry for key "user" at priority 0, and a throw in a client entry makes the web boot audit refuse to mount the whole GUI. The priority is load-bearing.

The replacement reproduces text, reference labels, image attachments (through the shared renderMessageImages owner prop), extra blocks and the time/copy row; file cards and bubble styling are hand-written and may differ slightly from the host. @deepseek-ai/dsh-client-ui-primitives is read behind a try/catch, so a missing kit degrades to plain text instead of blanking the conversation.

Install

dsh plugin --profile <profile> add github:Arbeiter-bit/dsh-reedit

Pinned:

dsh plugin --profile <profile> add github:Arbeiter-bit/dsh-reedit#v0.1.0

Verification

The web boot audit (assertEntriesActive) refuses to mount the whole GUI when any client entry fails to activate, so every release is checked by loading the composed profile in a fresh browser page with an empty module table and reading the console:

v0.1.0  title: DeepSeek Harness   console errors: 0

Known limitations

  • The bubble colour is a literal blue (#2563eb at 12%), mixed against the layered surface so it stays readable in light and dark themes. The theme exposes no blue alias token — --dsw-alias-brand-primary resolves to the neutral primary-action colour, which mixes to grey.
  • The action row is a reimplementation; file cards and spacing are hand-written.
  • Editing cannot edit a message in place, because session logs are append-only.

License

MIT

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

社区评论

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