Preface¶
Upgrading DeepSeek Harness (DSH) typically requires manual operations in the terminal: quit, install the new version, restart, then verify whether the upgrade succeeded. This process is error-prone, especially when a network disconnection or restart failure occurs midway, making it difficult to diagnose the problem. The dsh-updater plugin brings this workflow into DSH’s sidebar: when a new version is available, a “⬆ Update” entry appears. Clicking it opens a step-by-step wizard. After the upgrade completes, eight self-checks are automatically executed, and any failure is clearly identified.
What It Is¶
dsh-updater is a workflow plugin maintained by r56661828-cloud. It handles DSH’s own upgrade process within DSH: checking for the latest version, guiding the installation, restarting the host, and performing post-upgrade self-checks to ensure the upgrade hasn’t broken existing configurations or functionality.
Core Features¶
- Version checking: Reads
dist-tags.latestfrom the registry, with a heartbeat every 3 hours and an additional manual check when the panel is opened; when offline, it reports “Network unavailable” rather than pretending it’s on the latest version. - Two-phase upgrade that survives host restart: The foreground only performs validation and orchestration; the actual install runs inside an isolated cgroup via
systemd-run --user --scope --unit=dsh-upgrader-bounce; when the host subsequently restarts, the upgrade process is not in its process tree. - Step-by-step visibility: Backup → Install → Version verification → Ledger → Restart → Self-check. Each step has a status (running / done / warn / failed / manual), and on failure it stops at that step and preserves the error.
- Post-upgrade self-checks S1–S8: Version matches target, profile can be re-synthesized, dump diff shows zero loss in the user layer, role model pins are intact, service is healthy, journal has no errors, all three hook packages are present, and local plugin host-version dependencies are aligned.
- Pre-upgrade log snapshot: Full
journalctlexport to a snapshot file (written to.tmpfirst, then renamed) for later reference if issues arise. - Queryable state:
~/.dsh/updater/status.json— the page polls it, so refreshing the page won’t lose progress.
Installation & Enablement¶
The plugin requires DSH ≥ 0.2.2-rc.1. Install from Gitee:
dsh plugin --profile web add git+https://gitee.com/you-renjun/dsh-updater.git
After restarting dsh web, the action slot at the bottom of the sidebar will show the entry when an update is available. The frontend artifact client.js is pre-built and committed; src/ is only for development-time rebuilds, doesn’t affect installation, and doesn’t require allowBuilds authorization.
Typical Usage¶
- Click “⬆ Update” at the bottom of the sidebar (hidden when no new version is available).
- In the panel, review current version → target version, then click “Start Upgrade.”
- Follow the prompts; when a restart is needed, click “Restart Now.”
- After the upgrade completes, review the eight self-checks: all green means success; any
warnwill specify which item.
Applicable Scenarios & Cautions¶
- System requirement: Linux + user systemd (
systemd-run --user). Environments without user systemd cannot establish the bounce chain and will produce an explicit error rather than a silent failure. - Directory permissions: Write access to
~/.dsh/updater/(state, log snapshots) and the profile directory (backups, patches) is required. Read-only environments will fail at the “Backup” step. - Channel restriction: Only tracks
latest; pre-release versions will not be recommended. - Risk notice: It actually installs a new version and restarts the host. Please ensure the current session is saved before upgrading.
In Short¶
dsh-updater transforms DSH’s upgrade process into a controllable, wizard-driven operation and provides detailed eight-point self-checks to help developers quickly identify the cause of upgrade failures. For more details, see the plugin directory page and the GitHub repository.