Skip to content

fix(ui): chat rail pill status overlaps the headline text - #119397

Merged
steipete merged 1 commit into
mainfrom
steipete/text-overlay-redesign-8df182
Aug 5, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/text-overlay-redesign-8df182

Conversation

@steipete

@steipete steipete commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where the chat session rail's collapsed pill ("Done" / run-status capsule shown under the Chat | Dashboard header) would render its status label on top of the headline text whenever the observer digest headline was long, producing illegible overlaid text like "DoI'll check whether this active session suppor". The headline also hard-clipped at the pill edge instead of showing an ellipsis.

Why This Change Was Made

The pill row is a flex container holding the status chip, the headline expand button, and two fixed-width icon buttons. The status chip carried min-width: 0 with no shrink protection and no overflow clipping, so a long headline squeezed the chip's box below its content width and the label glyphs painted outside the box, straight over the neighboring headline. Separately, .chat-session-rail__headline is an inline span inside the pill's expand button, so its overflow: hidden; text-overflow: ellipsis had no effect there (ellipsis needs a block box); the visible cut came from the parent button clipping.

The fix makes the chip layout-stable instead of patching the symptom: the chip opts out of flex shrinking entirely (flex: 0 0 auto — it only ever holds a short status word and has no overflow handling, so shrinking is never valid), and the headline becomes display: block so it truncates with a proper ellipsis in the remaining space. In the expanded card the chip sits in its own grid row and the headline is already blockified, so both surfaces keep their current rendering.

User Impact

The collapsed session rail pill is readable again: the green "Done" (or any run-health) chip keeps its width, and long headlines truncate with "…" instead of colliding with the status label or hard-clipping. No behavior change for the expanded card, mobile layout, or restore icon.

Evidence

  • Real-behavior proof: rendered the real <openclaw-chat-session-rail> element via the ui/ Vite dev server and measured the pill geometry with Playwright — before (main CSS) the status label paints 21px outside its shrunken chip box and intersects the headline by 12px with the ellipsis inactive; after (this PR) the chip keeps its box, the label paints 0px outside, and the headline ellipsis is active. Full inspectable geometry output and repro recipe: fix(ui): chat rail pill status overlaps the headline text #119397 (comment)
  • Reproduced the exact overlap from the report in a static harness that renders the pill DOM from chat-session-rail.ts against the repo stylesheets (base.css, components.css, chat/sidebar.css) at desktop width; before/after screenshots were captured (sanitized, synthetic harness text only). Attaching them is currently blocked: the Crabbox artifact coordinator returns 401 (broker auth outage) and no authenticated web session is available for GitHub's attachment upload, so the images will be added in a follow-up comment once artifact publishing recovers. The harness is reproducible from the PR description: pill DOM from chat-session-rail.ts + repo stylesheets, 1100px viewport, light theme.
  • Autoreview (Codex gpt-5.6-sol, high reasoning): clean, no accepted/actionable findings — "patch is correct (0.99)".
  • Local checks (Crabbox/Testbox broker auth was unavailable, so trusted-source proof ran locally per repo policy): pnpm format:check -- ui/src/styles/components.css clean, pnpm lint:ui:styles (stylelint) clean, git diff --check clean. The remaining planned lanes (tsgo typecheck, core lint/tests) cannot be affected by a CSS-only diff; PR CI runs them hosted.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Aug 5, 2026
@steipete
steipete marked this pull request as ready for review August 5, 2026 01:22
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 5, 2026
@clawsweeper

clawsweeper Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 4, 2026, 10:27 PM ET / August 5, 2026, 02:27 UTC.

ClawSweeper review

What this changes

The PR keeps the collapsed chat-session status chip at its content width and makes long session headlines truncate with an ellipsis.

Regression provenance

