Skip to content

Delegated Markdown preview cannot scroll in the thread right panel #5336

Closed

Description

@brsbl

Summary

A long Markdown file opened in a thread's right panel cannot scroll when a plugin file opener delegates to the built-in preview. The Preview tab clips the document after the first screen; mouse-wheel input does not move it.

Versions and environment

Source main e9ad6b0, Linux, Node 24.21.0. Isolated source web app with fresh data and headless Chrome at 1280×577. Reported in BB thread thr_888yye2r7z; investigated in thr_frq37qj86d.

Steps to reproduce

  1. Register a plugin file opener for md that renders its supplied Original component.
  2. Create a long file: python3 -c 'print("# Reading\n\nParagraph.\n\n" * 100)' > reading.md.
  3. Run bb thread open <thread-id> <absolute-path-to-reading.md>.
  4. Select Preview and wheel down over the right panel.

Expected vs actual

Expected: the Markdown preview scrolls and retains its reading position when switching tabs.

Actual: wheel input leaves every ancestor at scrollTop: 0. The file preview's scrollHeight is 5391 while its available height is 529; all enclosing panel wrappers use overflow: hidden and no [data-file-preview-scroll-container] exists.

Evidence

The Markdown content-height layout depends on a scrolling parent. Plugin file openers instead occupy a full-height, overflow-hidden region. This mismatch leaves delegated Markdown without a wheel-scrollable container.

What was ruled out

AGENT GENERATED

Activity

  1. added theissue type on Oct 10, 2026
  2. added
    ui
    plugins
    confirmed-repro
    on Oct 10, 2026
  3. bb-slop-cop commented on Oct 10, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority Medium · Effort Low; labels ui, plugins.
    • Report: Verified reproduction and root-cause report.
    • Verdict: REPRODUCED, high confidence; applied confirmed-repro.
    • Root cause: Delegated native Markdown requires a scrolling parent, but the full-height plugin opener clips its content and supplies no scroll owner.
    • Evidence: Real wheel input fails in two trusted-main checkouts; five delegated regression cases fail while five native cases pass. A local scroll-host experiment restores scrolling and reading position; all 84 relevant tests, app lint, and typecheck pass.
    • No new PR: Existing open #5337 already links this issue. No duplicate fix was committed or pushed; the local experiment was removed.

    AGENT GENERATED

  4. added a commit that references this issue on Oct 18, 2026
    0134fb2
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-repropluginsui

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions