dsh-bili-scroll
c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:alchemistwu/dsh-self-restart
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Let the agent restart DSH Desktop itself — safely.
The agent's shell tool runs as a child of the Desktop main process. Any
watchdog it spawns with nohup/disown dies with the Desktop process tree
(those only survive SIGHUP). This plugin materializes a watchdog script and
a double-fork + setsid() launcher: the watchdog escapes into its own
session, gets reparented to launchd, then kills Desktop, relaunches it, and
polls a health URL — writing progress to a status file the next turn reads.
Verified end-to-end: kill → relaunch → healthy in ~3 seconds.
The agent calls the desktop_restart tool. The call never meaningfully
returns — the turn dies mid-stream. The plugin records which session asked;
after the watchdog reports HEALTHY, the next boot resumes that session and
wakes it with a followup message, so the agent continues its post-restart
verification without a user poke. Status file for manual inspection:
cat /tmp/dsh-self-restart.status
# 2026-09-02T01:27:40Z killing
# 2026-09-02T01:27:41Z relaunching
# 2026-09-02T01:27:43Z HEALTHY after 3s
- id: self-restart
config:
appPath: /Applications/DSH Desktop.app # default
healthUrl: http://127.0.0.1:43120/ # default
statusFile: /tmp/dsh-self-restart.status # default
npm test # node --experimental-strip-types --test CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。