Repository navigation
Description
Summary
On bb-app 0.43.3, after some time (minutes, not tied to any specific action), the app's requests start hanging permanently. The composer shows "Working..." forever on message send and never completes; the DevTools network tab shows the plugin RPC calls (e.g. /api/v1/plugins/review-loop/rpc/pullRequests) stuck in pending, and /api/v1/sidebar-bootstrap gets fired repeatedly and canceled in a tight loop. Only a full page reload recovers it, and it recurs after a while.
What's been ruled out (with evidence)
- Not the backend/DB: local (loopback) requests to the same endpoints respond in single-digit ms the whole time this is happening; no SQL errors, no slow queries, no event-loop stalls in the server logs.
- Not the
bb connecttunnel: confirmed zero tunnel closures/reconnects for 30+ minute stretches while the bug still reproduced. (Separately, the tunnel does have a real, unrelated intermittent-1006-closure issue, but this bug reproduces with the tunnel provably rock stable throughout.) - Not message-sending specifically: reproduces with zero messages sent, just idle.
- Not thread-specific: reproduces in brand-new threads as well as old ones.
- Not browser-specific: reproduces across multiple browsers (ruling out a single browser's cache/service-worker/extension state).
- Not a slow query from DB size: hitting
/api/v1/sidebar-bootstrapdirectly against the local server returns in ~20ms even while the browser-facing symptom is active.
Versions and environment
- bb-app 0.43.3 (upgraded from 0.40.0 same day; 0.40.0 had not shown this symptom before the upgrade)
- Accessed via
bb connect(Cloudflare-fronted tunnel to a self-hosted VPS) - Linux server, systemd-managed
Steps to reproduce
- Open the app via
bb connect(or likely also locally — untested locally due to remote-only usage). - Leave it open, with or without sending messages.
- After some period (observed within single-digit minutes in several trials),
/api/v1/sidebar-bootstrapstarts firing repeatedly and getting canceled, and other in-flight requests (plugin RPC calls, message sends) never resolve. - A full page reload temporarily fixes it; it recurs after a while.
Suspected area
Possibly related to the sidebar-bootstrap retry policy changes in #2767 (retry indefinitely on transport/5xx failures) combined with some other periodic client-side timer/interval — but in our testing the trigger did NOT require an actual transport failure (tunnel was stable throughout), so the retry-storm trigger condition may be broader than intended, or there's a separate periodic client-side issue independently wedging the request pipeline.
What we ruled out ourselves before filing
Full diagnostic session available if useful — happy to provide more detail. This blocked real usage (could not reliably send messages), so filing with as much detail as we could gather without frontend source access.
AGENT GENERATED — filed on behalf of the account holder during an active support session, with their explicit go-ahead to post.
Activity
FelixL12 commentedon Sep 20, 2026
Update: found a concrete local trigger.
Disabling three of our own custom/community plugins that do periodic background polling —
review-loop(polls GitHub everyrefreshSeconds, default 120s),linear(periodic sync service), andwakatime(periodic reconciler service, and separately throwing repeatedHTTP 400: Thread event limit cannot exceed 100errors onfinal event drain) — immediately resolved the issue. With all three disabled, the app has been stable; with any combination enabled, it reliably wedges again after a while (not tied to sending messages, tunnel health, or DB query latency, all of which we independently verified were fine throughout).We haven't yet isolated which of the three (or which combination) is the actual trigger, but the pattern strongly suggests: a plugin's periodic sync fires enough realtime events (environment/thread/host list invalidation) that
useSidebarNavigation's realtime-owned query eventually gets stuck in a fetch-and-cancel loop against/api/v1/sidebar-bootstrap, which then appears to starve other in-flight requests (composer sends, other plugin RPCs) client-side.Our best specific suspect is
wakatime, since it's the one plugin actively erroring on a recurring basis (final event drain failed ... HTTP 400: Thread event limit cannot exceed 100) — that repeated failure may be what's actually driving the retry/invalidation storm, separate fromreview-loop/linear's simple periodic polling. Will report back once we isolate it precisely.