McKayGONG/dsh-safe-restart0

dsh-safe-restart

仅限 macOS 的 DSH 宿主插件:支持在 Agent 会话内部安全重启 DSH 进程

AI 分析

核心用途是允许 Agent 自动安全重启 DSH 进程并自动重连恢复会话。适合在 macOS 上运行复杂、长周期 Agent 任务且需要进程级重置的用户。

包名
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.