Repository navigation
Description
Summary
On a slow connection, several bb pages jump while their data and plugins load. The plugin page header is inserted above the content after the plugin registers. On Machines, Updates, Projects, AI services, Appearance and Files, rows and later sections move as each request resolves. Updates also says "No machines available." while its machine list is still loading. The page should hold its layout until each part has what it needs, and never show an empty state that isn't true.
Versions and environment
- bb from source at
main4d7a9af (also measured at e0c49e2). Source dev instance (pnpm start:worktree), Linux, Node 22.19.0. - Chrome over CDP, with Slow 4G emulation (562.5 ms latency, 180 kB/s down), the HTTP cache disabled and 4× CPU throttling. Viewports: 390×844 touch and 1440×900.
Steps to reproduce
- Start a source dev instance with at least one machine and three projects.
- In Chrome DevTools, set Network to Slow 4G, disable the cache and set CPU to 4× slowdown.
- Open each page, then reload it:
/plugins/plugin-api-docs/plugin-api,/settings/machines,/settings/updates,/settings/projects,/settings/ai-services,/settings/appearance,/settings/files. - Watch the content below the first section, or record CLS with a
PerformanceObserveronlayout-shift.
Expected vs actual
Expected: content appears below what is already final, and the page doesn't move.
Actual (CLS is the largest session window; the "core" figures exclude sidebar and theme-plugin shifts):
| page | 390 | 1440 | what moves |
|---|---|---|---|
| Plugin page (plugin-api-docs) | pane shift 0.1457 | pane shift 0.0872 | the header is inserted 48 px above the content once the plugin's nav panel registers |
| Machines | 0.0088 | core 0.0011 | the "Loading…" line becomes the machine list, and "How devices reach this server" moves |
| Updates | 0.0102 | 0.0015 | Provider CLIs goes from "No machines available." to "Checking for updates…" to machine rows, and the sections below move 4–49 px |
| Projects | 0.0247 | 0.0007 | rows wait for hosts behind "Loading…", then each thread count moves when "1 machine" lands |
| AI services | 0.0124 | 0.0004 | each row's description gains a wrapped status line, moving Voice input 19 px |
| Appearance (returning visit) | 0.0092 | 0.0059 | plugin footer rows register late and reorder |
| Files (returning visit) | 0.0125 | 0.0012 | the .pdf files row moves 84 px twice as opener plugins register rows above it |
Evidence (code at main 4d7a9af)
- Plugin header: rendered only when plugin chrome exists.
{panelChrome ? ( {panelChrome ? (
- Machines: a one-line "Loading…" stands in for the list.
bb/apps/app/src/components/settings/MachinesSettingsSection.tsx
Lines 434 to 435 in 4d7a9af
{hosts === undefined ? ( <p className="text-sm text-muted-foreground">Loading…</p>
- Updates: the empty state renders while the inventory is still loading, and the footer flips between "Show machines" and nothing as statuses classify.
<ResourceListState state="empty" message="No machines available." /> ? "Show machines"
- Projects: the whole list waits for hosts, and the thread count sits after the variable-width machine summary.
<p className="text-sm text-muted-foreground">Loading…</p> bb/apps/app/src/components/settings/ProjectsSettingsSection.tsx
Lines 188 to 197 in 4d7a9af
<div className="flex flex-wrap items-center gap-x-3 gap-y-0.5"> <span className={cn("shrink-0", needsSetup && "text-warning-text")} > {machineLabel(summary)} </span> <span className="shrink-0"> {pluralize(project.threads.length, "thread")} </span> </div>
- AI services: the status is appended to the hint text once data arrives.
bb/apps/app/src/components/settings/AiServicesSettingsSection.tsx
Lines 131 to 145 in 4d7a9af
view: SystemAiServicesResponse, row: AiTaskRow, testResult: AiTaskTestResult | undefined, ): string { const selection = view.selections[row.task]; let current = ""; if (selection.mode === "automatic") { const automatic = automaticServiceFor(view, row.task); current = automatic === null ? " Nothing is ready, so bb falls back." : ` Using ${automatic.displayName}.`; } else if (selection.mode === "service") { const service = view.services.find( (candidate) =>
- Files and Appearance: plugin rows exist only after each plugin's app code registers them.
bb/apps/app/src/lib/plugin-slots.ts
Line 685 in 4d7a9af
export function setPluginSlotRegistrations( export function FileOpenerChoicesSection() {
Measured with a CDP harness: a buffered PerformanceObserver, screencast frames, and each page visited once 20 s before the measured load.
What I ruled out
- Command palette rows: every move has
hadRecentInput=trueand lands 46–83 ms after a keystroke; those are filter results, not load shifts. - Not a duplicate of Thread context card moves the transcript 132 px when its first row's data arrives #8531: that issue is the thread context card.
- Two shifts owned elsewhere, excluded from the figures above:
- The 390 closed-drawer sidebar rail collapse (0.0577) and the plugin-added sidebar links.
- A theme plugin's font swap on Machines 1440 (0.0579).
AGENT GENERATED
Activity
bb-slop-cop commentedon Dec 2, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotClassification: Bug · Medium priority · Medium effort ·
ui,pluginsReproduction report — Partially reproduced, with high root-cause confidence for the verified cases. The Updates regression failed in two clean checkouts: Provider CLIs treats the pending host list as empty. Both runs also verified the Machines section shift and late Plugin Guide header. Applied
partial-repro.No duplicate PR opened: #8538 already links to this issue.