Possible regression — probable (reproduction; reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep this PR open for maintainer merge review: current main retains the overlapping layout, while the branch applies the direct flex-sizing and ellipsis repair with sufficient real UI geometry proof.

Priority: P3
Reviewed head: f63f1e0d892b38c1cbf6eba8738a2e9503469a6f
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-aligned CSS repair with direct rendered before/after geometry proof and no actionable correctness finding.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The PR comment supplies after-fix Vite-and-Playwright geometry output for the real element, showing both the removed status-label overlap and active headline ellipsis.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The PR comment supplies after-fix Vite-and-Playwright geometry output for the real element, showing both the removed status-label overlap and active headline ellipsis.
Evidence reviewed 6 items Current-main failure surface: Current main retains a shrinkable status flex item, the source condition that lets an un-clipped label outgrow its box.
Rendered owner boundary: The collapsed pill places the status, flexing headline button, and fixed icon controls as sibling items, so sizing belongs in these CSS rules.
Focused repair: The PR replaces the shrinkable status rule with a non-shrinking flex item and blockifies the ellipsis target without changing markup or configuration.
Findings None None.
Security None None.

How this fits together

The Control UI chat session rail renders an observer digest beneath the chat header. Its collapsed pill combines a run-status chip, a session headline, and actions into one constrained row.

flowchart LR
  A[Observer digest] --> B[Chat session rail]
  B --> C[Collapsed session pill]
  C --> D[Status chip sizing]
  C --> E[Headline truncation]
  D --> F[Readable session state]
  E --> F
Loading

Decision needed

Question Recommendation
Should this protected P3 web UI repair merge at head f63f1e0 now that its real rendered geometry proof is present? Merge the current repair: Accept the focused CSS fix, whose real-element geometry proof shows the reported overlap is removed.

Why: The patch is source-backed and proof-positive, but the maintainer label requires an explicit human merge decision.

Before merge

None.

Agent review details

Security

None.

PR surface

Source +5. Total +5 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 1 6 1 +5
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 6 1 +5

Review metrics

Metric Value Why it matters
Production versus test LOC production +5, tests +0 The net CSS growth expresses the status-chip sizing invariant; supplied real rendered geometry proof covers the layout behavior.

Technical review

Best possible solution:

Merge the focused CSS repair after the protected maintainer review, preserving the status chip as the non-shrinking item and the headline as the truncating item.

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

Yes. The contributor rendered the real session-rail element through Vite and measured the current-main and after-fix geometry with Playwright; current source retains the reported before-state rules.

Is this the best way to solve the issue?

Yes. Protecting the un-clipped status chip from flex shrinking and making the existing headline ellipsis target block-level fixes the layout at its CSS ownership boundary without adding markup or a parallel path.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR comment supplies after-fix Vite-and-Playwright geometry output for the real element, showing both the removed status-label overlap and active headline ellipsis.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR comment supplies after-fix Vite-and-Playwright geometry output for the real element, showing both the removed status-label overlap and active headline ellipsis.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P3: This is a small, non-blocking readability repair in the web UI.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR comment supplies after-fix Vite-and-Playwright geometry output for the real element, showing both the removed status-label overlap and active headline ellipsis.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR comment supplies after-fix Vite-and-Playwright geometry output for the real element, showing both the removed status-label overlap and active headline ellipsis.

Evidence

What I checked:

  • Current-main failure surface: Current main retains a shrinkable status flex item, the source condition that lets an un-clipped label outgrow its box. (ui/src/styles/components.css:1803, 392e1c0620b5)
  • Rendered owner boundary: The collapsed pill places the status, flexing headline button, and fixed icon controls as sibling items, so sizing belongs in these CSS rules. (ui/src/pages/chat/components/chat-session-rail.ts:471, 392e1c0620b5)
  • Focused repair: The PR replaces the shrinkable status rule with a non-shrinking flex item and blockifies the ellipsis target without changing markup or configuration. (ui/src/styles/components.css:1803, f63f1e0d892b)
  • Real behavior proof: The linked Vite-and-Playwright measurement shows current CSS paints 21px outside the status box with 12px headline overlap; the PR reduces outside paint and overlap to zero while activating ellipsis. (f63f1e0d892b)
  • Feature provenance: Blame attributes the original status and headline rules to the session-rail introduction commit; available scoped history identifies it as the current feature origin. (ui/src/styles/components.css:1803, 28495ea691d2)
  • Current-main comparison: Current main still differs from the PR only by retaining the old two declarations on this CSS surface, so the repair is neither merged nor obsolete. (ui/src/styles/components.css:1868, 392e1c0620b5)

Likely related people:

  • Shakker: Git blame attributes the rail CSS and the collapsed-pill markup to the available feature-origin commit. (role: feature introducer and recent area contributor; confidence: medium; commits: 28495ea691d2; files: ui/src/styles/components.css, ui/src/pages/chat/components/chat-session-rail.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-05T02:06:39.090Z sha f63f1e0 :: needs real behavior proof before merge. :: none

@steipete

steipete commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Real-behavior geometry proof for the collapsed pill (image upload is unavailable in this environment — Crabbox artifact coordinator 401 — so this is the inspectable geometry output requested by the review).

Method: rendered the real <openclaw-chat-session-rail> element (light-DOM, so the repo stylesheets apply as in the app) via the ui/ Vite dev server with an unread health: "done" digest carrying a long headline, inside a 720px positioned container at a 1100px viewport (desktop layout, mobile media query not active). Measured with Playwright/CDP getBoundingClientRect + computed styles. The "before" state is the same live page with main's two reverted declarations injected (.chat-session-rail__status { flex: 0 1 auto; min-width: 0 }, .chat-session-rail__headline { display: inline }); "after" is this PR's stylesheet at head f63f1e0.

{
  "beforeMainCss": {
    "chipBox":               { "x": 353.0, "y": 37.5, "w": 25.0,  "h": 13.0 },
    "chipLabelBox":          { "x": 371.0, "y": 38.5, "w": 28.0,  "h": 11.0 },
    "chipLabelPaintsOutsideChip": 21.0,
    "headlineBox":           { "x": 387.0, "y": 37.2, "w": 493.4, "h": 15.0 },
    "labelHeadlineOverlapPx": 12.0,
    "overlap": true,
    "chipComputed":     { "flexShrink": "1", "flexBasis": "auto", "minWidth": "0px" },
    "headlineComputed": { "display": "inline", "textOverflow": "ellipsis", "overflowX": "hidden" },
    "headlineEllipsisActive": false
  },
  "afterThisPr": {
    "chipBox":               { "x": 353.0, "y": 37.5, "w": 46.0,  "h": 13.0 },
    "chipLabelBox":          { "x": 371.0, "y": 38.5, "w": 28.0,  "h": 11.0 },
    "chipLabelPaintsOutsideChip": 0.0,
    "headlineBox":           { "x": 408.0, "y": 35.6, "w": 247.0, "h": 16.9 },
    "labelHeadlineOverlapPx": -9.0,
    "overlap": false,
    "chipComputed":     { "flexShrink": "0", "flexBasis": "auto", "minWidth": "auto" },
    "headlineComputed": { "display": "block", "textOverflow": "ellipsis", "overflowX": "hidden" },
    "headlineEllipsisActive": true
  }
}

Reading the numbers: on main the status chip's border box shrinks to 25px while its label span stays 28px wide, so the label paints 21px outside the chip box and horizontally intersects the headline box by 12px — the reported "Done" over-paint — and the inline headline never activates text-overflow (hard clip at the expand button edge). With this PR the chip box is 46px (icon + label fit, flexShrink: 0), the label paints 0px outside it, the headline starts 9px after the label (5px flex gap + 4px button padding), and the ellipsis is active (display: block, scrollWidth > clientWidth). The -9.0 overlap value is that clearance gap expressed by the same intersection formula.

Repro recipe (from this PR's checkout): serve ui/ with Vite, mount the element with digest = { runId, updatedAt, health: "done", headline: "<~80+ char text>" }, running = false, and no lastReadAt, inside a position: relative; width: 720px container at a ≥769px viewport, then compare .chat-session-rail__status / its label span / .chat-session-rail__headline client rects with and without the two reverted declarations above.

@steipete

steipete commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 5, 2026
@steipete
steipete merged commit 866dade into main Aug 5, 2026
165 of 177 checks passed
@steipete
steipete deleted the steipete/text-overlay-redesign-8df182 branch August 5, 2026 03:06
@steipete

steipete commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 5, 2026
* origin/main: (22 commits)
  refactor(plugins): consolidate lifecycle hook dispatch (#119429)
  fix(ci): stabilize TUI PTY proof ownership (#119420)
  test(system-agent): reduce suite setup overhead (#119424)
  fix(ui): keep session rail pill status from overlapping the headline (#119397)
  fix(discord): avoid doctor runtime loading (#119391)
  fix(media): decouple playback cache retention (#119417)
  fix(slack): infer upload filename extensions from MIME types (#119399)
  refactor(channels): unify configured binding resolution (#119414)
  refactor(google-meet): unify gateway and tool dispatch (#119413)
  test(state): reuse legacy database fixtures (#119423)
  fix(reset): preserve bootstrap guidance for dynamic models (#119179)
  fix(chutes): honor serving context limits (#119196)
  refactor(status): consolidate scan projections and lazy loaders (#119412)
  fix(status): status --all slows down with missing plugins (#119203)
  refactor(gateway): consolidate usage reporting and caches (#119409)
  perf(gateway): keep reload and recovery machinery off gateway cold start (#119094)
  fix(cli): align TaskFlow controller columns for wide text (#118801)
  fix: make startup migration restart guidance install-neutral (#119406)
  fix(ci): preserve cache warmer shard envelopes (#119403)
  fix(sessions): preserve compatible auth profiles on model changes (#117550)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant