Repository navigation
fix: New Session composer is clipped when the mobile keyboard opens - #186519
Conversation
Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: cf94f943-0a4c-425f-bc84-040f6a7612c3
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +11, Tests +88. Total +99 across 2 files. Added test files: 1. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 28, 2026, 12:40 AM ET / 04:40 UTC. |
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
7be2a3efe1467bfe06d718f1fb14ce3b6a3b4ecd. The three executed UI-E2E jobs totaled 441 observed job-seconds for the broader suites, not the new test alone.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.Before/after screenshots of the actual UI with browser-emulated keyboard viewport geometry (402px wide; 380px visible height):
Before
After
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