Skip to content

improve(ui): restore composer superellipse corners and tighten its controls - #198509

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/plaid-barnacle-4
Nov 14, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/plaid-barnacle-4

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Corners: the composer's shape token defaults to superellipse(1.5) again, with a WebKit-only @supports block that keeps round. Theme overrides still win.
  • Action row: line icons share one 1.5px rendered stroke (they ranged from 1px to 1.67px). The plus, microphone and send paint a 30px tier and the permission, model and effort chips paint 28px, so the actions stay the taller bookends when a chip is hovered. The send disc and the plus sit 8px from the side and the bottom. Gaps between neighboring controls are 21.5px to 22.75px (they ranged from 17.75px to 25px). The context ring and model mark use even boxes so they center on whole pixels. Hit targets stay 32px and the touch layout keeps its own geometry.
  • New Session, narrow: the writing area no longer carries a taller floor than the shared composer, so it rests at the 92px surface minimum (it was 132px at 390 × 844) and still grows with the draft. The model picker keeps the track between the fixed controls, and the chip inside it hugs its label and chevron.

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)

Chat composer before

After

Chat composer after

New Session, 390 × 844 touch, dark

Before

New Session phone before

After

New Session phone after

New Session, 580px window with a draft, light

Before

New Session narrow before

After

New Session narrow 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.
  • Passing composer consumers: chat-rhythm-alignment, chat-composer-mobile, chat-composer-overflow and composer-editor browser 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-welcome and new-session-page.keyboard E2E.
  • Stylelint and the format check pass on the changed files.
  • Playwright WebKit 27.2 computes the circular corner with this change and paints New Session at 390px. WebKit 27.3 beta itself was not tested.
  • Local review: autoreview (Codex gpt-6.1-sol, branch mode) on origin/main e6c7c5e0da4b → 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 e6c7c5e0da4b without 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.

  • The actual CSS.supports('-webkit-nbsp-mode', 'space') result was false in Chromium and true in WebKit. No CSS probe was replaced. Chromium computed superellipse(1.5); WebKit retained the round token, serialized as superellipse(1), for the composer and its visible notice.
  • Inputs remained visible and editable. New Session rested at 92px instead of the baseline's 131.95px, and grew to 296px/266px with long drafts at 390px/580px. Send/Start targets remained reachable.
  • The fixture retained Fast mode in chat at both widths; the bolt is visible in the Chromium capture below.
  • One ResizeObserver notification was recorded during the WebKit 390px chat scenario, with the same single notification on the baseline. It was not a sustained loop in the observed run, and no painting or interaction failure occurred.
  • Safari/WebKit 27.3 beta and physical touch devices were not tested.
Installed WebKit 27.2 · 390px · notice and composer visible Chromium · 1280px · Fast mode retained
WebKit keeps circular corners and a visible composer and notice Chromium composer with the Fast-mode bolt visible

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.

  • On the corrected source, Chromium and WebKit both opened Model and Effort with actual clicks and closed them with Escape. The visible microphone passed click actionability without starting audio capture.
  • Geometry, labels and context alignment passed at all seven widths from the existing regression scenario in both engines.
  • Desktop and phone smoke checks retained the same composer heights, corner shapes and Fast mode as the original candidate.
  • The full existing picker scenario proceeds past the repaired geometry assertions, then reaches the separately reproduced baseline overlay-dismissal failure. That entire scenario is not reported as passing.
Before correction: effort and microphone targets overlap After correction: separate targets
Narrow composer before correcting the hit areas Narrow composer after correcting the hit areas

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

roboclaw-bot and others added 2 commits November 14, 2026 00:11
…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
@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: M labels Nov 14, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

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

  • Before: The empty composer is reported as 132px tall, with the model chevron separated from its label.
  • After: The composer rests at 92px and the chevron sits beside the model label.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful visual evidence supports the maintainer-directed change, but a directly attributed performance-budget failure blocks merge.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected Chromium before/after screenshots exercise the actual Control UI with synthetic Gateway content and demonstrate desktop composer styling plus the shorter 390px New Session layout; the body separately reports WebKit 27.2 fallback verification and discloses that 27.3 beta was not tested.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: The composer has a different corner family, uneven control styling, and excess empty height on narrow New Session screens.
Reason: Maintainer authorship establishes direction, and inspected screenshots show the intended visual improvement.

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
Reviewed head: 822199a42585ac6047bc9eb5f1277a801e29f02b

Before merge

  • Keep the composer CSS within the base-aware growth allowance (P2) - The added styling makes the required performance comparison fail on this head: total raw CSS grows from 1,748,758 to 1,750,787 bytes, and gzip CSS grows from 338,102 to 338,433 bytes. Since the base already exceeds its ceilings, only 64 bytes of build variance is allowed. Consolidate the touched stylesheet rules to offset this growth while preserving the intended rendering; raising the budget would bypass the existing contract.

Findings

  • [P2] Keep the composer CSS within the base-aware growth allowance — ui/src/styles/chat/composer-surface.css:182-184

Tests

  • Missing end-to-end proof: A red-on-base run of the revised corner regression is not supplied.
Agent review details

How this fits together

Shared 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]
Loading

Technical review

Best 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:

  • [P2] Keep the composer CSS within the base-aware growth allowance — ui/src/styles/chat/composer-surface.css:182-184
    The added styling makes the required performance comparison fail on this head: total raw CSS grows from 1,748,758 to 1,750,787 bytes, and gzip CSS grows from 338,102 to 338,433 bytes. Since the base already exceeds its ceilings, only 64 bytes of build variance is allowed. Consolidate the touched stylesheet rules to offset this growth while preserving the intended rendering; raising the budget would bypass the existing contract.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 4cffd43ee043.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm ui:check-performance:base e6c7c5e
  • pnpm lint:ui:styles
  • pnpm test:ui -- src/styles/corner-shape.browser.test.ts src/pages/chat/chat-rhythm-alignment.browser.test.ts
  • git diff --check

What I checked:

PR surface

Source +82, Tests +10, Docs 0. Total +92 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 4 120 38 +82
Tests 1 26 16 +10
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 147 55 +92

Preflight source

Source 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

Metric Value Why it matters
CSS budget growth +2,029 bytes raw; +331 bytes gzip The base already exceeds its fixed ceilings, so the base-aware check permits only 64 bytes of build variance.

Labels

Label changes:

  • add P3: This is a focused visual refinement; the identified blocker is CSS-budget compliance.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🐚 platinum hermit and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This is a focused visual refinement; the identified blocker is CSS-budget compliance.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🐚 platinum hermit and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 13, 2026, 7:33 PM ET / November 14, 2026, 00:33 UTC.

@vyctorbrzezowski
vyctorbrzezowski merged commit 82e8cde into main Nov 14, 2026
71 of 78 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/plaid-barnacle-4 branch November 14, 2026 00:52
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 14, 2026
…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]>
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 docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants