Skip to content
Dispatch
All releases

Install hardening & clean uninstall

v1.8.0

v1.7 made Dispatch installable. v1.8 makes that install something you can trust: the bug that could eat your board after a Node upgrade is gone at the root, prerequisites are one guided command away from wherever you notice them missing, and there is finally a real dispatch uninstall. Everything here was proven on genuinely fresh Linux boxes, not on a machine that already had the right tools lying around.

The data-loss bug is dead

v1.7 stored your board through a native SQLite addon. Native addons are compiled against one Node version, and when Homebrew or nvm moved you to a newer one, the addon could fail to load in a way the old code misread as corruption, quarantine your healthy board.db, and greet you with an empty board. v1.8 removes the native addon entirely. The store now runs on Node's built-in node:sqlite, so there is nothing left to mismatch, and better-sqlite3 is gone from the dependency tree.

The recovery logic was rewritten to fail loud instead of guessing. Dispatch now quarantines a database only on genuine corruption, meaning SQLite's own corruption error codes or a failed integrity_check. Anything else, a permission problem, a full disk, a busy file, an engine that will not load, throws an actionable error and leaves board.db and every backup untouched, byte for byte. Both directions were verified on real Node 22 and Node 24 installs: real corruption still recovers from the newest good backup, and a healthy database can no longer be quarantined by a failure that had nothing to do with it.

One preflight, everywhere

There used to be three slightly different answers to "is my machine ready": the boot check, dispatch doctor, and the web setup screen. Now one preflight module owns the question, and all three surfaces read from it. It reports each of tmux, ttyd, git, and claude, checks the Node version floor, and probes that the storage directory is actually writable, with a per-platform install command for anything missing.

The setup screen gained a "Run install" button next to each missing tool, backed by a loopback-only route, so a fresh machine can fix itself from the browser. After an install it re-checks by probing known install prefixes rather than trusting the stale PATH the server booted with, which is the difference between "installed but still shown as missing until you restart" and it just working. Preflight is informative, never fatal: the app always boots to a live setup screen, and doctor always exits 0 so a missing optional tool cannot break a script that wraps it.

dispatch uninstall

dispatch uninstall reverses what Dispatch itself put on your machine: hook registrations, the config file, and any dsp- prefixed tmux and ttyd sessions. It treats your work as sacrosanct. Git worktrees are listed for you to remove manually, never deleted. Board data survives unless you explicitly pass --purge, and even --purge preserves playbooks you wrote yourself. --dry-run shows the plan without touching anything, and the confirmation prompt defaults to No.

One honesty fix worth calling out: the ttyd cleanup matches any ttyd attached to a dsp- session, and the confirmation prompt now says exactly that, along with reporting any removal that fails instead of pretending it succeeded.

Proven on fresh boxes

npm run sim builds Node 22 and Node 24 Linux images from a locally packed tarball of the package and runs a scenario matrix against them: guided installs, boot-to-setup-screen on both Node versions, the corruption classifier in both directions, and uninstall leaving a clean box. All ten rows pass. The permission-denied scenario runs as a non-root user, because root ignores chmod 000 and would have turned the most important safety row into a false green. The harness itself was made to fail on purpose three separate times to prove it can.

Full changelog: https://github.com/theyashgupta/dispatch/compare/v1.7.0...v1.8.0

Requires Node ≥ 22.22, tmux, ttyd, git, and the Claude Code CLI. Setup is in the README.

View this release on GitHub