Skip to content

Unbounded list rendering in 3 components: CSV preview mounts all 50k cells, WorkspaceChangesList renders every changed file while collapsed, RemotePathBrowser renders every readdir entry #1615

Closed

Description

@SawyerHood

Problem

Eleven components map a full array into a scroll surface. No client limit bounds the row count. A CSS height limit on the scroll box does not limit DOM creation.

The CSV path in FilePreview.tsx is the worst case. It can create about 50,000 cells.

Affected files

File Lines
apps/app/src/components/dialogs/RemotePathBrowser.tsx 242, 387
apps/app/src/components/pickers/BranchPicker.tsx 570, 1044
apps/app/src/components/pickers/ModelReasoningPicker.tsx 971-996
apps/app/src/components/plugin/management/BrowsePluginsTab.tsx 276
apps/app/src/components/promptbox/banner/ThreadPromptContextBanner.tsx 404-405
apps/app/src/components/promptbox/banner/ThreadTodoCard.tsx 104-109
apps/app/src/components/secondary-panel/FilePreview.tsx 971, 979
apps/app/src/components/settings/UpdatesSettingsSection.tsx 896-920
apps/app/src/components/thread/WorkspaceChangesList.tsx 111-119
packages/shared-ui/src/components/ui/command.tsx 61
packages/shared-ui/src/components/ui/resource-pagination.tsx 306-309

Why iOS Safari

WebKit must create, style, lay out, and hit-test every row, including the rows outside the viewport. This raises memory use. iOS Safari has tighter memory limits than desktop browsers, so the tab can slow down or reload.

The rows also compete with touch scroll on the main thread.

Suggested fix

  1. Virtualize the large lists.
  2. If virtualization does not fit a surface, keep a bounded window.
  3. Add content-visibility: auto with row containment when the full list must stay in the DOM.

Relationship to #1301

#1301 covers the thread timeline, which never unmounts history. This issue covers 11 other components outside that path. Fix #1301 first if the two overlap in the timeline.

How this was found

An automated audit read all 384 frontend .tsx and .css files in apps/app, apps/web, and the shared UI packages. Each finding then went to a separate agent that reopened the file and tried to refute it. This finding survived that pass.

Please spot-check the line numbers before you start work. The audit is automated and the severity is a judgement, not a measurement.

Tracking issue: see the full 20-finding audit.

AGENT GENERATED: by Claude Opus 5

Activity

  1. SawyerHood commented on Aug 14, 2026

    @SawyerHood
    CollaboratorAuthor

    Tracking issue for the full 20-finding iOS Safari audit: #1616

    AGENT GENERATED: by Claude Opus 5

  2. added theissue type on Aug 14, 2026
  3. SawyerHood commented on Aug 18, 2026

    @SawyerHood
    CollaboratorAuthor

    Reproduction & root-cause report: https://get-bb.github.io/reports/issues/1615.html

    • Verdict: PARTIALLY REPRODUCED · root-cause confidence: high
    • Root cause (short): Three of the 11 listed surfaces really map unbounded/huge arrays into small scroll boxes (CSV preview mounts all 50,000 td of its 500x100 cap; prompt-banner WorkspaceChangesList mounts one row per changed file even while collapsed and the status payload is unbounded; RemotePathBrowser renders every readdir entry); the other 8 are bounded upstream, tiny in practice, a container that maps nothing, or a misread of the pagination helper.
    • Proposed fix: (1) Virtualize CSV preview tbody rows (and optionally columns) with the already-used @tanstack/react-virtual over the existing scroll container, keeping sticky thead. (2) In ThreadPromptContextBanner, don't mount the git body while collapsed and pass limit to WorkspaceChangesList (metadata panel already does) or virtualize; cap WorkspaceStatus.workingTree.files at the daemon boundary with maxFiles/truncated like WORKSPACE_DIFF_MAX_FILES (protocol version bump). (3) Add a limit/truncated pair to the daemon directory-listing command used by RemotePathBrowser (protocol version bump) and virtual…
    • Caveats: Revision re-ran the whole repro on a fresh instance (app :17792 / server :25792 / daemon :33792, project proj_uzvv6df4kw, thread thr_6isgdy7qwz) at 16ceb3a: the spawn step now uses eval "$(scripts/bb-dev-app env)" and step3-spawn.out shows the real 404-without-BB_HOST_DAEMON_PORT vs success; step5/step5b are single clean 1x-then-4x runs (dev 2.8/11.2 s, prod 2.0/8.4 s max long task, +33 MB hea…

    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).

    AGENT GENERATED: by Claude Opus 5

  4. added
    partial-repro
    on Aug 18, 2026
  5. changed the title [-]Unbounded list rendering in 11 components: full arrays mapped into scroll surfaces (CSV preview can create ~50k cells)[/-] [+]Unbounded list rendering in 3 components: CSV preview mounts all 50k cells, WorkspaceChangesList renders every changed file while collapsed, RemotePathBrowser renders every readdir entry[/+] on Aug 18, 2026
  6. SawyerHood commented on Aug 18, 2026

    @SawyerHood
    CollaboratorAuthor

    Retitled to the three surfaces that reproduced (https://get-bb.github.io/reports/issues/1615.html). Of the 11 listed, 8 are bounded upstream, tiny in practice, a container that maps nothing, or a misread; the three that really map unbounded/huge arrays into small scroll boxes are: the CSV preview (mounts all 50,000 td of its 500x100 cap), the prompt-banner WorkspaceChangesList (one row per changed file even while collapsed; status payload is unbounded), and RemotePathBrowser (every readdir entry). Virtualize or cap those three.

    AGENT GENERATED: by Claude Opus 5

  7. added
    confirmed-repro
    and removed
    partial-repro
    on Aug 18, 2026
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

    confirmed-reproperf

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions