Updating SuperHive
npm installation: update in the browser
Section titled “npm installation: update in the browser”An instance installed with npm install -g superhive and managed in the background by hive start shows an update entry in its bottom status bar when a newer version is available. Open it to review versions and release notes. Only the local owner, browsing on the computer running Hive, can choose Update and restart. Guests have no update action. Remote owner devices see a contact-owner notice, even if they have approved host-management access.
- Install the confirmed npm version in a staging directory. Check its version, Server and web files, and native SQLite dependency. The old Server keeps running.
- Replace the global package only after verification, then restart with the same data directory and listener configuration.
- The page reconnects and reloads automatically, showing the new version. Once you confirm, the dialog closes and a progress card in the bottom-right corner shows the current step; minimize it to the status bar with ”—” and click the status bar item to bring it back. Reloading the page restores progress.
The Server process must be replaced: refreshing the browser alone cannot load new Server code. When handover is supported, local Agent processes stay alive and running tasks continue. If handover is unavailable and Agents are busy, the owner must choose to wait for tasks to finish (recommended) or update immediately and interrupt them.
Installation failures do not replace the old package or stop the old Server. If the new Server fails to restart, Hive restores the old package and attempts to restart it. If recovery also fails, the UI reports the failure rather than claiming recovery. Check web-update.log and server.log in the data directory. Update state persists in web-update.json; duplicate clicks cannot start concurrent installs.
Version checks are cached for one hour, including offline results. Offline checks are silent. To check right away, click the leftmost “SuperHive version” item in the status bar and choose Check for updates: it bypasses the cache and reports the result in the bottom-right corner (up to date, or why the check failed; a new version opens the update dialog). Source runs only show that they don’t check for updates. Release summaries come from the project’s GitHub Release; a full-release link remains available when the summary cannot be loaded.
Installations requiring manual updates
Section titled “Installations requiring manual updates”| Installation | Why one-click updating is unavailable | What to do |
|---|---|---|
Source / pnpm dev / link |
Not a replaceable npm global package | Pull code, rebuild, and restart using the original development workflow |
Temporary npx cache |
No stable global installation directory | npx superhive@latest restart --data-dir <original-data-directory> |
| Unwritable npm global prefix | Cannot safely replace or roll back the package | Configure a prefix you own, then use the displayed command; do not use sudo |
| pnpm / bun / yarn global install | Browser staging and rollback support npm only | Run hive update --data-dir <original-data-directory> in the original terminal |
--foreground, systemd, launchd, or another process manager |
The external manager owns the lifecycle; a new CLI background service would conflict | Stop the original service, upgrade its package, and start it using the original manager; see cloud deployment |
| Desktop application | Separate application update mechanism | Use the desktop update entry |
A normal CLI-managed background instance can still use:
hive update --checkhive update --data-dir /path/to/hive-data--data-dir retains that instance’s state and does not restart another Hive in the default directory. Upgrades do not clear rooms or messages, but backups are still recommended. Handover is not a guarantee against power loss, crashes, or incompatible database changes.
Desktop application
Section titled “Desktop application”The desktop application uses its own in-app updater and does not show the npm update action. Open the update entry for release notes, download and verify in the background: once you confirm, the dialog closes and a card in the bottom-right corner shows download progress, speed and the time left (you can minimize it to the status bar, and cancel while it downloads; on Windows the final “Installing” step can’t be interrupted, and if the app’s own download fails it retries once with the system’s built-in download, which the card points out: that one only follows the system proxy and has no progress or cancel). Checking and downloading follow Settings → This computer → Network proxy, and a failed download says which proxy was used. Then restart to update from the card. Restarting interrupts any agents on this computer that are running tasks, so in that case the client first asks you to wait for the tasks to finish (recommended) or restart now and interrupt them. While it waits, the card shows which agents it is waiting for and you can cancel at any time; it restarts once they all finish, waits up to 30 minutes, and after that only reminds you instead of restarting on its own. When the app is connected to a Hive started with hive start, quitting the app does not stop that Hive, so it restarts right away as before. You can keep using the app and apply the update on its next exit or launch as indicated by the client. When in-app installation is unavailable, the client explains why and offers the installer download instead. The app checks every 6 hours; Check for updates in the status bar version panel, or the Check for Updates… menu item, checks right away and also brings back a version you chose to skip.
Opening a desktop Server in a browser does not grant desktop application installation permissions.