Skip to content

[Bug]: Firefox cannot scroll Markdown content in the right chat sidebar #107571

Closed

Description

@crash2kx

Summary

In OpenClaw 2026.7.1, the rendered Markdown reader in the right-hand chat sidebar cannot be scrolled in Firefox when its content is taller than the available panel height. The content is clipped instead of producing a usable inner scrollbar.

This was observed after upgrading to 2026.7.1. The same layout pattern also exists in the Agents Markdown preview modal and may affect that surface as well.

Environment

  • OpenClaw: 2026.7.1
  • Install: official Docker image with a thin derived runtime layer
  • Client OS: Windows 11 (64-bit)
  • Firefox: 152.0.5
  • Gateway OS: Linux/Docker

Steps to reproduce

  1. Open the OpenClaw Control UI in Firefox.
  2. Open a chat with a Markdown document or rendered Markdown content in the right-hand sidebar reader.
  3. Ensure the rendered content is taller than the available sidebar height.
  4. Try to scroll inside the Markdown reader.

Actual behavior

The Markdown content extends beyond the available height but the intended inner scroll area does not scroll. Content below the visible area is inaccessible.

Expected behavior

The sidebar content area should shrink within the flex layout and scroll vertically.

Source analysis

The relevant rule in ui/src/styles/chat/sidebar.css is currently:

.sidebar-content {
  flex: 1;
  overflow: auto;
  padding: 16px;
}

Its flex ancestors include .chat-sidebar and .sidebar-panel. None of these elements currently resets the automatic flex-item minimum height.

Firefox therefore appears to retain the scroll child's intrinsic minimum height. An ancestor clips the overflow before .sidebar-content can become the intended inner scroll container.

The Agents Markdown preview has the same layout pattern in ui/src/styles/components.css: .md-preview-dialog__body uses flex: 1 and overflow: auto without min-height: 0.

The bundled 2026.7.1 asset contains the same declarations, so this is present in the shipped Control UI rather than being caused by a local source modification.

Suggested fix

The smallest likely repair is to reset the flex minimum size on the actual scroll children:

.sidebar-content,
.md-preview-dialog__body {
  min-height: 0;
}

If the nested sidebar layout still prevents shrinking, one or both flex ancestors may also need the reset:

.chat-sidebar,
.sidebar-panel {
  min-height: 0;
}

The final selector set should be reduced after reproducing in Firefox.

Regression coverage

A focused layout assertion should verify that:

  • the sidebar scroll child has a constrained client height,
  • its scroll height can exceed its client height,
  • vertical scrolling changes scrollTop,
  • the same behavior works in the Agents Markdown preview modal.

If the browser test matrix supports it, this should be exercised in Firefox as Chromium can mask flex automatic-minimum-size problems.

Activity

  1. added a commit that references this issue on Jul 14, 2026
    8eb3f76
  2. clawsweeper commented on Jul 14, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed July 14, 2026, 3:27 PM ET / 19:27 UTC.

    Summary
    Keep open: current main still contains the affected Firefox flex-scroll layout, and the focused implementation candidate at #107592 remains open and unmerged.

    Reproducibility: yes. at the source level: the report provides concrete Firefox steps on v2026.7.1, and current CSS retains the flex minimum-size pattern that causes the failure. This review did not independently run Firefox, so the status is source-reproducible rather than reproduced.

    Root-cause cluster
    Relationship: canonical
    Canonical: #107571
    Summary: This issue is the canonical user report; one open PR is the active fix candidate, while a second alternate PR closed unmerged.

    Members:

    Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

    Next step
    The open linked PR already owns this narrow repair, so ClawSweeper should not queue a competing fix branch.

    Review details

    Best possible solution:

    Review and land the narrow linked fix after a real Firefox run proves scrolling in both the chat sidebar and Agents Markdown preview, without opening a duplicate repair branch.

    Do we have a high-confidence way to reproduce the issue?

    Yes at the source level: the report provides concrete Firefox steps on v2026.7.1, and current CSS retains the flex minimum-size pattern that causes the failure. This review did not independently run Firefox, so the status is source-reproducible rather than reproduced.

    Is this the best way to solve the issue?

    Yes provisionally: applying min-height: 0 to the actual scroll children is the narrowest maintainable repair. Direct Firefox proof should determine whether either ancestor also requires the reset.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The source evidence and reporter steps are strong, but this review did not independently execute the failure and repair in a real Firefox session.
    • The linked PR claims Firefox behavior based partly on source analysis and an equivalent inline-style check; direct after-fix Firefox proof should confirm both affected surfaces before merge.

    Codex review notes: model internal, reasoning high; reviewed against a679cda0c99f.

    Label changes

    Label changes:

    • add P1: Firefox users cannot access clipped Markdown content in an established Control UI workflow on the current release.
    • add impact:ux-friction: The cross-browser layout defect makes rendered content inaccessible unless users change browsers or apply a technical workaround.
    • add issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.
    • add clawsweeper:source-repro: Current issue advisory state selects this label.

    Label justifications:

    • P1: Firefox users cannot access clipped Markdown content in an established Control UI workflow on the current release.
    • impact:ux-friction: The cross-browser layout defect makes rendered content inaccessible unless users change browsers or apply a technical workaround.
    Evidence reviewed

    What I checked:

    Likely related people:

    • @velvet-shark: Repository contribution guidance routes Control UI changes to this owner, making them the strongest available reviewer for the affected UI layout paths. (role: documented Control UI owner; confidence: medium; files: ui/src/styles/chat/sidebar.css, ui/src/styles/components.css)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  3. added
    P1High-priority user-facing bug, regression, or broken workflow.
    impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.
    issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
    clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.
    on Jul 14, 2026
  4. reply2future commented on Jul 15, 2026

    @reply2future

    It is the same problem of macOS app, and the one which version is v2026.6.11 doesn't have this problem.

  5. added a commit that references this issue on Jul 16, 2026
    0f6d2d2
  6. ptesny commented on Jul 16, 2026

    @ptesny

    Same issue reproduces in Chrome on OpenClaw 2026.7.1 — this isn't Firefox-only, and it hits the Agents Markdown preview modal (not just the sidebar reader).

    Environment

    OpenClaw: 2026.7.1
    Chrome: 150.0.7871.116 (Official Build) (arm64)
    Client OS: macOS (Apple Silicon)
    Surface: Agents Markdown preview modal (.md-preview-dialog__body)
    Behavior: identical to the OP. Rendered Markdown content taller than the dialog body is clipped; no inner scrollbar; scroll wheel does nothing inside the modal.

    This confirms the second surface the OP flagged as suspect. Same root cause: flex: 1; overflow: auto on .md-preview-dialog__body in ui/src/styles/components.css without a min-height: 0 reset. Chromium usually masks this, but not always — it depends on ancestor sizing, viewport height, and whether an ancestor has a definite height. The proposed fix (min-height: 0 on .md-preview-dialog__body, and .sidebar-content for the sidebar variant, plus possibly the flex ancestors) should resolve both surfaces in both engines.

    Suggest bumping this from "Firefox-only, use Chrome as workaround" to "no workaround, period" — and treating the preview modal as an equally affected surface, not a suspected one.

  7. locked as resolved and limited conversation to collaborators on Sep 23, 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

    P1High-priority user-facing bug, regression, or broken workflow.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions