Repository navigation
improve(ui): restore composer superellipse corners and tighten its controls - #198509
Conversation
…ntrols Draw the chat composer with the app's superellipse again and keep the circular fallback only for WebKit, where 27.3 beta stops painting it. Tighten the action row: one 1.5px icon stroke, a taller painted tier for the plus, microphone and send, even glyph boxes and an even gap rhythm. On New Session, rest the narrow composer at one line and let the model chip hug its label so the chevron sits beside the name. Co-authored-by: vyctorbrzezowski <[email protected]>
…ntrols Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 45534a70-4792-451b-8af5-6c215449e0ac
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR restores superellipse composer corners outside WebKit, adjusts action-row styling, and reduces narrow New Session composer height. Example: New Session at 390 × 844 in Chromium.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this maintainer-authored PR open: the visual changes are supported by screenshots, but the added CSS fails the base-aware performance budget. Priority: P3 Before merge
Findings
Tests
Agent review detailsHow this fits togetherShared Control UI theme tokens and composer styles determine the appearance of Chat and New Session editors, controls, and adjacent notices. flowchart LR
A[Theme tokens] --> C[Shared composer styles]
B[WebKit fallback] --> A
C --> D[Chat composer]
C --> E[New Session composer]
C --> F[Composer notices]
Technical reviewBest possible solution: Keep the changes in the existing theme and composer owners while consolidating their CSS enough to satisfy the unchanged performance budget. Do we have a high-confidence way to reproduce the issue? Current-main CSS confirms the circular default and taller narrow-editor floor, and supplied before/after screenshots demonstrate the visual differences without executing target code during this review. Is this the best way to solve the issue? The existing shared tokens and styles are appropriate owners, and the scoped WebKit fallback preserves the earlier repair, but the implementation must fit the existing CSS budget. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4cffd43ee043. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +82, Tests +10, Docs 0. Total +92 across 6 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 13, 2026, 7:33 PM ET / November 14, 2026, 00:33 UTC. |
…ntrols (openclaw#198509) Restore the composer's superellipse outside WebKit, preserve the WebKit circular fallback, and align control painting. Keep the narrow composer compact while preserving separate model, effort, and microphone targets. Co-authored-by: vyctorbrzezowski <[email protected]>
Related: #193621
What Problem This Solves
The chat composer was the only Control UI surface left on plain circular corners, so its 25px radius read as a pill. Its action row mixed icon stroke weights and uneven gaps. On New Session at phone and narrow widths, the composer rested about 40px taller than its content and the model chevron sat far from the model name.
User Impact
User impact: the composer draws the same superellipse corner as the rest of the app again, its controls read as one evenly weighted row, and New Session's narrow composer rests one line tall with the chevron beside the model name.
Safari and other WebKit browsers keep today's circular corners. WebKit 27.3 beta was reported to stop painting a superellipse composer in narrow layouts (#193621), and that fallback now applies only to WebKit instead of to every browser. It covers WebKit at every width because the reported threshold is unknown, and it relies on a WebKit-only CSS probe (
-webkit-nbsp-mode). Remove it once WebKit paints the shape.Why This Change Was Made
superellipse(1.5)again, with a WebKit-only@supportsblock that keepsround. Theme overrides still win.Evidence
Real Control UI with a mocked Gateway and synthetic content, Chromium. The phone captures use an emulated touch viewport.
Chat composer, 1280px, dark
Before (main
e6c7c5e0da4b)After
New Session, 390 × 844 touch, dark
Before
After
New Session, 580px window with a draft, light
Before
After
ui/src/styles/corner-shape.browser.test.ts: the composer and its notices are back in the superellipse contract, and a new case satisfies the WebKit probe in Chromium to prove those selectors stay circular there while other surfaces keep the superellipse. 5 cases pass in about 0.5s of test time locally (10.6s shard wall time alongside two other files); CI seconds are not available yet.chat-rhythm-alignment,chat-composer-mobile,chat-composer-overflowandcomposer-editorbrowser tests;new-session-page.model-catalog"keeps mobile model loading steady" at 320, 400 and 560px (zero layout shift with the hugging chip);composer-control-ink,new-session-page.responsive-welcomeandnew-session-page.keyboardE2E.gpt-6.1-sol, branch mode) onorigin/maine6c7c5e0da4b→2d40828a52ab, priorities P0 to P2: scoped-clean, no findings. The reviewer had no rendered layouts.Failures that also occur on the base, and coverage gaps
These fail locally with the same assertions and values on
e6c7c5e0da4bwithout this change:chat-responsive.browser.test.ts: "keeps the composer bottom controls, attachment, and primary action aligned at 568x320", "keeps short-landscape composer adjunct rows scroll-reachable", "keeps short-landscape slash menu visible inside the bounded composer".chat-composer-picker-layout.e2e.test.ts: "keeps model and effort targets separate when Files narrows the composer" in Chromium and WebKit.new-session-page.model-catalog.e2e.test.ts: "keeps picker geometry stable while shortcut visibility follows focus".Not covered: Safari 27.3 beta and physical touch devices. The maintainer verification below additionally covers the Fast-mode bolt.
Requested and directed by Vyctor Brzezowski (@vyctorbrzezowski).
Maintainer browser verification
On
822199a42585ac6047bc9eb5f1277a801e29f02b, eight source-UI scenarios passed in installed Chromium 156.0.8078.4 and Playwright WebKit 27.2: chat at 1280px/390px, and New Session at 390px dark/580px light. The Gateway data was synthetic; no microphone, provider credentials, or inference were used.CSS.supports('-webkit-nbsp-mode', 'space')result was false in Chromium and true in WebKit. No CSS probe was replaced. Chromium computedsuperellipse(1.5); WebKit retained theroundtoken, serialized assuperellipse(1), for the composer and its visible notice.Maintainer correction: narrow composer hit areas
Published in the corrected head 5fed907; an independent P0–P3 review of this CSS correction found no actionable issues.
The original candidate let the new microphone paint rule override the existing narrow-layout target size. With Files open at 1100 × 729, the microphone overlapped the effort button by 7 × 36px; hit testing sent clicks in that part of the effort button to the microphone.
The correction keeps the existing narrow target size and removes the desktop-only context offset in the narrow container. The microphone still paints on the 30px tier; model and effort retain their separate 44px targets. The approved wide layout and the control gaps are unchanged.
CI findings and budget decision
The pre-correction CI run had 27 failed UI/E2E cases. Two exposed the overlap repaired above. The remaining 25 reproduce on the PR baseline, including model/account selectors, short-landscape layout, model-catalog state and native-runtime recovery assertions. The 25 relevant test/owner blobs were also compared with the CI main parent and were unchanged. Local attribution used macOS arm64; CI used Linux x64.
The same run measured CSS growth of 2,029 bytes raw and 331 bytes gzip on a baseline already over its cap. The maintainer's standing CSS-budget exception applies; no limit or baseline is changed by this PR. Neither the budget exception nor the inherited-failure attribution is described as green CI.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by