Repository navigation
Description
Summary
When the desktop app has no local runtime and no cached Connect credential, Window ▸ Server lists no Connect servers and gives no indication why. The code knows exactly which of three conditions failed, but that reason only reaches a log file. From the menu, "we could not fetch your servers" is indistinguishable from "you have no servers."
This matters most in the exact situation where the menu is the recovery path.
What I hit
My desktop app was pointed at a saved custom server target that had become unreachable (the server moved to a loopback-only bind in 0.36.0, so the old http://<host>.<tailnet>.ts.net:38886 URL stopped answering). The app opened on the startup error screen — see #1494 — whose only escape is Window ▸ Server.
That menu offered "This Mac" and "Set Server URL…" and nothing else. My account has a paired Connect server (bb connect status on the server reports it connected), but it was not listed and nothing explained its absence. I assumed the pick-list feature did not exist and was about to file a feature request for it before reading the source.
Where it goes wrong
All references on main.
apps/desktop/src/connect-server-sync.ts, fetchServers():
const serverUrl = args.getLocalServerUrl();
if (serverUrl !== null) {
return fetchConnectAccountServers({ serverUrl, fetchImpl: args.fetchImpl });
}
const credential = args.getCredential();
if (credential === null) {
return null;
}The fallback path for a remote target with no local runtime is deliberate and well commented ("remote target keeps a live server list with no local runtime"). It just requires a cached credential, and returns null without one.
runSync() then logs:
connect server sync skipped (plugin disabled, not paired, or no local server and no cached credential)
That string enumerates three distinct, actionable causes. None of them reach the UI. listMenuConnectServers() in apps/desktop/src/main.ts simply maps an empty connectAccountServers, and createServerMenuItems() in apps/desktop/src/menu.ts renders the resulting empty list with no affordance.
Expected
When the Connect server list is empty because the sync was skipped rather than because the account has no servers, say so in the menu. Something as small as a disabled item would be enough:
No Connect servers — sign in to bb Connect(no cached credential)No Connect servers — Connect not paired(plugin disabled or unpaired)
A "Sign in to bb Connect…" item that triggers the existing authentication flow would be better still, since that is the actual remedy and there is currently no way to reach it from this menu.
Why this compounds #1494
#1494 covers the startup error screen being a dead end with no controls. This issue is the other half: the menu that screen implicitly depends on can itself be empty for reasons it will not disclose. Together they mean a user whose saved target breaks has no in-app path back, and no information about why the obvious alternative is missing.
Environment
- bb desktop on macOS (M1), server 0.38.0 on Ubuntu 22.04
- Connect paired and reporting connected on the server side
- Desktop app had no cached Connect credential, having never authenticated to a Connect target from that machine
Activity
Joesirven commentedon Aug 18, 2026
Prototype branch, since this is a UI change and CONTRIBUTING asks for sign-off before a pull request:
https://github.com/Joesirven/bb/tree/prototype/connect-server-list-skip-reason
Three small changes:
connect-server-sync.tstracks which condition caused a sync to yield nothing (no-credential,unauthorized,unavailable) and exposes it viagetSkipReason(), cleared on a successful sync.menu.tstakes an optionalserversNoteand renders it as a disabled item.main.tsmaps the reason to a label, only when the Connect list is actually empty.Result is one disabled line in the Server menu, e.g.
No Connect servers — sign in to bb Connect, instead of nothing at all.Two things I did not do, since they seem like your call:
unavailable, becausefetchConnectAccountServersdoes not report which it was.Happy to reshape this however you prefer, or drop it if you would rather solve it alongside #1494.
SawyerHood commentedon Aug 18, 2026
Reproduction & root-cause report: https://get-bb.github.io/reports/issues/1753.html
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).Show why the Server menu lists no Connect servers (get-bb#2168)