Skip to content

fix: New Session composer is clipped when the mobile keyboard opens - #186519

Merged
roboclaw-bot merged 2 commits into
mainfrom
openclaw/wild-shell
Oct 28, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
openclaw/wild-shell

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: the New Session draft and Send button are clipped when the mobile keyboard opens, particularly when Safari shrinks its visual viewport without changing height media queries.

User Impact

Users can keep writing and reach Send above the keyboard. The normal welcome layout returns when the available height increases. No configuration or migration is required.

Why This Change Was Made

The page now uses its actual available height to compact the welcome header, spacing, and editor. This replaces the layout-viewport height query and reuses the shell's existing viewport owner; there is no second JavaScript keyboard detector.

Evidence

  • The final regression fails with the original stylesheet: composer bottom 473.8px exceeds the 380px visible viewport. It passes with the fix, including short/long drafts, panned viewport offsets, Send hit-testing, and keyboard-close restoration.
  • Keyboard regression plus the existing responsive welcome suite: 8/8 pass, 21.49s including build; the new regression takes 1.50s locally. Exact-head CI succeeded for 7be2a3efe1467bfe06d718f1fb14ce3b6a3b4ecd. The three executed UI-E2E jobs totaled 441 observed job-seconds for the broader suites, not the new test alone.
  • Scoped UI-E2E types, typed lint, stylesheet lint, formatting, and whitespace checks pass.
  • Independent local P0–P3 autoreview of the complete candidate against 5b1482d925dd9742229e3a55396e606a42a2b1ef: no actionable findings. The committed tree matches that reviewed candidate. Local ClawSweeper was unavailable because its checkout contains unrelated work; hosted ClawSweeper review of the final head also found no actionable findings or before-merge items.
  • Unused-file scan: production has zero findings; full-tree scanning reports five untouched performance scripts, none in this change. That aggregate is not reported as passing.

Before/after screenshots of the actual UI with browser-emulated keyboard viewport geometry (402px wide; 380px visible height):

Before

Before: composer clipped below the visible keyboard viewport

After

After: compact header and composer keep Send inside the visible keyboard viewport

Native iOS/Android keyboard capture remains unverified: the isolated Android attempt did not produce a usable browser capture, and accelerated execution is unavailable in this session. These images do not depict an OS keyboard.

Simplification: one CSS size container replaces the ineffective media-height decision. Production delta is +14/−3 lines; the 88-line regression protects the browser-visible contract without new production test hooks.

Worked on by

Work sessions

roboclaw-bot and others added 2 commits October 28, 2026 04:22
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: cf94f943-0a4c-425f-bc84-040f6a7612c3
@clawsweeper

clawsweeper Bot commented Oct 28, 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
roboclaw-bot marked this pull request as ready for review October 28, 2026 04:24
@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. P2 Normal backlog priority with limited blast radius. 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 28, 2026
@clawsweeper

clawsweeper Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR compacts the New Session header and editor according to the page’s available height so the composer remains reachable above a mobile keyboard.

Example: A 402×874 browser window has only 380 pixels of visible height while composing a new session.

  • Before: The welcome layout remains tall and the composer extends below the visible area.
  • After: The header and editor compact, keeping the composer and Send button visible.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, correct repair with inspected browser visual proof and passing current-head gates; native keyboard acceptance is outside the demonstrated evidence.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the actual New Session UI at 402×380 with browser-emulated keyboard geometry and show the corrected composer and Send placement; the supplied regression supports panning, long drafts, hit-testing, and restoration, while native iOS/Android keyboard behavior remains unverified.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Opening the mobile keyboard can hide the New Session draft and Send button.
Reason: The maintainer-authored change restores the existing compact-layout intent with a small CSS repair and no new state or configuration.

Merge readiness

✅ Ready for maintainer review

Keep open for landing: this is a focused, useful layout fix with no actionable code findings, inspected visual evidence, and passing current-head CI gates.

