nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:csdjl88/dsh-web-restart
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
DSH web plugin: one-click full restart of the harness from the sidebar — terminates the current dsh web process and relaunches the identical command through a startup guard (no systemd/Docker supervisor required), with automatic page recovery and an agent-callable restart tool.
The npm name
dsh-restartis already taken by a same-purpose project, so this plugin ships asdsh-web-restart.
sidebar.footer.action row (beside the Cordis lifecycle panel). Click = restart, no confirmation dialog (single-user, trusted-host model).dsh web process and relaunches the same command line (preserving --profile / --patch and all inner flags, always ensuring --no-open so no browser window is popped).connection/reset) restores the UI in the same session tab (the session survives via DSH persistence).dsh_restart sharing the same restart core.dsh plugin --profile web add github:csdjl88/dsh-web-restart
Restart DSH for the button to appear in the sidebar footer.
Click "Restart DSH" at the bottom of the sidebar. The button shows "Restarting…" and polls automatically; the page does not reload — DSH's WebSocket auto-reconnect restores the UI in the same session tab (no new tab). If the fresh process is not ready within 30 seconds, an error is shown (check the terminal running dsh).
Just ask "restart DSH" in a conversation (tool dsh_restart, optional reason argument). Note: a restart interrupts all running agent tasks and background jobs.
click / tool call
└─ POST /dsh-restart (idempotent, single-flight)
└─ spawn the relaunch guard (same node + original argv + auto `--no-open`)
└─ old process exits after ~1s
└─ guard polls: old pid gone & port free
└─ relaunch `dsh web` (with `--no-open`) in its own session
└─ no reload, no new tab — DSH auto-reconnects to the same session tab
--no-open (appended when the original command lacks it): the browser is already in front of the user, so no new window is popped.connection/reset) restores the UI in the original session tab.POST /dsh-restart (trigger), GET /dsh-restart/health (liveness; returns pid so the front end can recognise the fresh process).DSH_RESTARTED_BY / DSH_RESTART_OLD_PID / DSH_RESTART_PORT.After a restart the fresh dsh web runs in its own session (process group). The original dsh was the terminal's foreground process-group leader; once it dies the old group becomes orphaned and no longer receives the terminal's Ctrl+C — this is inherent to the Unix process model and cannot be fixed by the plugin. Stop the restarted harness with any of:
pkill -f "dsh web" / kill <pid> (lsof -iTCP:3080 to find the pid).dsh web in a foreground terminal (no supervisor); the relaunch pipeline is verified against a real dsh web instance.0.1.0-rc.7 or newer.npm run check # syntax checks
npm test # unit tests + process-level e2e (real restart pipeline)
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: agent。