Skip to content

Text is sometimes clipped in Chat #636

Closed

Description

@kmahone

Sometimes text in the chat window gets clipped instead of wrapping. It may be specific to bullet points.

Image

Activity

  1. clawsweeper commented on Jun 2, 2026

    @clawsweeper

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 2, 2026, 12:12 PM ET / 16:12 UTC.

    Summary
    Keep open: this is a fresh collaborator-authored chat UI bug with screenshot evidence, and current main still renders markdown list rows through an unconstrained horizontal StackPanel path that plausibly clips long bullet text.

    Reproducibility: no. there is screenshot evidence and a clear source path for list-row clipping, but I did not run the current WinUI app to reproduce the visual failure directly.

    Ways to help us reproduce this

    • Add expected vs actual behavior.

    Next step
    A focused repair is likely feasible, but the repair lane should first confirm the exact WinUI clipping mechanism with a narrow chat/list repro.

    Review details

    Best possible solution:

    Keep the issue open and fix the existing markdown list row layout so list item text is measured within the chat bubble width, likely with a constrained Grid/star content column or equivalent focused layout change.

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

    No: there is screenshot evidence and a clear source path for list-row clipping, but I did not run the current WinUI app to reproduce the visual failure directly.

    Is this the best way to solve the issue?

    Yes: a narrow fix in the existing chat markdown renderer or FunctionalUI layout boundary is the maintainable path; this does not need a new renderer, setting, or product decision.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • I inspected the screenshot and source path but did not run the native WinUI chat surface to capture a current-main visual reproduction.

    Codex review notes: model gpt-5.5, reasoning high; reviewed against f4d4793f744f.

    Label changes

    Label changes:

    • add P2: This is a normal user-visible chat readability bug with limited blast radius.
    • add impact:other: The issue affects chat message readability, which is meaningful product impact outside the owned state, auth, delivery, crash, or security labels.
    • add issue-rating: 🐚 platinum hermit: Current issue advisory state selects this label.
    • add clawsweeper:needs-live-repro: Current issue advisory state selects this label.

    Label justifications:

    • P2: This is a normal user-visible chat readability bug with limited blast radius.
    • impact:other: The issue affects chat message readability, which is meaningful product impact outside the owned state, auth, delivery, crash, or security labels.
    Evidence reviewed

    Acceptance criteria:

    • ./build.ps1
    • dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore
    • dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore

    What I checked:

    • Repository policy read: Read AGENTS.md fully; its validation requirements apply to any future fix, but this review did not change files. (AGENTS.md:1, f4d4793f744f)
    • No VISION.md present: No VISION.md file exists in the checkout, so there is no repository vision document to use for a stronger product-fit decision.
    • Reporter screenshot inspected: The attached screenshot shows five bulleted chat lines clipped at the right edge of the assistant bubble instead of wrapping.
    • Chat markdown route: Chat messages with block-level markdown are routed through ChatMarkdownRenderer, while the fallback TextBlock path explicitly wraps text. (src/OpenClaw.Tray.WinUI/Chat/OpenClawChatTimeline.cs:105, f4d4793f744f)
    • List row layout source: Markdown list items render as HStack rows containing the marker and rendered item content, which gives the text content no explicit constrained-width column. (src/OpenClaw.Tray.WinUI/Chat/Markdown/ChatMarkdownRenderer.cs:293, f4d4793f744f)
    • HStack implementation source: FunctionalUI HStack renders through a horizontal StackPanel, matching the likely WinUI measure path that can prevent wrapped list text from receiving the chat bubble's available width. (src/OpenClawTray.FunctionalUI/FunctionalUI.cs:1250, f4d4793f744f)

    Likely related people:

    • RBrid: The current markdown list renderer, SafeMarkdownText route, and FunctionalUI StackPanel rendering path all blame to commit 7d9152f, and earlier native chat work in commit 08cab69 introduced the broader surface. (role: introduced behavior and recent area contributor; confidence: high; commits: 7d9152f427a3, 08cab69a038c; files: src/OpenClaw.Tray.WinUI/Chat/Markdown/ChatMarkdownRenderer.cs, src/OpenClaw.Tray.WinUI/Chat/OpenClawChatTimeline.cs, src/OpenClawTray.FunctionalUI/FunctionalUI.cs)
    • Ranjesh Jaganathan: Commit 131154c updated native chat UX and FunctionalUI shortly after the native chat surface landed, making it relevant routing history for layout behavior. (role: adjacent owner; confidence: medium; commits: 131154c13013; files: src/OpenClaw.Tray.WinUI/Chat/OpenClawChatTimeline.cs, src/OpenClaw.Tray.WinUI/Chat/OpenClawComposer.cs, src/OpenClawTray.FunctionalUI/FunctionalUI.cs)
    • the99missedcalls: Commit c68bbfe fixed a separate clipping issue in the chat composer, which is adjacent UI layout history but not the reported assistant bubble list renderer. (role: recent adjacent contributor; confidence: low; commits: c68bbfe409d1; files: src/OpenClaw.Tray.WinUI/Chat/OpenClawComposer.cs)
    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.
  2. locked as resolved and limited conversation to collaborators on Jun 5, 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

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions