DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

xing2yu4 /

xing2yu4/dsh-restart-button

Verified

One-click reload button for the DeepSeek Harness Web UI. / DeepSeek Harness 网页界面的一键刷新按钮。

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@a45df150

dsh-restart-button

一个给 DeepSeek Harness Web UI 加「一键整页刷新」的最小插件 —— 模块化、零依赖、跟着主题走。

给 DeepSeek Harness 的 Web 界面加一个「一键刷新」按钮。点一下 = 整页重载,前端插件全部重新挂载。

button

它长在哪

对话头部的最左边、会话标题左侧那一格:一个 ⟳ 图标。

再往上那行「应用 / 编辑」是 Electron 的应用菜单栏,不属于网页的插槽树,插件渲染不进去——所以这是网页里离左上角最近、又合法的位置。

为什么需要它

桌面版没有地址栏,想重载页面得自己找路子(快捷键、关掉重开)。而改一个前端插件、装个新插件、或者界面某块卡了不刷新,最省事的办法恰恰就是整页重载。现在它就贴着会话标题,一眼能找到,点一下就行。

装

任选一种:

A. 让 DSH 里的助手装(最省事)——让它用 plugin_manager 的 install_bundle,target 填:

github:xing2yu4/dsh-restart-button

B. 自己用 CLI 装:

dsh plugin --profile <profile> add github:xing2yu4/dsh-restart-button

然后把 dsh-restart-button 加进该 profile 的 package.json:

{
  "dsh": { "profile": { "bundles": [ "...", "dsh-restart-button" ] } }
}

然后重启 DSH。

首次安装必须重启一次:bundle 的 patch 层是在启动时组合的,装完立刻不会出现。重启之后随便点。

卸

dsh plugin --profile <profile> remove dsh-restart-button

从 bundles 列表里删掉这一行,重启 DSH。

长什么样

  • 是一个 28×28 的图标按钮,图标色走主题变量 --dsw-alias-label-primary,深色/浅色主题自动跟随。
  • 悬停出现浅色底,按下有轻微缩放,键盘聚焦有主题色描边。
  • 点一下先转半圈(160 ms),然后 location.reload()。
  • 文案走 Client locale(中文「刷新界面」/ English "Reload interface")。

实现

文件 作用
client.js window.__ModuleLoader__.load 注册到插槽 conversation.header.leading,用 React 渲染按钮
index.js Host 半边是空壳(export function apply() {})——按钮完全在前端
cordis.patch.yml 往 profile 树里插入一行 dsh-restart-button
locale/*.json 插件在「插件」列表里显示的名字和描述

只对 Web 平台有效(dsh.client.platform: "web")。

English

A one-click reload button for the DeepSeek Harness web UI, rendered at the top-left of the conversation header (the first seat in conversation.header.leading). Click → full page reload, so client plugins get re-mounted. The 应用 / 编辑 band above it is the Electron application menu and is not part of the web slot tree.

Install with github:xing2yu4/dsh-restart-button via the plugin_manager tool, or dsh plugin --profile <profile> add ..., add dsh-restart-button to dsh.profile.bundles, and restart DSH once.

License

MIT

—/ 5

No ratings yet

Verified DSH bundle

Commit a45df150a698

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout