dsh-autonomous-restart

Restart initiated by the agent itself, not by a button. The agent calls one tool, then the plugin takes over: it waits until every agent and background job on the host is idle, runs a visible ten-second countdown that a click, a scroll, or a key press cancels, then restarts DSH and wakes the original session so the agent carries on from its last sentence. No button, no manual entry: the tool is the only way in. Works on the official desktop app and the official web client; third-party shells are not supported out of the box. Windows only. One thing to know: every launch of the DSH desktop app writes a fresh identity cookie into its own profile and never prunes the old ones, so after enough launches the cookie header outgrows the request limit and the next start dies with HTTP 431 and `Error: desktop welcome: Web authentication failed`, with no window at all. Restarting by hand runs into this too; this plugin simply restarts far more often, so it brings that day closer.

Overview

Restart initiated by the agent itself, not by a button. The agent calls one tool, then the plugin takes over: it waits until every agent and background job on the host is idle, runs a visible ten-second countdown that a click, a scroll, or a key press cancels, then restarts DSH and wakes the original session so the agent carries on from its last sentence. No button, no manual entry: the tool is the only way in. Works on the official desktop app and the official web client; third-party shells are not supported out of the box. Windows only. One thing to know: every launch of the DSH desktop app writes a fresh identity cookie into its own profile and never prunes the old ones, so after enough launches the cookie header outgrows the request limit and the next start dies with HTTP 431 and `Error: desktop welcome: Web authentication failed`, with no window at all. Restarting by hand runs into this too; this plugin simply restarts far more often, so it brings that day closer.

Installation

Install from npm

dsh plugin --profile web add dsh-autonomous-restart

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

Install from GitHub

dsh plugin --profile web add github:meng-lx/dsh-autonomous-restart

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.

Installation notes

  • May run terminal commands