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
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
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.
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
Virtualize the large lists.
If virtualization does not fit a surface, keep a bounded window.
Add content-visibility: auto with row containment when the full list must stay in the DOM.
#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.
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).
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
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.
Activity
SawyerHood commentedon Aug 14, 2026
Tracking issue for the full 20-finding iOS Safari audit: #1616
SawyerHood commentedon Aug 18, 2026
Reproduction & root-cause report: https://get-bb.github.io/reports/issues/1615.html
limitto 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…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).[-]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[/+]SawyerHood commentedon Aug 18, 2026
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
tdof 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.Virtualize the CSV preview rows and remote path browser entries (get-…