Skip to content

fix(ui): keep the New Session composer above the mobile keyboard - #201291

Merged
roboclaw-bot merged 3 commits into
mainfrom
flake/l97-new-session-mobile-layout
Nov 18, 2026
Merged

roboclaw-bot merged 3 commits into
mainfrom
flake/l97-new-session-mobile-layout

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

On phones, a long first message can push the New Session composer past the visible area when the on-screen keyboard opens. The early-submit test also compared two different mobile layouts because its pending checkout placeholder disappeared when the fixture resolved without a workspace.

User Impact

The mobile draft uses the height available above the keyboard, keeping Send in view while a long message scrolls inside the editor.

Why This Change Was Made

The mobile editor now sizes to the keyboard-visible scroll container. The CSS keeps the existing resting cap and removes redundant size constraints.

The early-submit test waits for the pending and ready checkout rows of a Git workspace. It compares the same tray shape across submission readiness and retains the exact geometry and submission assertions.

Evidence

  • Before the fix, the composer ended at 876.140625 px against an 874 px boundary. The early-submit composer went from 214 px to 176 px as the optional checkout row disappeared. All four failing CI merge revisions contained the composer loading change. Keyboard failure · Early-submit failure
  • The first performance run measured 1,750,004 B at its base and 1,750,093 B on the PR (+89 B). Final CI measured 1,748,850 B at its base and 1,748,846 B on the PR (−4 B). First measurement · Final performance pass
  • The PR caused both original lint failures. The central check flagged formatting, and stripe 4 flagged two shadowed names in the keyboard test. Both jobs and the touched-file formatter now pass. Central lint · Core stripe 4
  • Final head a433e90bbd4 passed the keyboard test at 380, 501, and 600 px of visible height and all three early-submit cases. Autoreview covered 52b0f4d949c..a433e90bbd4 through P2 and found no actionable issues. Keyboard result · Early-submit result
  • The aggregate CI gate is red because the dictation test still expects the ::after border removed on main by 24945d7122d. Scheduled main fails the same assertion with automatic inset and z-index, and both causal source files match across main and the tested PR merge. Security-fast passed independently. Main failure · Final CI gate · Border removal

Before

Before: long draft extends beyond the keyboard-visible area

Captured on CI merge 8bd5e1d0b with a synthetic Gateway and a 402 × 874 emulated mobile viewport.

After

Screenshot delivery is incomplete. The final CI run published a screenshot for the unrelated dictation failure. The passing New Session tests published no images. Final-run artifact

@clawsweeper

clawsweeper Bot commented Nov 18, 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-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 18, 2026
@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: ⏳ 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 18, 2026
@clawsweeper

clawsweeper Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR caps the mobile editor against the keyboard-visible container and stabilizes the early-submit test’s checkout fixture.

Example: A long first message in a 402 × 874 mobile viewport with the keyboard open.

  • Before: The reported composer bottom reaches 876.14 px, beyond the 874 px visible bottom.
  • After: The editor uses the visible container’s height limit so the draft can scroll while Send remains visible.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The repair is useful and narrowly scoped, but required visual proof is pending and the paired CSS budget fails.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A long first message can push the composer and Send beyond the area visible above a mobile keyboard.
Reason: The maintainer-authored PR extends an existing sizing contract with a small CSS repair and preserves meaningful submission coverage.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this focused repair addresses remaining mobile keyboard overflow, but its CSS addition fails the paired asset-budget check.

Priority: P2
Reviewed head: 8ced384b75f99fd6335b6697a0bc6b655caebd0a

Before merge

  • Reduce the CSS addition to satisfy the paired asset budget (P2) - The performance check on this head measures 1,750,093 bytes of CSS against 1,750,004 bytes on its paired base. Because the base already exceeds the fixed ceiling, only 64 bytes of growth are permitted; this patch adds 89 bytes and fails by 25 bytes. Simplify the emitted declaration or reuse the existing cap more compactly so the repair passes the unchanged budget.

Findings

  • [P2] Reduce the CSS addition to satisfy the paired asset budget — ui/src/styles/new-session.css:1079

