You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Home renders the hidden mobile "Recent" list with every thread on desktop #5419
Summary. On desktop, the Home page renders the compact-layout "Recent" section (section[data-root-compose-mobile-recents]) with display: none, and that section lists every live thread. With about 4,450 threads this adds about 63,000 DOM nodes to Home. The list is not visible and is not virtualised or capped.
Environment. bb 0.46.0, web surface (127.0.0.1:38886), Chromium 1208 on Linux, 1400 × 1000 viewport. About 4,900 live threads, most created by automations.
Steps.
Open Home with a few thousand live threads.
In DevTools, run document.querySelector("section[data-root-compose-mobile-recents] ul").children.length, then document.getElementsByTagName("*").length.
Open any thread and run the second query again.
Observed.
The hidden list has 4,453 <li> rows, one per thread, each with a provider icon tile and a closed Radix state (data-state="closed"). Its section computes to display: none, height 0.
The page has 65,069 elements on Home and 2,111 with a thread open.
Any script that queries or observes the document (including plugin content scripts) pays for the hidden subtree on every pass. In our profile, querySelectorAll calls from content scripts and style recalculation took a large share of each sidebar update while Home was open.
Expected. The compact Recent list mounts only in the compact layout (for example behind the same media query that hides it), and a long list is capped or virtualised.
Related.#2758 reworked the compact mobile Home and Recents.
Root cause: The desktop Home layout mounts compactScrollContent; CSS hides the Recent section without removing its unbounded rendered subtree. The report does not claim to reproduce the original element totals or profiling timings.
Fix:#5420 — ready, not merged. Removes only the desktop mount; compact rendering remains intact. The regression fails before the fix and passes afterward; 44 relevant tests, lint, typecheck, and diff checks pass. Two files, 41 changed text lines. Mobile list capping/virtualization remains outside this minimal fix.
Activity
bb-slop-cop commentedon Oct 13, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotClassification: Bug · Priority: Medium · Effort: Low · Labels:
ui,perf,confirmed-repro.Report: https://get-bb.github.io/reports/issues/5419.html — REPRODUCED, high root-cause confidence. Repeated the failing DOM regression in two clean checkouts of trusted main.
Root cause: The desktop Home layout mounts
compactScrollContent; CSS hides the Recent section without removing its unbounded rendered subtree. The report does not claim to reproduce the original element totals or profiling timings.Fix: #5420 — ready, not merged. Removes only the desktop mount; compact rendering remains intact. The regression fails before the fix and passes afterward; 44 relevant tests, lint, typecheck, and diff checks pass. Two files, 41 changed text lines. Mobile list capping/virtualization remains outside this minimal fix.
Keep compact Home content out of the desktop layout (#5420)