DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
M

dsh-macos-restart

Macos Restart

macOS 桌面版一键重启 DeepSeek Harness 应用

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:chai-yinfeng/dsh-macos-restart#88e10ec17cd7267166cf8ace9377c1e2c5d22541
README兼容性版本

兼容性与来源证明

Macos Restart 以 dsh-macos-restart 发布,当前版本为 0.2.5。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/10/23

版本

0.2.5stable
2026/10/23
0.2.0stable
2026/10/23
0.1.7stable
2026/10/22

相关插件

正在加载相关插件…

最新版
0.2.5
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/10/23
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 productivity-workflow 分类下经过校验的插件。

Client Ui Task Board@linxin666/dsh-client-ui-task-board面向 DSH Web GUI 的主机权威任务面板,支持实际会话执行、主机 cron 调度以及可选的跨平台空闲睡眠保护;以挂载方式提供,无需修改 DSH 源代码。Web All@linxin666/dsh-web-allDSH Web UI 全家桶聚合插件:一键安装全部功能插件(task-board / pet / web-ui-settings / skin-center / community-plugins / compat shim)。compat 桥接层已并入本包(src/client),无需独立 compat npm 包。Archive Manager@michengai/dsh-archive-manager归档、恢复、收藏和永久删除会话,并诊断损坏的会话日志。Remotedsh-remoteDeepSeek Harness 的远程工作助手:连接 SSH(密码/密钥/代理/键盘交互、多跳 ProxyJump),从 ~/.ssh/config 列出主机,选择远程工作区,使用 21 个 rw_* 工具对其进行操作,支持感知冲突的镜像同步、内嵌 PTY t

README

macOS Desktop Restart (dsh-macos-restart)

English | 中文

macOS 桌面版一键重启 / One-click restart for the DeepSeek Harness desktop app.

A macOS-only one-click restart for the DeepSeek Harness desktop app. It handles the Electron app itself, not a dsh web host: the restart is for making plugins that cannot hot-reload load on the next launch.

Scope

This plugin is for the macOS Desktop app. It is not a generic header control and not a dsh web restart button:

  • It stops the Electron main process, lets the desktop host exit through its own IPC-disconnect path, waits for the old web port to be released, and runs open -a on the .app.
  • It does not support Windows, Linux, dsh web, or a standalone dsh CLI.
  • It deliberately does not add a quit/exit action; macOS already has Cmd+Q. The value here is the automatic relaunch, the running-turn check, and the plugin-install gate.

The community plugin dsh-header-controls also puts restart/exit buttons in the conversation header, but its documented mechanism is a dsh web launcher + Windows taskkill/netstat flow. It does not restart the macOS Electron app. The two plugins overlap only at the header-seat level.

Entry points

  • Title-bar icon in the top-right Session header. On by default.
  • Sidebar-foot icon beside Settings. Off by default; enable it in Settings.
  • Settings → Desktop Restart: status, last restart, logs, entry-point switches, and the restart button.
  • /restart-desktop command. Add --force to restart while a turn runs.
  • Optional draggable floating button, off by default, position remembered.

The header, sidebar, floating button, Settings page, and command all call the same Host operation.

How it restarts

  1. The Client sends POST /plugins/dsh-restart/restart with { "confirm": true }.
  2. The Host checks loopback/same-origin, that this is the macOS desktop host, that no plugin install/update is running, and whether a turn is running.
  3. The Host writes a handoff record and an initial state.json, then starts an independent one-shot opener as a detached /bin/sh. The opener only waits and opens; it never kills. Do not use launchctl submit for this: in a real 0.1.4 test the submitted job restarted the opener every ~10s after the app was back.
  4. The Host starts the killer helper. It sends SIGTERM to the Electron main process. The app may show its own quit confirmation for scheduled tasks; choosing Quit lets it flush account/session state. The host is a separate child: it sees the IPC channel close and runs its own graceful shutdown, so session logs still land. The helper never escalates a normal restart to SIGKILL — Cancel must really cancel, and an unanswered dialog must not be silently killed. If the main process is still alive 3 seconds after SIGTERM, the helper records cancelled, the opener exits without opening, and the UI shows Restart cancelled. If the main already exited and only the old host is still flushing, the helper waits for the host without cancelling — the opener may have already relaunched the app. Only the explicit stale-manager advanced path uses SIGKILL, with its own warning.
  5. The opener/killer wait for the old main process to disappear and for the web port to be released, then run open -a "/Applications/DeepSeek Harness.app". open -a on an already-running app activates it, so the two helpers cannot start two instances.
  6. A normal restart that does not exit is cancelled, not escalated; only the explicit stale-manager force path escalates. Failure is reported with a dialog and a log under ~/.dsh/dsh-restart/.

Diagnostics

  • ~/.dsh/dsh-restart/state.json records the last restart's phase: queued → opener-started/killing → waiting-host → host-exited → waiting-port → port-free → opening → opened (or failed).
  • Settings shows the last phase/time and one Reveal latest log button. POST /plugins/dsh-restart/open-logs does the same from the Host, so it works even when the page has lost its connection. It uses open -R (Finder reveal) because plain open <file>.log depends on a default application and can look like a no-op.
  • The helper log contains the process-level account; the state file is the short version that survives a torn-down process tree.

Stuck install recovery

If the plugin manager holds its install lock with no pnpm/install progress for five minutes, pluginOperation.stale becomes true and the dialog offers Force restart (advanced). It is only available while the lock belongs to the current host, or when no manager lock exists at all; a live pnpm process is never bypassed. A force restart kills the host, releases the lock, and reopens the app — an unfinished install is interrupted, and because it bypasses the app's own quit confirmation the main process may skip its final account/window state flush. Use it only when the manager is actually stuck.

Safety

  • Only loopback requests are accepted. The desktop document proxy may strip both Host/Origin, or only Origin; a loopback Host with no Origin is accepted, and a present Origin must match Host. sec-fetch-site: cross-site is rejected.
  • A running turn returns 409 busy; the Client lists the affected session ids and asks for a second confirmation before sending force: true.
  • A plugin install/update returns 423. The only exception is the explicit advanced force path for a stale manager lock described above.
  • allowRestart: false in cordis.patch.yml disables the operation.
  • The plugin never modifies app.asar and never starts a second server.

Configuration

- id: dsh-restart
  name: 'dsh-macos-restart'
  config:
    allowRestart: true

Files

  • lib/index.js — Host routes (/status, /restart, /open-logs), gates, command, state, helper/opener scheduling.
  • lib/helper.sh — detached killer/opener helper (--dry-run supported).
  • lib/client.js — title-bar icon, sidebar action, Settings page, modal, floating button, log actions.
  • locale/{en,zh}.json — Plugin Manager display metadata.
  • README.zh.md — Chinese README.
  • PUBLISHING.md — npm + curated-catalog release checklist.

Publishing

See PUBLISHING.md. The current package name dsh-macos-restart is a local development name; the publishable artifact is dsh-macos-restart on npm.