Repository navigation
fix(chat): mobile sidebar-only chrome - #5164
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 05a67aa · sandbox ref 05a67aa · engine v1 ✅ 12/12 screenshots passed · 3 assertions · 15 expectations passed · 0 failed · 0 pending [world] mock(mcp) · appWeb(daytona) · workspace(/tmp/openwork-sessionless-first-send-1789853302237) · [seed:raw] evalIn() ×3 ✅ PASS — 1. Mobile chat has no top bar, title, divider or overflow control: only an unboxed sidebar icon at the top left, with the composer unobstructed.
✅ PASS — 2. At phone width, the new-chat composer sits near the bottom of the app rather than directly below the heading.
✅ PASS — 3. At phone width, the model picker has a readable search field, a Model back control, and model/provider actions inside the viewport.
✅ PASS — 4. At phone width, Connect providers shows a readable filter field, provider rows and a close action without horizontal overflow.
✅ PASS — 5. The mobile Google provider form shows its API key field and Back/Close actions within the viewport; no credential has been entered.
ℹ️ ASSERTION — 6. 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 — 7. While composing on mobile, greeting and suggestions are hidden; only the sidebar icon remains above the conversation, with no header bar or overflow control.
✅ PASS — 8. The mobile composer remains visible inside the shortened app viewport while the first send is pending; only the sidebar icon remains at the top.
✅ PASS — 9. 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 — 10. At full phone height, the latest user turn remains at the top of the conversation pane and the composer stays at the bottom.
ℹ️ ASSERTION — 11. 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":44,"bottom":734,"left":0,"right":390,"height":690,"width":390},"latestUser":{"top":43.5,"bottom":151.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,"headerVisible":false,"navigation":{"top":0,"bottom":44,"left":8,"right":52,"height":44,"width":44},"navigationCount":1,"overflowVisible":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":44,"bottom":734,"left":0,"right":390,"height":690,"width":390},"latestUser":{"top":283.5,"bottom":391.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,"headerVisible":false,"navigation":{"top":0,"bottom":44,"left":8,"right":52,"height":44,"width":44},"navigationCount":1,"overflowVisible":false}}
✅ PASS — 12. At narrow phone width, the composer send button and model control remain inside the viewport without horizontal overflow.
✅ PASS — 13. At desktop width, the normal full-height chat layout and larger composer remain visible.
ℹ️ ASSERTION — 14. 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":44,"bottom":734,"left":0,"right":320,"height":690,"width":320},"latestUser":{"top":488.75,"bottom":620.75,"left":12,"right":293,"height":132,"width":281},"scrollTop":1132,"pageScroll":0,"viewport":{"height":844,"top":0},"editorFontSize":16,"editorFocused":false,"userCount":2,"greetingVisible":false,"suggestionsVisible":false,"headerTitleVisible":false,"headerWorkspaceVisible":false,"headerVisible":false,"navigation":{"top":0,"bottom":44,"left":8,"right":52,"height":44,"width":44},"navigationCount":1,"overflowVisible":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,"headerVisible":true,"navigation":null,"navigationCount":1,"overflowVisible":false}}
✅ PASS — 15. At desktop width, the model picker shows its compact search field, model options and provider actions.
Test run created 2026-09-19T21:28:22.220Z · Source: |
The spec still described the app from before #5164, #5167 and #5196: - First send: since #5167 the sent message shows at once in a provisional conversation and stays there until the session exists. The slow-creation and handoff steps now assert that (one user message, no flicker, one creation and no prompt before release) instead of an unchanged hero with no user row. The transition sampler records the provisional conversation. - Mobile sidebar: Escape closes the Chat actions menu, then the sidebar; wait for each layer to finish closing instead of pressing twice at once. - Model picker: since #5196 it opens straight onto its searchable list; the "Model" drill-in is gone. On v2, Connect more providers falls back to Settings › AI Providers, so the spec continues from Connect a provider there and returns with Back to app. - While the first send is pending the dock is read-only, so the editor no longer keeps focus; its position is still checked. - The New task heading is "What do you need done?" again (#5483).
The spec still described the app from before #5164, #5167 and #5196: - First send: since #5167 the sent message shows at once in a provisional conversation and stays there until the session exists. The slow-creation and handoff steps now assert that (one user message, no flicker, one creation and no prompt before release) instead of an unchanged hero with no user row. The transition sampler records the provisional conversation. - Mobile sidebar: Escape closes the Chat actions menu, then the sidebar; wait for each layer to finish closing instead of pressing twice at once. - Model picker: since #5196 it opens straight onto its searchable list; the "Model" drill-in is gone. On v2, Connect more providers falls back to Settings › AI Providers, so the spec continues from Connect a provider there and returns with Back to app. - While the first send is pending the dock is read-only, so the editor no longer keeps focus; its position is still checked. - The New task heading is "What do you need done?" again (#5483).
The spec still described the app from before #5164, #5167 and #5196: - First send: since #5167 the sent message shows at once in a provisional conversation and stays there until the session exists. The slow-creation and handoff steps now assert that (one user message, no flicker, one creation and no prompt before release) instead of an unchanged hero with no user row. The transition sampler records the provisional conversation. - Mobile sidebar: Escape closes the Chat actions menu, then the sidebar; wait for each layer to finish closing instead of pressing twice at once. - Model picker: since #5196 it opens straight onto its searchable list; the "Model" drill-in is gone. On v2, Connect more providers falls back to Settings › AI Providers, so the spec continues from Connect a provider there and returns with Back to app. - While the first send is pending the dock is read-only, so the editor no longer keeps focus; its position is still checked. - The New task heading is "What do you need done?" again (#5483).
* fix(app): restore AI Providers row layout and footer after the Auto picker Organization provider rows put the name and status at the far right because the provider icon became a separate child of a justify-between row. Group the icon with the text, move "Managed in Den" into the section title as a pill, drop the duplicate "AI Providers" heading by putting Connect a provider on the "On this device" header, keep the Connect a provider footer stacked so the organization line stops wrapping, and share one Auto meta line between Settings and the sheet. * feat(app): redesign AI Providers and Connect a provider to match the design Settings › AI Providers now follows the AI Providers design: the page header carries Connect a provider, both sections use one bordered list of rows (tile, name, status, monospace id and meta line), organization rows show who Den grants them to and whether the key is shared or per member, the sync footer sits inside the list, and signed-out members see a "No organization yet" card. Connect a provider gets a visible description, sentence-case groups with counts, one subtitle per provider that says how it connects, a single Connect action, a footer with the organization and keyboard hints, wrapping instead of truncated subtitles, and a capped height so long lists scroll inside it. Built-in OpenCode Zen without a key of its own is offered under Available to add instead of being listed as connected. The desktop now reads Den's provider access and credential mode, which the usable-provider list already returns. * test(evals): align first-send spec with the current chat chrome and failed-send recovery The mobile chrome probe looked for the sidebar toggle inside the session pane, but it renders in the chat column beside it, so the count was always zero and the overflow check could never fail. Scope both to the sidebar inset. Since #5167 a rejected first send stays in the conversation with Retry instead of moving the prompt back into the composer. Assert that: one user message, the inline error and Retry sending, no session and no model request. * test(evals): bring the first-send spec up to date with the current app The spec still described the app from before #5164, #5167 and #5196: - First send: since #5167 the sent message shows at once in a provisional conversation and stays there until the session exists. The slow-creation and handoff steps now assert that (one user message, no flicker, one creation and no prompt before release) instead of an unchanged hero with no user row. The transition sampler records the provisional conversation. - Mobile sidebar: Escape closes the Chat actions menu, then the sidebar; wait for each layer to finish closing instead of pressing twice at once. - Model picker: since #5196 it opens straight onto its searchable list; the "Model" drill-in is gone. On v2, Connect more providers falls back to Settings › AI Providers, so the spec continues from Connect a provider there and returns with Back to app. - While the first send is pending the dock is read-only, so the editor no longer keeps focus; its position is still checked. - The New task heading is "What do you need done?" again (#5483). * fix(chat): keep a new mobile turn at the top on OpenCode v2 On phones a sent message is pinned to the top of the transcript with space reserved for its answer. The controller tracked the turn by the ID the composer generated, but OpenCode v2 gives the message its own ID, so the optimistic row is replaced (or never rendered) and the turn was dropped: no space was reserved and the new turn sat below the top. When the tracked ID is not on screen, follow the newest user turn that was not already there when the message was sent. * test(evals): wait for the background Den policy read in the outage fixture Since #5433 installing an identity reads Den policy without waiting for it, so checking for that read right after the 204 raced and failed at random. * fix(app): drop status words from Connect a provider and capitalize its sections Connected providers show how they connect and no action; only providers not yet added offer Connect. OpenWork Models drops Included, Free, No account needed and the weekly limit line, here and in Settings. Section labels read ON THIS DEVICE and AVAILABLE TO ADD, as in the design. Evidence: evals/specs/connect-provider-dialog.e2e.test.ts * test(evals): record what the Connect a provider spec proves so the evidence report is complete * fix(app): keep the design's provider filter placeholder in Connect a provider The search field reads Filter providers by name or ID again (Model selector B2, D2), so the live provider spec needs no change. * test(evals): wait for the desktop header to return before checking it After resizing from phone to desktop the spec only waited for the shell height, then checked the header at once; the title can render a frame later. * test(evals): describe the visible Retry text in the failed-send screenshot claim The button reads 'Retry'; 'Retry sending' is its accessible label, which the role assertion above already checks. Signed-off-by: Benjamin Shafii <[email protected]> --------- Signed-off-by: Benjamin Shafii <[email protected]> Co-authored-by: ben <[email protected]>
…e narrow desktop sidebar - connector-tool-call-branding: after reload, wait for the restored Slack row before inspecting it. - seed.session(s): retry session.create_task when it turned disabled between the readiness check and the call; nothing ran. - sidebar-title-overflow-fade: below the breakpoint the desktop keeps its titlebar sidebar toggle (the mobile "Open sidebar" bar is browser-only since #5164).
* test(evals): give the app in headless Chrome the desktop's footing
- probe.desktopApi, agent.desktopApi and the engine session probe find the
local server from localStorage when there is no Electron bridge.
- probe.hash() reports the path route of the app in a browser in the same
"#/workspace/..." form, and go() navigates it through history.
- seed.appWeb focuses the page like a person's window and can report a fine,
hover-capable mouse (mouse: true).
- denForAppWeb + signedInAppWeb replace seed.desktop({ den, as }).
* test(evals): run app-UI journeys in headless Chrome, not the desktop app
Specs whose world launched Electron for no native reason now use seed.appWeb,
so running them locally opens nothing on screen. Specs that need the desktop
shell keep it and say why in nativeReason.
Also removes world functions no spec uses (most launched the desktop), the
duplicate native-Desktop App-creation binding (v1 web runs the same journey),
and two stale UI strings in specs touched here.
* docs(agents): check app UI headless; open the desktop only when it matters
- AGENTS.md, run-tests, write-a-spec, preview-my-work and drive-desktop-cdp
default to the app in headless Chrome and name when the desktop is needed.
- dev-app-web --browser opens this checkout's app in headless Chrome and
prints its cdp address; cdp.mjs drives path routes too.
- An isolated headless world ignores OPENCODE_DB inside a coding agent's
shell (OPENCODE=1), which pointed it at the agent host's own database.
* fix(chat): let a failed step's Technical details close again
The recovery row's details panel animated out with a keyframe on data-closed, which Base UI's Collapsible never saw finish, so a second click on the code icon left the panel open. Fade it with the data-starting-style/data-ending-style transition every other collapsible uses.
* test(evals): get the moved app-UI journeys green in headless Chrome
- Fault proxy: answer injected Den faults with the caller's origin and credentials, so the app in a browser can read them (a wildcard origin is refused for credentialed requests).
- go(): wait for the app's router before pushing a path, so a navigation right after a reload is not lost.
- connector-tool-call-branding: wait until Run task accepts the draft before clicking it.
- session-error-technical-details: transcript errors keep their raw error behind Technical details for everyone since #5547; the banner and the debug panel stay Developer-mode only.
- sidebar-title-overflow-fade: the session titlebar now sits above the pane; check the collapsed toggle clears the macOS window controls and stays centered in it.
* test(evals): settle restored rows, retry a create that raced, open the narrow desktop sidebar
- connector-tool-call-branding: after reload, wait for the restored Slack row before inspecting it.
- seed.session(s): retry session.create_task when it turned disabled between the readiness check and the call; nothing ran.
- sidebar-title-overflow-fade: below the breakpoint the desktop keeps its titlebar sidebar toggle (the mobile "Open sidebar" bar is browser-only since #5164).












Scope
Follow-up to merged #5161, based independently on
origin/devatf3c5c78796e732e2a2f58e0bdd5e39457fa4554d(not a stacked PR). New isolated worktree and branch; no changes to other worktrees or previews.SidebarTriggerwith a 44 × 44px touch target, accessible label/expanded state, safe-area margins and reduced-motion support. Normal flow reserves its space, so it does not float over the first message or editor.Design
DESIGN.mdP1/P3/P5/P7/S1/V6, plus P10 evidence: conversation is the focal element; advanced actions remain discoverable in the existing sidebar; existing Button/Sidebar/Dropdown primitives; flat, unboxed chrome; no new entrance animation and reduced-motion-aware toggle.Final-head verification
Commit:
05a67aa9621c0fbb1b7790613779ec2170e9fae8.MOBILE-CHAT-01, strict refPublished final-head evidence and all screenshots.
The journey covers 390px/320px mobile and 1440px desktop, absence of the chat header/overflow, exactly one 44px toggle, sidebar open/close, Library discoverability, Files menu availability, Find activation through the sidebar, transcript/editor clearance, first-send handoff and simulated keyboard geometry. Existing desktop title/workspace/header are asserted visible. The transcript starts at 44px, exactly below the 44px toggle; message scroll alignment allows 1px of subpixel rounding.
Placement:
daytona (--daytona); runner and sandbox SHA match. Owned journey sandboxes were deleted. The separate preview remains available privately for review; its signed URL is intentionally not published here.Repair history / remaining gaps
5eb1a5175: exit 1, 0 passed / 1 failed selected; the new exact message-boundary assertion rejected43.5pxvs44px. Added a 1px subpixel tolerance while retaining strict transcript clearance.009df13f8: exit 1, 0 passed / 1 failed selected; an immediate absence assertion observed the sidebar during exit. Added a bounded DOM wait for the existing exit transition; no product animation changed. Final run passes.Screenshots
Synthetic test data only. Inspected mobile empty, composing/response and desktop states.