rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:VictorGol/dsh-restart
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
在 DeepSeek Harness 的插件页标题右侧加一个「重启」小按钮:点一下重启 DSH,插件改动立刻生效,不用退出再手动打开。

shell.overlay 槽位,按插件页标题实测定位,紧贴「插件」右侧——不占用、不替换任何内置控件;离开插件页自动隐藏,标题滚进紧凑头部时一起收起dsh web 时,用完全相同的命令和参数重启 Host--dsw-alias-* 主题变量,界面文案跟随 DSH 中英文打开 DSH → 插件 → 添加插件
填入本仓库地址:
https://github.com/VictorGol/dsh-restart
确认安装。按钮出现在「插件」页标题右侧;如果没出现,重开一次 DSH
需要 DSH 0.2.x 桌面版。
点「重启」:窗口会关闭,几秒后自动重新打开并回到前台。正在运行的任务会被中断——这一点和菜单里的退出重启一致。
shell.overlay,读取页面标题 [data-plugin-header-part="title"] 的位置贴在它右侧,用 MutationObserver + resize 重新测量;标题不存在时按钮不渲染POST /dsh-restart/restart,只接受 loopback 请求;自定义请求头跨域会触发预检,而该路径不响应预检,别的网页发不出这个请求;同一时间只允许一次重启(第二次 409)ELECTRON_RUN_AS_NODE、DSH_SESSION_ID、DSH_WEB_URL 等只属于 Host 的变量——open 会把这些变量原样传给被启动的 App,而 ELECTRON_RUN_AS_NODE=1 会让 Electron 以 Node 模式启动:没有窗口、约 0.1 秒退出;open -a 启动,3.5 秒后确认应用进程真的存在;没起来就重试(最多 5 次,第 4 次直接执行应用可执行文件);open -a 触发应用的 activate,把窗口带到前台。$TMPDIR/dsh-restart.log,重启失败时先看这里。ps 校验,所以只有一次启动尝试,起来后应用自己恢复窗口)dsh web:按原命令重启 Host(未在真机单独验证)在插件页卸载即可;不需要清理其他状态。
MIT · 详见 LICENSE
A small Restart button beside the Plugins page title in DeepSeek Harness. One click relaunches the app so plugin changes take effect without quitting and reopening it by hand.
shell.overlay slot and anchored to the page title, so it sits next to the heading without replacing any built-in control. It disappears when you leave the Plugins page or the header collapses on scroll.dsh web: replays the same command and arguments once the old Host released its port.https://github.com/VictorGol/dsh-restartRequires DSH 0.2.x desktop.
The click sends POST /dsh-restart/restart (loopback only, custom-header fenced). The Host then spawns a detached helper and exits; the helper waits for the old application's processes to disappear, strips Host-only environment variables — open forwards the caller's environment, and ELECTRON_RUN_AS_NODE=1 would start the app as Node with no window — launches it, verifies the process exists (retrying up to five times), and finally activates the window. Every step is logged to $TMPDIR/dsh-restart.log.
Verified on the macOS and Windows desktop apps (DSH 0.2.x). On Windows the helper launches the executable directly and cannot verify the result, so it makes a single launch attempt; the application restores its own window.
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。