Repository navigation
Description
Summary
Installing bb with npx bb-app@latest produces an install that can never update itself. npm materializes @latest into a caret range in the npx cache entry, and that range excludes every future minor. The in-app update affordance then appears to do nothing, with no error surfaced.
My install sat on 0.35.1 for 11 days while 0.37.0 was published, and I had no indication anything was wrong beyond the version number.
Reproduction
npx bb-app@latestat a time when latest is0.35.1- Wait for a new minor to be published (
0.37.0) - Use the update affordance in the bb UI
- Observe: still running 0.35.1
Cause
The npx cache entry at ~/.npm/_npx/<hash>/package.json:
{
"dependencies": { "bb-app": "^0.35.1" },
"_npx": { "packages": ["bb-app@latest"] }
}The request was bb-app@latest, but npm recorded the resolved version as the caret range ^0.35.1, meaning >=0.35.1 <0.36.0. On subsequent runs npm checks whether the cached tree satisfies that range. 0.35.1 does, so it skips reinstalling and never re-resolves latest. 0.37.0 cannot satisfy ^0.35.1, so this install is permanently pinned to the 0.35.x line.
This is not a stale cache that heals on its own. It is a hard pin, and it persists across restarts.
Diagnosis notes
Two things made this hard to identify:
-
No error is surfaced. There were no download, install, or version-check log lines in either
server.*.logorhost-daemon.*.log, and no partial artifact in~/.bb/install-cache(which only ever held the tarball of the already-installed version). The update simply does not happen, silently. -
hostNeedsUpdateis a different path.apps/app/src/lib/host-update-status.tscovers updating a remote enrolled daemon after a protocol-version rejection. It requireshost.status === "disconnected"and a non-nulllastRejectedProtocolVersion. That mechanism works, and my two enrolled Macs were fine throughout. It just has nothing to do with updating the machine running the server itself.
As far as I can tell, a web-surface install launched via npx has no self-update path at all. The real auto-update machinery lives in apps/desktop, and my bb-app-runtime.json reports "surface": "web".
Impact
Anyone who followed the npx bb-app@latest install path is frozen at whatever minor they first resolved and has no signal that updates are failing. The longer the install runs, the further behind it drifts.
Suggested fixes
Any of these would help, roughly in order of how much:
- Do not recommend npx for persistent installs. A plain
npm install --prefix <dir> bb-app@latestre-resolveslateston every invocation, so a restart is genuinely an update. This is what I moved to and it works. - Detect the pin and warn. On startup, compare the running version against the registry's
latestand surface a notice when they differ, rather than failing silently. - Log the update attempt. Even one line saying what was checked and what was resolved would have made this a five-minute diagnosis instead of an eleven-day one.
- Document the trap in install docs.
Environment
- bb 0.35.1 at time of discovery, now on 0.38.0 after switching install method
- Ubuntu 22.04.5, Node v24.19.0, npm via nvm
"surface": "web", launched vianpx bb-app@latest
Activity
SawyerHood commentedon Aug 18, 2026
Reproduction & root-cause report: https://get-bb.github.io/reports/issues/1747.html
npx bb-app@latestwhile the old bb is still running makes the launcher falsely print "bb is ready" (waitForHealth accepts the old server's /health) while its children EADDRINUSE-crash-loop and the URL keeps serving 0.35.1 — same root cause as bb-app can enroll a host against the wrong server after its server child fails with EADDRINUSE #1558.npx bb-app stopthen re-run"), and cap immediate crash-restart loops. (2) UI/docs: web Updates row + README/packages/bb-app README should say "stop the running bb (Ctrl+C or npx bb-app stop), then ru…npm config get prefer-offline offlineandnpm -v. Tests used isolated npm cache a…The report has copy-paste repro steps, screenshots where the bug is visual, code permalinks at
16ceb3a54, and repro artifacts. It was independently re-run by a second agent (see its Verification section).SawyerHood commentedon Aug 18, 2026
Closing as a duplicate of #1558. The investigation (https://get-bb.github.io/reports/issues/1747.html) showed that
npx bb-app@latestdoes re-resolvelatest(0.35.1 → 0.38.0 with your exact cache entry), so the caret pin is not what kept you on 0.35.1. What matches your symptoms is the launcher reporting "bb is ready" while the previously running bb still holds the port, so the URL keeps serving the old version — that is #1558. The remaining gap (the web UI's update surface only offers Copy-command) is a feature request rather than this bug.If you can reproduce a case where the npx cache truly stays pinned, please reopen with the cache
package.jsonandnpm --version.