Skip to content

feat(ui): refine the mobile composer - #130308

Merged
vyctorbrzezowski merged 4 commits into
openclaw:mainfrom
vyctorbrzezowski:brzezowski/mobile-composer-controls
Aug 26, 2026
Merged

vyctorbrzezowski merged 4 commits into
openclaw:mainfrom
vyctorbrzezowski:brzezowski/mobile-composer-controls

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Aug 26, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The mobile composer gave secondary controls the same visual priority as primary actions, split related controls across the row, and exposed inconsistent action states. Model and reasoning controls also consumed more room than the narrow viewport could afford.

Why This Change Was Made

This PR packages the mobile composer direction approved through the :5217 design bench. The iteration studied touch targets, icon weight, spacing, grouping, and state transitions as one system: attachments, permissions, and context form the left group; model, effort, dictation, and the single action control form the right group.

The effort control uses the model catalog's actual thinking-level count. Two outline-only Brain icons are stacked: a muted base outline and a strong outline clipped from bottom to top, so the border fills spatially while the body remains hollow. The action position swaps between talk, send, and stop instead of rendering competing buttons.

The implementation is mobile-scoped where the layout changes. The canonical More glyph now uses Lucide's compact ellipsis, and the context ring stays visually quiet by default.

User Impact

  • Keeps the empty mobile composer to one line and grows it with input.
  • Preserves large touch targets while keeping the visible controls compact.
  • Makes the primary + and action controls easy to find without elevating permission or context controls.
  • Keeps model and effort selection directly in the composer row.
  • Makes effort visible as a model-aware outline fill, including an unambiguous Off state.
  • Uses one action slot that becomes talk when empty, send when text is present, and stop during an active run.
  • Extends the same compact composer controls to /new without changing the desktop layout.

Evidence

Captured from the real fixture-driven mock at a 430×932 mobile viewport in light and dark modes. The PNGs were re-encoded without color-management metadata before upload.

Local gates were intentionally not run on this workstation. The remote lander owns typecheck, lint, formatting, build, and test gates for this closeout.

Before

Light Dark
Mobile composer before, light Mobile composer before, dark

After: action states

State Light Dark
Talk Mobile composer talk state, light Mobile composer talk state, dark
Send Mobile composer send state, light Mobile composer send state, dark
Stop Mobile composer stop state, light Mobile composer stop state, dark

After: effort progression

Light

Off Low Medium
Effort Off, light Effort Low, light Effort Medium, light
High Extra high Maximum
Effort High, light Effort Extra high, light Effort Maximum, light

Dark

Off Low Medium
Effort Off, dark Effort Low, dark Effort Medium, dark
High Extra high Maximum
Effort High, dark Effort Extra high, dark Effort Maximum, dark

@clawsweeper

clawsweeper Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: L maintainer Maintainer-authored PR labels Aug 26, 2026
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review August 26, 2026 19:14
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/mobile-composer-controls branch from 5b41ca7 to 409b4f3 Compare August 26, 2026 19:14
@vyctorbrzezowski vyctorbrzezowski self-assigned this Aug 26, 2026
@clawsweeper

clawsweeper Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 5:48 PM ET / 21:48 UTC.

ClawSweeper review

What this changes

This PR refines mobile chat and new-session composers by grouping controls, adding mobile-specific talk/dictation actions, compacting model/effort controls, and updating responsive UI coverage.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open for explicit maintainer review: the protected, member-authored PR has no discrete source-level regression in the inspected composer paths, but the review environment could not recheck the current base, full discussion, or exact merge result after network resolution failed.

