Repository navigation
BuildY VibeChat v0.2.19
0.2.19
Settings > Server can update the server now, through the same official-release installer the daily timer uses, without giving the service user or the agents root.
Added
- Update now. Settings > Server starts the official updater on demand (
vibechat-server update, the newest GitHub release, checked against that release'sSHA256SUMSbeforedpkg -i). The Studio shows a confirmation, then progress, and reconnects so the new version is visible. Design: ADR 0007. - A narrow privileged trigger. The service user writes
/var/lib/vibechat/update-request(a fixed marker, no arguments). A systemd path unitvibechat-update-now.pathstarts the existing rootvibechat-update.service. The service user is not in sudoers and cannot pick a tag, a URL or an unsigned package. - Host-token-only routes, rate-limited:
POST /host/updateandGET /host/update/status(Bearer only; a session cookie is not enough). The body and query must be empty (or{}). 409 if an update is already running, 429 if the last request was less than five minutes ago. The Studio callsGET/POST /desktop/update; the app holds the token.
Changed
- Servers on 0.2.18 or earlier have no
/host/update. Settings shows the existing console commandsudo vibechat-server updateinstead of a button that cannot work. - Package postinstall enables the path unit on a fresh install and on an upgrade (so a server that updates through the daily timer, or a one-off
sudo vibechat-server update, gains the trigger). If/opt/vibechat/rustis already present, postinstall also runsensure-rustafterensure-go, to refresh the pinned toolchain.
Known limitations
- A server on 0.2.18 or earlier needs one
sudo vibechat-server update(or the daily timer) so the path unit is installed; after that, Update now is enough. ensure-rustruns only when/opt/vibechat/rustalready exists. A first-time lazy install in the data folder is still refreshed on the next Cargo project's first use.- A process that can write the request file can start the official updater. It still cannot choose a package, only the latest official one, and the route is rate-limited. The sandboxed agents do not see that folder.
- Logs often come from this run's memory (the service user is not in the
systemd-journalgroup).
Upgrade note
Server: sudo vibechat-server update (or wait for the daily official update), then use Update now in Settings > Server. The first update to 0.2.19 installs the path unit; if Rust was already installed under /opt/vibechat/rust, it also refreshes the pin. Check every asset against this release's SHA256SUMS. The desktop app adds the Update now card; a browser tab of the Studio still shows the console command.