Repository navigation
fix(ui): keep the New Session composer above the mobile keyboard - #201291
Conversation
|
🦞👀 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 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 05d1e6f1f1f3. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +3, Tests +23. Total +26 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:30 AM ET / 15:30 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…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
…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)
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
a433e90bbd4passed the keyboard test at 380, 501, and 600 px of visible height and all three early-submit cases. Autoreview covered52b0f4d949c..a433e90bbd4through P2 and found no actionable issues. Keyboard result · Early-submit result::afterborder removed on main by24945d7122d. 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 removalBefore
Captured on CI merge
8bd5e1d0bwith 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