概览
dsh-self-restart
Let the agent restart its own DSH host: schedule a self-restart, finish the turn first, then a detached helper stops and relaunches the app and reports what happened.
README / ZH
插件文档
目录摘要
Let the agent restart its own DSH host: schedule a self-restart, finish the turn first, then a detached helper stops and relaunches the app and reports what happened.
dsh.pub 核对固定版本的组合包契约、运行时事实与分发语义;完整 README 请查看源仓库。
在 GitHub 阅读完整 READMELIMITATIONS
已知限制
- **是"停"不是"优雅退出"**:桌面端的退出路径要么是托盘菜单、要么是确认对话框,**外部无法触发**,所以这里是对整棵进程树 `Stop-Process -Force`。会话内容靠"等落盘安静"来保护,但不能保证"最后 0.1 秒"的写入。 - **桌面端会关掉再打开**:窗口会消失几秒再回来(会话选择存在浏览器本地存储里,回来还是同一个会话)。 - **一次只排一次**:重复 `schedule` 会覆盖上一次的排程,不排队。 - **`dsh web` 从无关终端驱动时**,需要 `--caller-pid` 告诉它哪个才是宿主。
