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
AI Analysis
核心用途是允许 Agent 自动安全重启 DSH 进程并自动重连恢复会话。适合在 macOS 上运行复杂、长周期 Agent 任务且需要进程级重置的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:McKayGONG/dsh-safe-restartREADME
Read the full 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.