Repository navigation
Description
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
- Open the OpenClaw Control UI in Firefox.
- Open a chat with a Markdown document or rendered Markdown content in the right-hand sidebar reader.
- Ensure the rendered content is taller than the available sidebar height.
- 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.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
fix(ui): Firefox flexbox scrolling issue in sidebar and markdown preview
clawsweeper commentedon Jul 14, 2026
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:
canonicalCanonical: #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:
fixed_by_candidate: fix(ui): add min-height:0 to flex scroll containers for Firefox #107592 - The open PR directly adds the minimum-height reset to both reported scroll containers.superseded: fix(ui): Firefox flexbox scrolling issue in sidebar and markdown preview (#107571) #107597 - This broader alternate patch closed unmerged while the narrower implementation candidate remained open.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: 0to 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:
Codex review notes: model internal, reasoning high; reviewed against a679cda0c99f.
Label changes
Label changes:
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.issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.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:
flex: 1andoverflow: autowithoutmin-height: 0; its flex ancestors constrain and clip overflow, matching the reported Firefox failure mode. (ui/src/styles/chat/sidebar.css:1053, a679cda0c99f)ui/src/styles/components.css, a679cda0c99f)min-height: 0to the two reported scroll children and directly targets this issue; it must remain open until that PR merges or is replaced. (e39ef94dbf79)ui/src/styles/chat/sidebar.css:1053, 2d2ddc43d0dc)Likely related people:
ui/src/styles/chat/sidebar.css,ui/src/styles/components.css)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.reply2future commentedon Jul 15, 2026
It is the same problem of macOS app, and the one which version is v2026.6.11 doesn't have this problem.
fix(ui): Firefox flexbox scrolling issue in sidebar and markdown preview
ptesny commentedon Jul 16, 2026
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.
fix(ui): keep long Markdown previews scrollable (#113465)
fix(ui): keep long Markdown previews scrollable (openclaw#113465)