Repository navigation
fix(chat): stabilize mobile keyboard, composer, and new-turn layout - #5161
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 4 Skipped Deployments
|
Test evidence — MOBILE-CHAT-01 keyboard geometry and new turns keep a stable chat layout — ✅ passedSHA 54ca866 · sandbox ref 54ca866 · engine v1 ✅ 6/6 screenshots passed · 2 assertions · 8 expectations passed · 0 failed · 0 pending [world] mock(mcp) · appWeb(daytona) · workspace(/tmp/openwork-sessionless-first-send-1789837659793) · [seed:raw] evalIn() ×3 ✅ PASS — 1. At phone width, the new-chat composer sits near the bottom of the app rather than directly below the heading.
✅ PASS — 2. The mobile composer remains visible inside the shortened app viewport while the first send is pending; the header remains visible.
✅ PASS — 3. The latest user message starts near the top of the transcript with the short assistant answer below it and the compact composer at the bottom of the shortened viewport.
✅ PASS — 4. At full phone height, the latest user turn remains at the top of the conversation pane and the composer stays at the bottom.
ℹ️ ASSERTION — 5. Reserved answer space does not show a false jump affordance or trap manual scrolling{"dismissed":{"shell":{"top":0,"bottom":844,"left":0,"right":390,"height":844,"width":390},"editor":{"top":759,"bottom":783,"left":29,"right":361,"height":24,"width":332},"toolbar":{"top":791,"bottom":827,"left":29,"right":361,"height":36,"width":332},"send":{"top":791,"bottom":827,"left":325,"right":361,"height":36,"width":36},"thread":{"top":48,"bottom":734,"left":0,"right":390,"height":686,"width":390},"latestUser":{"top":47.5,"bottom":155.5,"left":12,"right":378,"height":108,"width":366},"scrollTop":1173,"pageScroll":0,"viewport":{"height":844,"top":0},"editorFontSize":16,"editorFocused":true,"userCount":2},"reading":{"shell":{"top":0,"bottom":844,"left":0,"right":390,"height":844,"width":390},"editor":{"top":759,"bottom":783,"left":29,"right":361,"height":24,"width":332},"toolbar":{"top":791,"bottom":827,"left":29,"right":361,"height":36,"width":332},"send":{"top":791,"bottom":827,"left":325,"right":361,"height":36,"width":36},"thread":{"top":48,"bottom":734,"left":0,"right":390,"height":686,"width":390},"latestUser":{"top":287.5,"bottom":395.5,"left":12,"right":378,"height":108,"width":366},"scrollTop":933,"pageScroll":0,"viewport":{"height":844,"top":0},"editorFontSize":16,"editorFocused":true,"userCount":2}}
✅ PASS — 6. At narrow phone width, the composer send button and model control remain inside the viewport without horizontal overflow.
✅ PASS — 7. At desktop width, the normal full-height chat layout and larger composer remain visible.
ℹ️ ASSERTION — 8. Mobile viewport and turn layout do not resize the desktop shell{"narrow":{"shell":{"top":0,"bottom":844,"left":0,"right":320,"height":844,"width":320},"editor":{"top":759,"bottom":783,"left":29,"right":291,"height":24,"width":262},"toolbar":{"top":791,"bottom":827,"left":29,"right":291,"height":36,"width":262},"send":{"top":791,"bottom":827,"left":255,"right":291,"height":36,"width":36},"thread":{"top":48,"bottom":734,"left":0,"right":320,"height":686,"width":320},"latestUser":{"top":488.75,"bottom":620.75,"left":12,"right":293,"height":132,"width":281},"scrollTop":1136,"pageScroll":0,"viewport":{"height":844,"top":0},"editorFontSize":16,"editorFocused":false,"userCount":2},"desktop":{"shell":{"top":0,"bottom":900,"left":0,"right":1440,"height":900,"width":1440},"editor":{"top":762,"bottom":822,"left":431,"right":1197,"height":60,"width":766},"toolbar":{"top":830,"bottom":866,"left":431,"right":1197,"height":36,"width":766},"send":{"top":830,"bottom":866,"left":1161,"right":1197,"height":36,"width":36},"thread":{"top":45,"bottom":737,"left":229,"right":1399,"height":692,"width":1170},"latestUser":{"top":539.5,"bottom":623.5,"left":446.5,"right":1166.5,"height":84,"width":720},"scrollTop":678,"pageScroll":0,"viewport":{"height":450,"top":90},"editorFontSize":13,"editorFocused":false,"userCount":2}}
Test run created 2026-09-19T17:07:39.776Z · Source: |
Test evidence — MOBILE-CHAT-01 keyboard geometry and new turns keep a stable chat layout — ❌ failedSHA 54ca866 · sandbox ref 54ca866 · engine v2 ❌ 2/2 screenshots passed · 2 expectations passed · 0 failed · 0 pending [world] mock(mcp) · appWeb(daytona) · workspace(/tmp/openwork-sessionless-first-send-1789837775832) · [seed:raw] evalIn() ×3 ✅ PASS — 1. At phone width, the new-chat composer sits near the bottom of the app rather than directly below the heading.
✅ PASS — 2. The mobile composer remains visible inside the shortened app viewport while the first send is pending; the header remains visible.
Test run created 2026-09-19T17:09:35.813Z · Source: |
Test evidence — MOBILE-CHAT-01 keyboard geometry and new turns keep a stable chat layout — ✅ passedSHA 8fcec4a · sandbox ref 8fcec4a · engine v1 ✅ 11/11 screenshots passed · 3 assertions · 14 expectations passed · 0 failed · 0 pending [world] mock(mcp) · appWeb(daytona) · workspace(/tmp/openwork-sessionless-first-send-1789847064376) · [seed:raw] evalIn() ×3 ✅ PASS — 1. At phone width, the new-chat composer sits near the bottom of the app rather than directly below the heading.
✅ PASS — 2. At phone width, the model picker has a readable search field, a Model back control, and model/provider actions inside the viewport.
✅ PASS — 3. At phone width, Connect providers shows a readable filter field, provider rows and a close action without horizontal overflow.
✅ PASS — 4. The mobile Google provider form shows its API key field and Back/Close actions within the viewport; no credential has been entered.
ℹ️ ASSERTION — 5. Mobile picker navigation preserves focus without automatic search focus or provider submissionModel Back restores its root control; provider selection and Back retain dialog/row focus; visible search and API-key inputs compute to at least 16px; no credential is entered, no prompt is sent and the route/draft are unchanged.
✅ PASS — 6. While composing on mobile, greeting and suggestion cards are hidden, and the header shows navigation and actions without the session title or workspace metadata.
✅ PASS — 7. The mobile composer remains visible inside the shortened app viewport while the first send is pending; the header remains visible.
✅ PASS — 8. The latest user message starts near the top of the transcript with the short assistant answer below it and the compact composer at the bottom of the shortened viewport.
✅ PASS — 9. At full phone height, the latest user turn remains at the top of the conversation pane and the composer stays at the bottom.
ℹ️ ASSERTION — 10. Reserved answer space does not show a false jump affordance or trap manual scrolling{"dismissed":{"shell":{"top":0,"bottom":844,"left":0,"right":390,"height":844,"width":390},"editor":{"top":759,"bottom":783,"left":29,"right":361,"height":24,"width":332},"toolbar":{"top":791,"bottom":827,"left":29,"right":361,"height":36,"width":332},"send":{"top":791,"bottom":827,"left":325,"right":361,"height":36,"width":36},"thread":{"top":48,"bottom":734,"left":0,"right":390,"height":686,"width":390},"latestUser":{"top":47.5,"bottom":155.5,"left":12,"right":378,"height":108,"width":366},"scrollTop":1173,"pageScroll":0,"viewport":{"height":844,"top":0},"editorFontSize":16,"editorFocused":true,"userCount":2,"greetingVisible":false,"suggestionsVisible":false,"headerTitleVisible":false,"headerWorkspaceVisible":false},"reading":{"shell":{"top":0,"bottom":844,"left":0,"right":390,"height":844,"width":390},"editor":{"top":759,"bottom":783,"left":29,"right":361,"height":24,"width":332},"toolbar":{"top":791,"bottom":827,"left":29,"right":361,"height":36,"width":332},"send":{"top":791,"bottom":827,"left":325,"right":361,"height":36,"width":36},"thread":{"top":48,"bottom":734,"left":0,"right":390,"height":686,"width":390},"latestUser":{"top":287.5,"bottom":395.5,"left":12,"right":378,"height":108,"width":366},"scrollTop":933,"pageScroll":0,"viewport":{"height":844,"top":0},"editorFontSize":16,"editorFocused":true,"userCount":2,"greetingVisible":false,"suggestionsVisible":false,"headerTitleVisible":false,"headerWorkspaceVisible":false}}
✅ PASS — 11. At narrow phone width, the composer send button and model control remain inside the viewport without horizontal overflow.
✅ PASS — 12. At desktop width, the normal full-height chat layout and larger composer remain visible.
ℹ️ ASSERTION — 13. Mobile viewport and turn layout do not resize the desktop shell{"narrow":{"shell":{"top":0,"bottom":844,"left":0,"right":320,"height":844,"width":320},"editor":{"top":759,"bottom":783,"left":29,"right":291,"height":24,"width":262},"toolbar":{"top":791,"bottom":827,"left":29,"right":291,"height":36,"width":262},"send":{"top":791,"bottom":827,"left":255,"right":291,"height":36,"width":36},"thread":{"top":48,"bottom":734,"left":0,"right":320,"height":686,"width":320},"latestUser":{"top":488.75,"bottom":620.75,"left":12,"right":293,"height":132,"width":281},"scrollTop":1136,"pageScroll":0,"viewport":{"height":844,"top":0},"editorFontSize":16,"editorFocused":false,"userCount":2,"greetingVisible":false,"suggestionsVisible":false,"headerTitleVisible":false,"headerWorkspaceVisible":false},"desktop":{"shell":{"top":0,"bottom":900,"left":0,"right":1440,"height":900,"width":1440},"editor":{"top":762,"bottom":822,"left":431,"right":1197,"height":60,"width":766},"toolbar":{"top":830,"bottom":866,"left":431,"right":1197,"height":36,"width":766},"send":{"top":830,"bottom":866,"left":1161,"right":1197,"height":36,"width":36},"thread":{"top":45,"bottom":737,"left":229,"right":1399,"height":692,"width":1170},"latestUser":{"top":539.5,"bottom":623.5,"left":446.5,"right":1166.5,"height":84,"width":720},"scrollTop":678,"pageScroll":0,"viewport":{"height":450,"top":90},"editorFontSize":13,"editorFocused":false,"userCount":2,"greetingVisible":false,"suggestionsVisible":false,"headerTitleVisible":true,"headerWorkspaceVisible":true}}
✅ PASS — 14. At desktop width, the model picker shows its compact search field, model options and provider actions.
Test run created 2026-09-19T19:44:24.359Z · Source: |
Mobile picker follow-up — 8fcec4aAdded 274e3f6 (approved picker fixes) and 8fcec4a (journey tooltip dismissal); credential fix 27e01f5 remains in history. PR remains draft.
Single-run evidence and screenshots: mobile model picker, provider list, provider form, desktop picker. Design: P5 (existing focus primitives), P10 (real-size evidence), V1 (desktop density retained; mobile input-size exception prevents a known autozoom risk). Limits: Chromium device emulation and simulated keyboard geometry are not native Safari/WebKit verification. The existing v2 issue remains unresolved and is not claimed fixed by this v1 result. User preview and provider credentials were untouched; no production deployment. Reproduce: |
|
CI repair pushed in e62a269: added MOBILE-CHAT-01 (v1/v2) to the exact registry expectation, matching the registration introduced by this PR. No assertions weakened or CI behavior changed. The failing Node unit command reproduced 21 passed / 1 failed, then passed 22/22 with zero skips after repair. Current-head openwork-tests-core and openwork-tests-required pass: https://github.com/different-ai/openwork/actions/runs/35465947436 . Builds and CodeQL also pass; gh reports no branch-protection required checks. This is CI-only verification; the separately documented manual v2 failure and full Safari validation remain outstanding, and older UI evidence is not new-head evidence. |



















