Repository navigation
fix(ui): chat rail pill status overlaps the headline text - #119397
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 4, 2026, 10:27 PM ET / August 5, 2026, 02:27 UTC. ClawSweeper reviewWhat this changesThe PR keeps the collapsed chat-session status chip at its content width and makes long session headlines truncate with an ellipsis. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessKeep 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 Review scores
Verification
How this fits togetherThe 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
Decision needed
Why: The patch is source-backed and proof-positive, but the maintainer label requires an explicit human merge decision. Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +5. Total +5 across 1 file. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
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 {
"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 Repro recipe (from this PR's checkout): serve |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* 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) ...
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: 0with 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__headlineis an inline span inside the pill's expand button, so itsoverflow: hidden; text-overflow: ellipsishad 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 becomesdisplay: blockso 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
<openclaw-chat-session-rail>element via theui/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)chat-session-rail.tsagainst 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 fromchat-session-rail.ts+ repo stylesheets, 1100px viewport, light theme.gpt-5.6-sol, high reasoning): clean, no accepted/actionable findings — "patch is correct (0.99)".pnpm format:check -- ui/src/styles/components.cssclean,pnpm lint:ui:styles(stylelint) clean,git diff --checkclean. The remaining planned lanes (tsgo typecheck, core lint/tests) cannot be affected by a CSS-only diff; PR CI runs them hosted.