Priority: P2
Reviewed head: e1effb97269108b38b27dd9253dff5c40f65252c
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The inspected source has no discrete blocker, but unavailable base and GitHub reads limit confidence in an exact-head merge verdict.
Proof confidence 🌊 off-meta tidepool Not applicable: Not applicable to this MEMBER-authored PR; its body nevertheless supplies fixture-based mobile screenshots for the Talk, Send, Stop, and effort states.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Not applicable to this MEMBER-authored PR; its body nevertheless supplies fixture-based mobile screenshots for the Talk, Send, Stop, and effort states.
Evidence reviewed 7 items Mobile action ownership: The shared action renderer keeps desktop and mobile primary actions separate while selecting dictation, send, stop, or talk from the same draft/run state.
Composer entry and caller: Chat rendering applies the mobile toolbar class and invokes the shared primary-action renderer from the composer footer.
New-session sibling: The new-session page passes its existing visibility owner into the mobile draft/incognito rail; the inline draft control is hidden only below the mobile breakpoint.
Findings None None.
Security None None.

Live Verification

Command: pnpm ui:build

Result: PASS (completed)

../dist/control-ui/assets/shell-B1oByMWF.js                                           2.56 kB │ gzip:   1.30 kB │ map:     7.94 kB
../dist/control-ui/assets/webidl-C2iEcUXH.js                                          2.62 kB │ gzip:   1.37 kB │ map:     7.72 kB
../dist/control-ui/assets/puppet-vmUf8xpM.js                                          2.65 kB │ gzip:   1.29 kB │ map:     8.99 kB
../dist/control-ui/assets/pig-Bt8Qvkze.js                                             2.65 kB │ gzip:   1.49 kB │ map:     6.60 kB
../dist/control-ui/assets/forth-CEw5LND1.js                                           2.67 kB │ gzip:   1.42 kB │ map:     6.18 kB
../dist/control-ui/assets/dist-CglKcEOs.js                                            2.78 kB │ gzip:   1.60 kB │ map:     5.05 kB
../dist/control-ui/assets/input-dialog-BlNVMUgT.js                                    2.82 kB │ gzip:   1.18 kB │ map:     8.64 kB
../dist/control-ui/assets/velocity-F0QlomFP.js                                        2.84 kB │ gzip:   1.20 kB │ map:     8.42 kB
../dist/control-ui/assets/workboard-mini-CX2x6CUI.js                                  2.88 kB │ gzip:   1.13 kB │ map:     5.60 kB
../dist/control-ui/assets/tiddlywiki-DLHM8fNz.js                                      2.92 kB │ gzip:   1.18 kB │ map:    11.09 kB
../dist/control-ui/assets/modelica--0xTveIu.js                                        2.94 kB │ gzip:   1.38 kB │ map:     8.06 kB
../dist/control-ui/assets/oz-DTY2GRqL.js                                              3.03 kB │ gzip:   1.38 kB │ map:     9.47 kB
../dist/control-ui/assets/r-CadXD0eR.js                                               3.06 kB │ gzip:   1.45 kB │ map:     9.92 kB
../dist/control-ui/assets/workboard-card-BGMNCsvj.js                                  3.12 kB │ gzip:   1.16 kB │ map:     5.94 kB
../dist/control-ui/assets/gateway-page-controller-IScixltR.js                         3.16 kB │ gzip:   1.03 kB │ map:    10.09 kB
../dist/control-ui/assets/session-progress-DsIfdBWs.js                                3.16 kB │ gzip:   1.23 kB │ map:     6.87 kB
../dist/control-ui/assets/stex-CveJubUk.js                                            3.22 kB │ gzip:   1.26 kB │ map:    11.27 kB
../dist/control-ui/assets/lua-yYK_8aRA.js                                             3.27 kB │ gzip:   1.51 kB │ map:     7.76 kB
../dist/control-ui/assets/cypher-CIhKfSWw.js                                          3.33 kB │ gzip:   1.60 kB │ map:     8.52 kB
../dist/control-ui/assets/tiki-CryU3a6e.js                                            3.35 kB │ gzip:   1.35 kB │ map:    12.41 kB
../dist/control-ui/assets/sparql-ChxjJbEr.js                                          3.47 kB │ gzip:   1.70 kB │ map:     9.50 kB
../dist/control-ui/assets/vhdl-DlYBPd1w.js                                            3.47 kB │ gzip:   1.61 kB │ map:     9.63 kB
../dist/control-ui/assets/catalog-target-D96b4nuO.js                                  3.49 kB │ gzip:   1.42 kB │ map:    11.34 kB
../dist/control-ui/assets/dist-UiEpQGFe.js                                            3.54 kB │ gzip:   1.83 kB │ map:     6.94 kB
../dist/control-ui/assets/update-confirmation.runtime-TguHQd8e.js                     3.54 kB │ gzip:   1.42 kB │ map:    11.07 kB
../dist/control-ui/assets/exec-approval-l9OXjfL5.js                                   3.57 kB │ gzip:   1.49 kB │ map:     9.94 kB
../dist/control-ui/assets/mscgen-Cfn4e7TB.js                                          3.64 kB │ gzip:   1.08 kB │ map:     9.69 kB
../dist/control-ui/assets/portaled-hovercard-CQfcR64-.js                              3.70 kB │ gzip:   1.32 kB │ map:    11.12 kB
../dist/control-ui/assets/device-placement-Nee7XzIc.js                                3.73 kB │ gzip:   1.61 kB │ map:    13.00 kB
../dist/control-ui/assets/app-sidebar-workboard.runtime-Cxc8EfmR.js                   3.74 kB │ gzip:   1.50 kB │ map:    10.50 kB
../dist/control-ui/assets/vb-CLop06NZ.js      
… output truncated …

Assertions:

  • PASS expect_output: built in

How this fits together

The Control UI composer converts current draft, run, voice, and session state into message and voice controls. The change adapts that shared composer for narrow screens and carries the same presentation into the new-session page.

flowchart LR
  A[Draft and run state] --> B[Shared composer]
  B --> C[Mobile layout rules]
  C --> D[Dictation and talk actions]
  C --> E[Model and effort controls]
  D --> F[Chat and voice requests]
  E --> F
Loading

Decision needed

Question Recommendation
After exact-head checks and the current merge result are available, should the approved mobile composer design be accepted as the Control UI’s narrow-screen default? Accept after refreshed gates: Confirm the exact merge result and required checks, then accept the inspected shared-composer design.

Why: The PR is protected with the maintainer label and changes the product’s mobile interaction design; source inspection cannot substitute for the required maintainer acceptance of that direction.

Before merge

  • Resolve merge risk (P1) - The branch’s exact three-way merge behavior and the complete current discussion could not be refreshed because GitHub DNS access failed and the supplied main commit is not locally available.
Agent review details

Security

None.

PR surface

Source +868, Tests -4. Total +864 across 22 files.

View PR surface stats
Area Files Added Removed Net
Source 16 1172 304 +868
Tests 6 37 41 -4
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 22 1209 345 +864

Review metrics

Metric Value Why it matters
Production versus test delta production +967/-103 after discounting a 199-line stylesheet move; tests/test support +43/-43 This is substantial visual and responsive implementation growth, so exact-head browser coverage and maintainer design review matter before merge.

Mantis proof suggestion

A short redacted mobile chat recording would directly confirm the changed Talk, Send, and Stop hierarchy beyond static screenshots. A maintainer can ask Mantis to capture proof by posting this exact PR comment:

@openclaw-mantis web UI chat proof: capture the mobile composer transitioning between Dictation, Tap to talk, Send, and Stop states.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the shared action-state owner and mobile-only presentation split, then make the merge decision from a refreshed exact-head merge result, completed checks, and the approved mobile design review.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the shared action-state owner and mobile-only presentation split, then make the merge decision from a refreshed exact-head merge result, completed checks, and the approved mobile design review.

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

Not applicable: this PR proposes a mobile interaction redesign rather than reporting a broken current behavior; the included browser tests identify the intended Talk and Dictation paths.

Is this the best way to solve the issue?

Unclear: the shared action renderer is the right owner boundary, but a refreshed exact-base review and maintainer design acceptance are still needed before calling this the best final direction.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 54db7d4f99e8.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.

Label justifications:

  • P2: This is a bounded Control UI improvement with meaningful mobile usability impact but no demonstrated release-blocking failure.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Not applicable to this MEMBER-authored PR; its body nevertheless supplies fixture-based mobile screenshots for the Talk, Send, Stop, and effort states.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: History includes the one-primary-action composer redesign and later composer ownership simplification that this PR extends. (role: shared composer refactor author; confidence: high; commits: ee1ec45eb311, 049a17860c5b; files: ui/src/pages/chat/components/chat-composer-controls.ts, ui/src/pages/chat/components/chat-composer-view.ts)
  • Patrick Erichsen: History attributes the established incognito rail that now hosts the mobile draft control to this contributor. (role: new-session rail introducer; confidence: high; commits: 1b954672b139; files: ui/src/pages/new-session/incognito-control.ts)
  • Vyctor H. Brzezowski: Recent history includes voice-control fixes and the current branch’s composer and style changes. (role: recent Control UI contributor; confidence: medium; commits: 3f4564f56fb7, e1effb972691; files: ui/src/pages/chat/components/chat-composer-controls.ts, ui/src/styles/chat/composer-progress.css)

Rank-up moves

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

  • Refresh the exact merge result and complete required checks on e1effb9.
  • Review the supplied mobile screenshots or capture a current fixture run before accepting the visual direction.

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 (4 earlier review cycles)
  • reviewed 2026-08-26T19:21:47.498Z sha 409b4f38f1122ee3d05f3efb2e857507879fbf35 :: found issues before merge. :: [P2] Preserve the primary-action test contract
  • reviewed 2026-08-26T19:41:50.348Z sha 409b4f38f1122ee3d05f3efb2e857507879fbf35 :: found issues before merge. :: [P2] Update the primary-action test contract
  • reviewed 2026-08-26T20:18:54.932Z sha 3899ce01a925d87d850c9c37196e586564c906d5 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-26T21:11:32.576Z sha f197851f59117d4e968c6b6e6cda6901854f0122 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 26, 2026
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 26, 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 exact_review_queue).
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 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 26, 2026
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 26, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/mobile-composer-controls branch from f197851 to e1effb9 Compare August 26, 2026 21:43
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 26, 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 exact_review_queue).
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 rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 26, 2026
@vyctorbrzezowski
vyctorbrzezowski merged commit 50c7400 into openclaw:main Aug 26, 2026
320 of 322 checks passed
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/mobile-composer-controls branch August 26, 2026 22:08
vincentkoc added a commit that referenced this pull request Aug 26, 2026
* origin/main: (275 commits)
  fix(ai): require explicit compatible-provider endpoints (#130453)
  test(control-ui): guard the hand-mirrored theme --bg copies (#130444)
  fix(onboard): preserve the saved skills package manager (#130438)
  improve(worker): diagnose admission-deadline failures and widen daemon revalidation budget (#130435)
  fix(plugins): align diffs external install metadata (#130362)
  refactor(models): consolidate config normalization (#130439)
  fix(browser): accept common keyboard aliases (#130401)
  fix(release): refresh IMAP plugin baselines (#130351)
  fix(tests): type sticky model agent fixtures (#130441)
  fix(qa): track current Slack progress cards (#130354)
  feat(ui): refine the mobile composer (#130308)
  fix(ui): clarify gateway disconnect status in tab title (#130364)
  test(qa): await gateway startup before network probes (#130353)
  fix(qa): run Buzz profile scenarios with pooled credentials (#130316)
  fix(crabbox): keep the setup failure reason and name its phase (#130425)
  fix: dashboard tools target the wrong Gateway after admission (#130112)
  fix(ui): distinguish inherited model defaults from session pins (#120805)
  feat(feishu): let agents resend received stickers (#130374)
  refactor(models): prepare selection policy once (#130413)
  fix(ui): make dashboard side panels enter split view (#130426)
  ...

# Conflicts:
#	test/scripts/docker-build-helper.test.ts
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 27, 2026
* feat(ui): refine the mobile composer

* fix(ui): preserve mobile composer controls

* fix(ui): keep mobile composer gates stable

* perf(ui): lazy-load chat goal styles
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 P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL 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