Scope
Interaction parity from the supplied mobile comparison recording, not a chat-feature or branding redesign. Implemented in a separate worktree on
fix/mobile-chat-interaction-parity.Changes
visualViewport.heightandoffsetTop, keeping header and composer inside the visible area during keyboard resize/pan. Leave pinch zoom browser-owned.Verification at
54ca86680ea59b3a9c89c41f9c5a695de8326393MOBILE-CHAT-01, default v1 engine, DaytonaThe v1 browser journey checks 390px and 320px phone widths, a 1440px desktop width, trusted touch-send, delayed first-session creation, deterministic long and short responses, simulated keyboard shrink/pan/dismissal, manual scrolling and Jump to latest. No live model credentials were required. Two other cases in the same source file were excluded by the explicit case selector, not claimed as passed.
Measured v1 composer editor bottom: 489px before send → 488.5px during held creation → 489px in the persisted conversation. The toolbar stayed 36px high, and document scroll remained zero. Native keyboard continuity cannot be inferred from these numbers.
Both E2E runs used
placement: daytona (--daytona)and matched the runner/product SHA. Owned test sandboxes were deleted.Why draft / remaining gaps
ab24f4788868f0147a1226cb48ea9a36f80e166band this head. Both fail at the native-history boundary with HTTP 200 anddata: []. That establishes an existing native-history test failure, but does not prove the mobile-specific visible error/retained draft is pre-existing. No unrelated engine fix is included.composer-focus-continuity.test.tsxcheck returned 6 pass / 1 fail on both the branch and clean baseline: “Timed out waiting for the native history before attachment sends.” The focused passing suite above does not conceal that separate failure.Design / screenshots
Follows
DESIGN.mdP5, P7, P10, S6, V6, T5: reuse the composer and scroll owner; compact controls; no decorative animations; input positioning rather than a visual redesign. All screenshots below are synthetic test conversations. Shortened-view screenshots simulate keyboard geometry and intentionally contain no native keyboard.Approved mobile composition follow-up —
705450d3a3b133a24033c7b6cf119b87f51f54c0mobile-chat-layout.test.ts: 8 passed / 0 failed, exit 0. App typecheck: exit 0.check:browser: 1,020 callbacks, exit 0.MOBILE-CHAT-01: 1 selected passed / 0 failed / 0 skipped, exit 0; two other cases excluded by selector. Placement:daytona (--daytona); runner and sandbox SHA match. Added DOM assertions for empty focused composition, cleared-draft pending creation, mobile header metadata (not message text), and desktop metadata visibility.evidence:judge: 7 passed / 0 failed / 0 pending, exit 0. Inspected focused, pending and desktop screenshots. Current published evidence.OPENWORK_EVAL_REF=705450d3a3b133a24033c7b6cf119b87f51f54c0 GODEBUG=http2client=0 pnpm evals:e2e v2-sessionless-first-send --daytona --engine v1 --case MOBILE-CHAT-01 --strict-ref.OPENWORK_REVIEW_URLwas unset. The supported single-run GitHub publisher then succeeded (exit 0); no storage policy or credential was changed.