Skip to content

0.43.3: sidebar-bootstrap/RPC requests wedge indefinitely after a while, regardless of activity — needs full page reload #3964

Closed

Description

@FelixL12

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 connect tunnel: 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-bootstrap directly 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

  1. Open the app via bb connect (or likely also locally — untested locally due to remote-only usage).
  2. Leave it open, with or without sending messages.
  3. After some period (observed within single-digit minutes in several trials), /api/v1/sidebar-bootstrap starts firing repeatedly and getting canceled, and other in-flight requests (plugin RPC calls, message sends) never resolve.
  4. 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

  1. FelixL12 commented on Sep 20, 2026

    @FelixL12
    Author

    Update: found a concrete local trigger.

    Disabling three of our own custom/community plugins that do periodic background polling — review-loop (polls GitHub every refreshSeconds, default 120s), linear (periodic sync service), and wakatime (periodic reconciler service, and separately throwing repeated HTTP 400: Thread event limit cannot exceed 100 errors on final 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 from review-loop/linear's simple periodic polling. Will report back once we isolate it precisely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions