Skip to content

fix(ui): mobile composer sits too close to the bottom of the screen - #188517

Merged
roboclaw-bot merged 4 commits into
mainfrom
openclaw/delta-shrimp-3
Oct 30, 2026
Merged

roboclaw-bot merged 4 commits into
mainfrom
openclaw/delta-shrimp-3

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #184759

What Problem This Solves

Fixes: the mobile web UI composer sits only 6px above the bottom of the screen, so it feels cramped against the edge in both the resting one-line state and while editing.

User Impact

User impact: the mobile composer gets its 10px bottom breathing room back. Desktop and narrow-desktop composers are unchanged.

Why This Change Was Made

#184759 (composer layout refinement) lowered --chat-composer-bottom-gap for the native mobile composer (.agent-chat__composer-shell[data-mobile-composer="true"], rendered whenever the chat pane uses the mobile host) from 10px to 6px. This restores 10px on that selector only. The inner footer padding changes from that PR are left as they are. The short-pane (keyboard) container query is unaffected because the mobile selector already outranks it.

The 4px it takes back from the transcript on a 390×844 phone pushed the next user turn in chat-swarm-lifecycle.e2e.test.ts (mobile case) past the mounted transcript window after its tool results expand, so that test now scrolls the thread to the end before comparing positions. The ordering assertion is unchanged.

Evidence

  • New browser test keeps the mobile composer 10px above the bottom edge while resting and editing in ui/src/pages/chat/chat-composer-mobile.browser.test.tsx: fails on current main (expected 6 to be close to 10) and passes with the fix. The full file passes (12/12, three consecutive runs).
  • chat-swarm-lifecycle.e2e.test.ts: the mobile case failed on the first CI run of this PR and reproduced locally with 10px. It passes with 6px, and both viewports pass with the scroll step.
  • The first CI run also failed keeps attachment chips at the editing inset in the one-line mobile composer once (expected null to be truthy waiting for the remove button). It passes on main and in three local runs of the full file with this change; it looks like a timing flake. This run's CI is the check.
  • Mocked Control UI (pnpm dev:ui:mock), Chromium at 390×844 mobile viewport, data-mobile-composer="true" confirmed. The measured gap between the composer surface and the viewport bottom is 6px before and 10px after.
  • oxfmt --check, stylelint and git diff --check are clean on the changed files.

Before/after screenshots follow below.

Work sessions

Worked on by

roboclaw-bot and others added 2 commits October 30, 2026 16:22
#184759 lowered the native mobile composer's bottom gap from 10px to 6px.
Restore 10px for resting and editing states and pin it with a browser test.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 860a1065-18c8-454d-80c1-219cf1d84258
@clawsweeper

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

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Mobile composer bottom gap (390×844, mocked Control UI, resting composer)

Before (current main: 6px between the composer and the bottom edge)

Before: mobile composer 6px above the bottom edge

After (this PR: 10px)

After: mobile composer 10px above the bottom edge

Full-screen after

After: full mobile chat screen

@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. labels Oct 30, 2026
…on mobile

The restored 10px mobile composer gap makes the transcript 4px shorter, so
expanded tool results push the next user turn past the mounted transcript
window. Scroll the thread to the end before comparing their positions.

Co-authored-by: vyctorbrzezowski <[email protected]>
@clawsweeper clawsweeper Bot added 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: 🐚 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 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 Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR restores the mobile chat composer's bottom gap from 6px to 10px and adds a browser regression test.

Example: Mobile chat at a 390×844 viewport.

  • Before: The resting composer sits 6px above the bottom edge.
  • After: The resting composer sits 10px above the bottom edge.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A minimal, visually demonstrated adjustment with no definite patch defect; failed exact-head UI checks prevent a clean validation verdict.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots show the changed composer spacing through the running Control UI at 390×844 with a mocked backend; the browser regression additionally covers resting and editing geometry, with red-on-base and green-on-head results reported in the body.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: The mobile composer looks cramped against the bottom edge.
Reason: The maintainer-authored PR supplies direction for this small visual preference, with concrete screenshots and no new setting or competing layout owner.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR makes a focused mobile-spacing adjustment, and review found no introduced correctness defect.

Priority: P3
Reviewed head: c96584d21195fd0446476daf85b8423506af93f6

Before merge

None.

Findings

None.

Agent review details

How this fits together

The chat pane supplies mobile presentation state to the existing composer, whose stylesheet controls the rendered bottom margin in both resting and editing states.

flowchart TD
  A[Chat pane mobile host] --> B[Composer presentation props]
  B --> C[Composer shell]
  C --> D[Mobile composer stylesheet]
  D --> E[Rendered bottom spacing]
Loading

Technical review

Best possible solution:

Keep the spacing adjustment in the existing mobile stylesheet with one regression covering rendered clearance in both composer states.

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

Current-main CSS establishes the 6px margin, and the supplied before screenshot shows the cramped presentation; this read-only review ran no target code.

Is this the best way to solve the issue?

The one-value stylesheet change is the smallest complete adjustment, and the added browser test measures actual layout rather than copying a CSS value.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 04aaba0 adds ui/src/styles/chat/composer-mobile.css:29 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 04aaba0c783d; files: ui/src/styles/chat/composer-mobile.css)
  • RoboClaw: Raw commit 4d38d2e adds ui/src/pages/chat/chat-composer-mobile.browser.test.tsx:113 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 4d38d2e66e6c; files: ui/src/pages/chat/chat-composer-mobile.browser.test.tsx)

PR surface

Source 0, Tests +16. Total +16 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 1 16 0 +16
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 17 1 +16

Labels

Label changes:

  • add P3: This is a bounded visual-spacing refinement with no established loss of functionality.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster 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:

  • P3: This is a bounded visual-spacing refinement with no established loss of functionality.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rank-up moves

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

  • Establish whether the two failed UI scenarios also fail on the base before assigning any repair.

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 30, 2026, 12:39 PM ET / 16:39 UTC.

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: f5685a3d-7364-48c6-940c-736b9727c79a
@roboclaw-bot
roboclaw-bot merged commit 4ad54cb into main Oct 30, 2026
85 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/delta-shrimp-3 branch October 30, 2026 16:55
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 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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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