Priority: P2
Reviewed head: 7be2a3efe1467bfe06d718f1fb14ce3b6a3b4ecd

Before merge

None.

Findings

None.

Agent review details

How this fits together

The shell observes VisualViewport changes and bounds the Control UI canvas; New Session consumes that space to lay out its welcome content, draft editor, and Send button.

flowchart TD
  A[Browser visual viewport] --> B[Existing shell viewport owner]
  B --> C[Shell canvas height]
  C --> D[New Session size container]
  D --> E[Compact welcome and editor]
  E --> F[Reachable Send button]
Loading

Technical review

Best possible solution:

Land the focused container-query repair using the existing shell viewport owner.

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

Current-main source retains the ineffective layout-height query, and the supplied before image demonstrates clipping under the stated emulated viewport geometry; no target code was executed during this review.

Is this the best way to solve the issue?

This is the smallest complete owner-level repair: query the page’s actual available size, retain the shell’s existing viewport observer, and protect the distinct geometry contract with one browser regression.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • New Session page sizing keeps the original intent (fecd1ca: Unify the New Session draft with the shared welcome layout while preserving a flex-sized page and scrollable content.)
  • Short-height compact layout trigger changes intended behavior with a stated reason (9942960: Keep mobile setup and the centered composer compact in short viewports; the PR explains and demonstrates why layout-height media queries miss visual-viewport shrinkage.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Verified introduced change: The pinned introduction diff adds a page size container, replaces the short-height media query, and adds one browser regression without another keyboard detector. (ui/src/styles/new-session.css:1317, 7be2a3efe146)
  • Current main still uses layout-height queries: Fetched main retains the original media-height condition; its stylesheet is unchanged from the introduction base, so the central repair remains necessary. (ui/src/styles/new-session.css:1314, 1157b7114cd2)
  • Existing viewport owner: The shell already publishes the visual viewport’s visible bottom and applies it to the shell canvas; the PR corrects the page’s response to that existing bound. (ui/src/app/shell-viewport.ts:104, 7be2a3efe146)
  • Inspected before and after proof: Both prepared images were inspected directly: the before image clips the draft at the bottom, while the after image shows the complete composer and Send at 402×380. The PR explicitly identifies browser-emulated geometry and discloses that native keyboard capture remains unverified. (7be2a3efe146)
  • Distinct regression coverage: The added test keeps the layout viewport unchanged while shrinking VisualViewport, then checks short and long drafts, viewport offsets, Send hit-testing, and restoration; the existing responsive suite instead resizes the browser viewport. (ui/src/e2e/new-session-page.keyboard.e2e.test.ts:44, 7be2a3efe146)
  • Original layout intent: improve: open new conversations directly in a compact composer #173824 intentionally introduced the compact centered mobile composition; this repair preserves that composition and explains why its height trigger must follow available page space. (ui/src/styles/new-session.css:1314, 99429609f8fa)

Likely related people:

  • Peter Steinberger: Raw commit fecd1ca adds ui/src/styles/new-session.css:6 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: fecd1ca19552; files: ui/src/styles/new-session.css)

PR surface

Source +11, Tests +88. Total +99 across 2 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 1 14 3 +11
Tests 1 88 0 +88
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 102 3 +99

Review metrics

Metric Value Why it matters
Production versus regression coverage Production +14/−3 lines; tests +88/−0 lines The CSS growth replaces the ineffective height trigger; the browser regression covers visual-viewport shrinkage that existing responsive tests miss.

Labels

Label changes:

  • add P2: The fix restores composer visibility in a bounded mobile layout scenario without changing data, configuration, or submission behavior.
  • 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 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: The fix restores composer visibility in a bounded mobile layout scenario without changing data, configuration, or submission behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • 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.

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 28, 2026, 12:40 AM ET / 04:40 UTC.

@roboclaw-bot
roboclaw-bot merged commit ac1bfac into main Oct 28, 2026
172 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/wild-shell branch October 28, 2026 04:51
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. 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: S 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