Tests

  • Missing end-to-end proof: Provide sanitized before/after browser captures of the long-draft keyboard layout above the 500 px breakpoint, including visible Send and keyboard-close restoration; redact credentials and non-public endpoints.
Agent review details

How this fits together

The shell observes VisualViewport geometry and exposes keyboard state and visible height; New Session CSS consumes those facts to size the welcome, editor, and submission controls.

flowchart TD
  A[Browser visual viewport] --> B[Shell viewport owner]
  B --> C[Keyboard state and visible height]
  C --> D[New Session size container]
  D --> E[Editor height cap]
  E --> F[Visible draft and Send]
Loading

Technical review

Best possible solution:

Keep the existing container-based sizing and fixture correction while reducing emitted CSS enough to pass the unchanged asset budget.

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

Source confirms that the taller mobile layout uses layout-viewport sizing while the shorter layout uses container sizing; the PR reports the matching overflow, but no reproduction was run during this read-only review.

Is this the best way to solve the issue?

The production repair uses the established viewport and CSS container owners without adding state or detection machinery, and the fixture change preserves the submission invariant with separate plain-workspace coverage.

Full review comments:

  • [P2] Reduce the CSS addition to satisfy the paired asset budget — ui/src/styles/new-session.css:1079
    The performance check on this head measures 1,750,093 bytes of CSS against 1,750,004 bytes on its paired base. Because the base already exceeds the fixed ceiling, only 64 bytes of growth are permitted; this patch adds 89 bytes and fails by 25 bytes. Simplify the emitted declaration or reuse the existing cap more compactly so the repair passes the unchanged budget.
    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 05d1e6f1f1f3.

Provenance checked

  • Resting mobile editor height keeps the original intent (9942960: Keep a compact mobile composer that grows for longer drafts while preserving usable controls.)
  • Keyboard-visible container sizing keeps the original intent (e80a6dd: Separate visible height from panned layout extent and make the editor yield space to context controls and Send.)
  • Early-submit geometry assertions keeps the original intent (279015b: Explain blocked submission without changing composer bounds and preserve exactly one explicit submission after readiness.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • RoboClaw: Raw commit 9942960 adds ui/src/styles/new-session.css:1286 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 99429609f8fa; files: ui/src/styles/new-session.css)
  • Vyctor H. Brzezowski: Raw commit e80a6dd adds ui/src/styles/new-session.css:1082 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e80a6dd9fdb4; files: ui/src/styles/new-session.css)
  • Peter Steinberger: Raw commit 279015b adds ui/src/e2e/new-session-page.early-submit.e2e.test.ts:1 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 279015b0578e; files: ui/src/e2e/new-session-page.early-submit.e2e.test.ts)

PR surface

Source +3, Tests +23. Total +26 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 4 1 +3
Tests 2 45 22 +23
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 49 23 +26

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.

Labels

Label changes:

  • add P2: The repair addresses a bounded mobile composition defect and has a focused, patch-caused CI budget failure.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab 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:

  • P2: The repair addresses a bounded mobile composition defect and has a focused, patch-caused CI budget failure.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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 18, 2026, 10:30 AM ET / 15:30 UTC.

@roboclaw-bot
roboclaw-bot merged commit 400e39a into main Nov 18, 2026
90 of 93 checks passed
@roboclaw-bot
roboclaw-bot deleted the flake/l97-new-session-mobile-layout branch November 18, 2026 15:59
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 19, 2026
…nclaw#201291)

* fix(ui): keep the New Session composer above the mobile keyboard

* fix(ui): use the keyboard draft cap above the short viewport breakpoint

* fix(ui): keep the mobile keyboard layout within the CSS budget
tideclaw-bot pushed a commit that referenced this pull request Nov 23, 2026
…1291)

* fix(ui): keep the New Session composer above the mobile keyboard

* fix(ui): use the keyboard draft cap above the short viewport breakpoint

* fix(ui): keep the mobile keyboard layout within the CSS budget

(cherry picked from commit 400e39a)
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit e1f861d2f11f39e201a8441f33caa1ccd8a9f1fa)
(cherry picked from commit 170488ff9ce2d8106867d5b48637e0dc21a95284)
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: S 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.

1 participant