McKayGONG/dsh-safe-restart0

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

包名
dsh-safe-restart
版本
0.1.0
最近更新
2026年8月22日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:McKayGONG/dsh-safe-restart

Usage

Ask the Agent to call restart_dsh. With the default continue_after_restart: true, what the user sees is:

  1. The host connection drops briefly (the tool response may be cut short).
  2. The browser reconnects automatically through DSH's native ConnectionController — no manual refresh.
  3. The original persisted session reappears with its preset and model.
  4. 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.