Repository navigation
fix: keep the New Session composer above the keyboard - #201268
roboclaw-bot wants to merge 5 commits into
Conversation
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: c70a09a7-07ba-838f-9f54-d76efa85124e
|
🦞👀 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 changes before merge. What this changesThis PR lets long New Session drafts shrink above an open keyboard and adjusts the loading test for intentionally removed checkout placeholders. Example: Write a long draft at 402 px width with a 600 px visual viewport ending at y=874.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — verified: source commit Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-authored PR addresses a current mobile layout regression, but its added CSS causes a required performance check to fail. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Control UI shell translates VisualViewport measurements into keyboard state and height variables, which New Session CSS uses to size the welcome, placement tray, editor, and Send button. flowchart TD
A[Browser visual viewport] --> B[Shell viewport owner]
B --> C[Keyboard state and height variables]
C --> D[New Session layout]
E[Draft and placement controls] --> D
D --> F[Scrollable editor and reachable Send]
Technical reviewBest possible solution: Consolidate the existing shrink rules, retain compact-only welcome styling, and satisfy the unchanged CSS budget. Do we have a high-confidence way to reproduce the issue? Current main retains the 44 px heading reservation and limits shrink rules to heights at or below 500 px; the body reports failure at 600 px and passing results before the heading change, but no target code was executed during this review. Is this the best way to solve the issue? The existing CSS and viewport owners are the right boundary, and the test adjustment preserves explicit retry and writing-surface stability while honoring intentional placeholder removal. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3e0d3687c5da. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +31, Tests +30. Total +61 across 3 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 November 18, 2026, 10:02 AM ET / 15:02 UTC. |
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 45c801a2-f1a1-8841-8587-d18957d3ef17
Verification: closing as superseded by #201291The keyboard regression was real, but #201291 already fixed it on
On a desktop without a keyboard, the composer geometry is identical on both.
These were captured in bundled Control UI on Chromium with touch emulation and the E2E's before-regression-mobile.mp4before-regression-desktop.mp4before-mobile.mp4before-desktop.mp4after-mobile.mp4after-desktop.mp4 |



Related: #201165
What Problem This Solves
On a phone, opening the keyboard while writing a long first draft in New Session could push the bottom of the composer, including Send, past the visible edge. Since #201165 made the welcome heading taller, the draft could only shrink in very short viewports, not when the keyboard still leaves more than 500 px visible.
mainis red on the two New Session end-to-end tests that cover this, which blocks unrelated PRs.User Impact
With the keyboard open, the composer and Send stay above it, and a long draft scrolls within the space that's left. The full-size welcome and the compact layout are unchanged. Plain workspaces still drop the unneeded checkout placeholder without moving the writing surface.
Why This Change Was Made
While the keyboard is open in a roomy viewport, the welcome and draft may now shrink, and the input row takes the remaining height. This mirrors the existing short-viewport rule without compacting the welcome. The early-submit test expected the frame to keep a checkout row that is supposed to disappear when a plain workspace resolves. It now allows only that row's measured height change and still checks that the writing surface doesn't move and nothing is submitted before an explicit retry.
Evidence
Both failing files reproduce on clean
main(4e547ac). They pass on #201165's parent (096cf7c) and fail from e79905a onward. With this change, both pass twice, and the related seven-file bundled run (details-motion, workspace-validation, checkout-loading, projects-places, model-catalog and the two targets) passes all 52 tests. At 600 px of visible height, the composer now ends at 864 px instead of 876 px, restoring the 10 px gap above the keyboard. Send stays reachable at 380, 520 and 600 px of visible height. 120 focused unit and browser tests, lint, Stylelint and the UI typecheck passed. The keyboard was emulated with Chromium's visual viewport against a mocked Gateway; this was not checked on a physical iOS device.Requested by @vyctorbrzezowski.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by