McKayGONG/dsh-safe-restart ↗★ 0
dsh-safe-restart
A macOS-only DSH host plugin that safely restarts the DSH process from inside an Agent session. It terminates only the exact DSH listener process through a detached helper, lets the browser reconnect through DSH's native `ConnectionController` (no manual refresh), resumes the original persisted session, and starts **ex
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:McKayGONG/dsh-safe-restart说明文档
阅读完整 README ↗Usage
Ask the Agent to call restart_dsh. With the default
continue_after_restart: true, what the user sees is:
- The host connection drops briefly (the tool response may be cut short).
- The browser reconnects automatically through DSH's native
ConnectionController— no manual refresh. - The original persisted session reappears with its preset and model.
- Exactly one new assistant turn appears, carrying the restart ID marker
[restartId: ], verifying recovery and continuing the task.
A restart with "continue_after_restart": false performs the same safe
restart and browser recovery but adds no continuation turn.