Skip to content

fix(ui): refine composer layout across screen sizes - #184759

Merged
vyctorbrzezowski merged 9 commits into
mainfrom
brzezowski/composer-control-layout
Oct 26, 2026
Merged

vyctorbrzezowski merged 9 commits into
mainfrom
brzezowski/composer-control-layout

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Composer controls have inconsistent sizing, alignment, and spacing across desktop and mobile layouts, and the editor scrollbar sits too far from the edge.

User Impact

The chat and new-session composers share balanced controls, consistent text styling, and a less intrusive scrollbar while preserving their existing actions and touch targets. Very short panes retain a complete editable line.

Why This Change Was Made

Consolidates composer geometry, separates painted button size from the hit target, and coordinates the microphone disclosure and tooltip delay.

Evidence

  • 31 focused tests passed for mobile composer behavior, microphone states, and microphone-picker lifetime.
  • Reproduced and corrected overlapping controls with Files open in a narrow composer; all five tested viewport widths keep separate targets.
  • Native E2E checks passed for undo/redo, side-chat typography, side-panel clearance, and short/mobile composer geometry; 18 responsive scenarios passed.
  • Targeted stylesheet lint, formatting, and diff checks passed.
  • Independent code review found no actionable P0–P2 findings.

Risk and coverage

The Linux desktop short-pane test currently reports a three-pixel scroll-boundary offset, at either end of the editor. This remains under investigation. The latest test change records geometry, caret, focus, and browser details on failure while preserving the original assertions, wheel input, and timeouts.

Visual validation

Before and after use the same content, theme, viewport, and state.

layout — comparison 1

layout — comparison 2

layout — comparison 3

layout — comparison 4

layout — comparison 5

@vyctorbrzezowski vyctorbrzezowski self-assigned this Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 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.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 26, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/composer-control-layout branch from 90bfe28 to b1b0e19 Compare October 26, 2026 15:53
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR unifies composer control geometry, moves the editor scrollbar toward the edge, and coordinates microphone disclosure timing.

Example: Model and effort controls in a composer narrower than 560px.

  • Before: Their painted backgrounds have different heights despite both retaining 44px minimum targets.
  • After: Both use a 32px visual capsule within their separate 44px minimum targets.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The source change is focused and has no definite correctness finding, but required visual evidence is absent.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Composer controls look uneven and can overlap when a side panel narrows the writing area.
Reason: The existing composer contributor supplies the design direction, and the patch addresses the reported layout within established owners.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR makes a coherent composer layout repair, and source review found no definite introduced defect.

Priority: P2
Reviewed head: b1b0e19e5325de37a684813338f121a44b9023f5

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Before/after Control UI screenshots covering Chat and New Session at desktop and narrow widths, including Files open and an overflowing draft, are absent, and no committed regression demonstrates red-on-base/green-on-head behavior.
Agent review details

How this fits together

Chat and New Session render shared composer controls and styles; viewport and container dimensions determine editor spacing, control geometry, and pointer presentation.

flowchart TD
  A[Chat page] --> C[Shared composer controls]
  B[New Session page] --> C
  C --> D[Shared composer surface styles]
  D --> E[Responsive container rules]
  C --> F[Microphone and tooltip owners]
  E --> G[Rendered editor and action targets]
Loading

Technical review

Best possible solution:

Keep geometry in the shared composer styles and preserve the existing microphone, menu, and editing owners.

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

Current-main CSS confirms inconsistent control geometry; the reported overlap and its correction were not independently reproduced under this read-only review.

Is this the best way to solve the issue?

