Overview
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 / EN
Package documentation
Registry summary
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 verifies the pinned bundle contract, runtime facts, and distribution semantics. The complete README remains in the source repository.
Read the full README on GitHubLIMITATIONS
Known limitations
- **是"停"不是"优雅退出"**:桌面端的退出路径要么是托盘菜单、要么是确认对话框,**外部无法触发**,所以这里是对整棵进程树 `Stop-Process -Force`。会话内容靠"等落盘安静"来保护,但不能保证"最后 0.1 秒"的写入。 - **桌面端会关掉再打开**:窗口会消失几秒再回来(会话选择存在浏览器本地存储里,回来还是同一个会话)。 - **一次只排一次**:重复 `schedule` 会覆盖上一次的排程,不排队。 - **`dsh web` 从无关终端驱动时**,需要 `--caller-pid` 告诉它哪个才是宿主。