The change uses existing shared layout owners, removes superseded overrides, and preserves interaction callbacks without adding competing state or rendering paths.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

  • Reviewed PR introduction: The pinned merge-base-to-head diff confines changes to existing composer rendering and stylesheet owners; it adds no persistence, configuration, dependency, or authorization mechanism. (ui/src/styles/chat/composer-surface.css:188, b1b0e19e5325)
  • Current-main ownership and behavior: Current main retains the prior geometry; feature history identifies Vyctor's multiline/mobile composer work and Peter's subsequent Solid and microphone-control refactors. (ui/src/styles/chat/composer-mobile.css:60, dea6ff0cd0a3)
  • Visual completion requirement: Root and UI guidance require inspected, sanitized before/after screenshots for rendered appearance changes; the media guide requires those images embedded in the PR. (.agents/skills/openclaw-pr-maintainer/references/media.md:19, b1b0e19e5325)
  • Supplied evidence inspected: The complete live PR body reports 31 focused tests and separate targets at five viewport widths; its comments contain review-status messages, with no screenshots or linked behavior artifacts. (b1b0e19e5325)
  • Related work partially overlaps: fix: keep mobile composer buttons consistently sized #180362 also changes compact composer target sizing and separation, but proposes different uniform sizing and does not cover this PR's scrollbar and microphone timing work. (ui/src/styles/chat/composer-surface.css, dea6ff0cd0a3)
  • Inspection limits: Historical content searches reached unavailable partial-clone objects, and the installed Solid cheatsheet is absent; available source, commit metadata, scoped guidance, and relevant merged PR descriptions were inspected. (b1b0e19e5325)

Likely related people:

  • Peter Steinberger: Raw commit 9794c6a adds ui/src/pages/chat/components/chat-composer-controls.tsx:20 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 9794c6abbb6f; files: ui/src/pages/chat/components/chat-composer-controls.tsx)

PR surface

Source +106. Total +106 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 5 281 175 +106
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 5 281 175 +106

Labels

Label changes:

  • add P2: Composer alignment and narrow-pane target separation are useful, bounded UI improvements.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Composer alignment and narrow-pane target separation are useful, bounded UI improvements.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Embed inspected, sanitized before/after screenshots of the changed composer layouts in the PR.

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 October 26, 2026, 12:09 PM ET / 16:09 UTC.

@vyctorbrzezowski
vyctorbrzezowski merged commit b22e014 into main Oct 26, 2026
83 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/composer-control-layout branch October 26, 2026 21:11
steipete added a commit that referenced this pull request Oct 27, 2026
Keep the text inset constant with padding for short drafts and exchange it for the native gutter only when the existing overflow owner detects scrolling. This removes per-keystroke native layout overhead introduced by #184759 while preserving long-draft scrolling and shrink behavior. Advance the benchmark renderer before waiting for optional idle preloads so headless Chrome does not strand the callback.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
* fix(ui): refine composer layout across screen sizes

* fix(ui): keep narrow composer controls separate

* fix(ui): preserve editable lines in short composers

* test(ui): align responsive fixtures with native composer

* test(ui): target editor before wheel geometry checks

* test(ui): report composer scroll boundary diagnostics

* fix(ui): preserve scrolling with stable textarea gutters

* test(ui): remove temporary composer scroll diagnostics
steipete added a commit that referenced this pull request Oct 27, 2026
* perf(ui): reserve composer scrollbar gutters only on overflow

Keep the text inset constant with padding for short drafts and exchange it for the native gutter only when the existing overflow owner detects scrolling. This removes per-keystroke native layout overhead introduced by #184759 while preserving long-draft scrolling and shrink behavior. Advance the benchmark renderer before waiting for optional idle preloads so headless Chrome does not strand the callback.

* fix(ui): retain composer gutter override specificity

* test(ui): await the Home scroll target before settling

* test(ui): observe each slash-menu keyboard selection

* perf(ui): account for measured composer CSS cost

* test(ui): await sidebar layout after metadata updates

* test(ui): synchronize comment preview and identity setup
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 28, 2026
…#185199)

* perf(ui): reserve composer scrollbar gutters only on overflow

Keep the text inset constant with padding for short drafts and exchange it for the native gutter only when the existing overflow owner detects scrolling. This removes per-keystroke native layout overhead introduced by openclaw#184759 while preserving long-draft scrolling and shrink behavior. Advance the benchmark renderer before waiting for optional idle preloads so headless Chrome does not strand the callback.

* fix(ui): retain composer gutter override specificity

* test(ui): await the Home scroll target before settling

* test(ui): observe each slash-menu keyboard selection

* perf(ui): account for measured composer CSS cost

* test(ui): await sidebar layout after metadata updates

* test(ui): synchronize comment preview and identity setup
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 P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: L 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