Skip to content

fix(chat): mobile sidebar-only chrome - #5164

Merged
benjaminshafii merged 3 commits into
devfrom
fix/mobile-sidebar-only
Sep 20, 2026
Merged

benjaminshafii merged 3 commits into
devfrom
fix/mobile-sidebar-only

Conversation

@benjaminshafii

@benjaminshafii benjaminshafii commented Sep 19, 2026 •

Copy link
Copy Markdown
Member

Scope

Follow-up to merged #5161, based independently on origin/dev at f3c5c78796e732e2a2f58e0bdd5e39457fa4554d (not a stacked PR). New isolated worktree and branch; no changes to other worktrees or previews.

  • Mobile chat has no top bar: no header surface, divider, session title, workspace label or overflow button. One unboxed sidebar icon remains.
  • Reuse SidebarTrigger with 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.
  • Move Find, Files, conditional sign-in and parent-chat actions into Chat actions in the existing mobile sidebar. Selecting an action closes the sidebar. Existing Library, Settings and session menus remain intact.
  • Desktop header and non-chat/takeover headers are unchanged. No provider, v2, composer or unrelated navigation redesign.

Design

DESIGN.md P1/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.

Check Result
Mobile navigation/layout and Library-sidebar unit tests 14 passed, 0 failed, exit 0
App typecheck Exit 0
Browser callback validation 1,022 callbacks checked, exit 0
Cold Daytona v1 MOBILE-CHAT-01, strict ref 1 selected passed, 0 failed, 0 skipped, exit 0; 2 unrelated cases excluded by selector
Infisical dev screenshot judge 12 passed, 0 failed, 0 pending, exit 0
Single-run legacy evidence publication Exit 0
New private app-web Daytona preview Final pushed SHA, clean workspace, HTTP 200, launch exit 0

Published 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.

pnpm --filter @openwork/app exec bun test tests/mobile-chat-navigation.test.tsx tests/mobile-chat-layout.test.ts tests/extensions-sidebar-header.test.tsx
pnpm --filter @openwork/app typecheck
pnpm --dir evals run check:browser
GODEBUG=http2client=0 OPENWORK_EVAL_REF=05a67aa9621c0fbb1b7790613779ec2170e9fae8 pnpm evals:e2e v2-sessionless-first-send --daytona --engine v1 --case MOBILE-CHAT-01 --strict-ref
infisical run --silent --env dev -- pnpm --dir evals evidence:judge -- --test-run results/test-runs/2026-09-19T21-28-22-219Z-11729-mobile-chat-01-keyboard-geometry-and-new-turns-keep-a-stable-chat-layout

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

  • First run at 5eb1a5175: exit 1, 0 passed / 1 failed selected; the new exact message-boundary assertion rejected 43.5px vs 44px. Added a 1px subpixel tolerance while retaining strict transcript clearance.
  • Second run at 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.
  • Initial evidence publication used a relative path rooted incorrectly (exit 1); retry with the absolute run directory succeeded. No storage policy or credentials changed.
  • Native iPhone Safari remains unverified. These are Chromium mobile emulation and simulated VisualViewport events, not a real iOS keyboard or device safe-area validation.
  • Known unresolved v2 evidence from fix(chat): stabilize mobile keyboard, composer, and new-turn layout #5161 remains outside scope; v2 was not rerun or modified. Keep this PR draft for that inherited verification gap and human mobile review. Selected v1 behavior passes; this is not a blanket cross-engine/device verdict.

Screenshots

Synthetic test data only. Inspected mobile empty, composing/response and desktop states.

Mobile new chat: only the sidebar icon

Mobile conversation: no top bar; content clears the toggle

Focused mobile composition, simulated keyboard geometry

Desktop header preserved

@vercel

vercel Bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

4 Skipped Deployments
Project Deployment Actions Updated
openwork-app Ignored Ignored Preview Sep 19, 2026 9:28pm UTC
openwork-den Ignored Ignored Preview Sep 19, 2026 9:28pm UTC
openwork-diagnostics Ignored Ignored Preview Sep 19, 2026 9:28pm UTC
openwork-landing Ignored Ignored Preview Sep 19, 2026 9:28pm UTC

@benjaminshafii

Copy link
Copy Markdown
Member Author

Test evidence — MOBILE-CHAT-01 keyboard geometry and new turns keep a stable chat layout — ✅ passed

SHA 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
[user] see(composer, editable)
[probe] eventually(sidebar-only chat chrome)
[vision] looks(1 expectations)
[user] label=Open sidebar · click(label=Open sidebar) · see(label=Library) · label=Chat actions · click(label=Chat actions) · see(label=Files) · press(Escape) ×2 · notSee(label=Chat actions) · see(label=Open sidebar)
[vision] looks(1 expectations)
[probe] composer · eventually(fixture model ready)
[user] label=Change model · click(label=Change model) · label=/^Model\s+First send model/ · click(label=/^Model\s+First send model/) · see(placeholder=Search models...)
[probe:raw] [probe:raw] eval()
[vision] looks(1 expectations)
[user] label=Model · click(label=Model)
[probe:raw] [probe:raw] eval()
[user] label=/^Model\s+First send model/ · click(label=/^Model\s+First send model/) · label=Connect more providers · click(label=Connect more providers) · see(placeholder=Filter providers by name or ID)
[probe:raw] [probe:raw] eval()
[probe] eventually(mobile provider dialog focuses its title, not search)
[vision] looks(1 expectations)
[user] type(placeholder=Filter providers by name or ID, "Google") · label=/^Google/ · click(label=/^Google/) · see(placeholder=sk-...)
[probe:raw] [probe:raw] eval()
[vision] looks(1 expectations)
[user] label=Back · click(label=Back)
[probe:raw] [probe:raw] eval()
[user] notSee(placeholder=sk-...) · press(Escape) · notSee(placeholder=Filter providers by name or ID) · press(Escape)
[probe] composer · eventually(chat shell follows keyboard viewport shrink and pan)
[user] composer · click(composer)
[probe] eventually(mobile composition hides the greeting, suggestions and header metadata)
[vision] looks(1 expectations)
[user] type(composer, "Summarize this workspace in one sentence. FIRST-SEND-mu8wfysc-11729")
[probe] composer · eventually(mobile send enabled) · eventually(held first mobile session creation) · composer
[vision] looks(1 expectations)
[user] see(text=Paragraph 18:, timeoutMs=120000) · type(composer, "Give me a short follow-up. MOBILE-FOLLOWUP-mu8wfysc-11729") · Run task · click(Run task) · see(text=Follow-up complete mu8wfysc-11729., timeoutMs=90000)
[probe] eventually(new user turn aligned at the transcript start)
[vision] looks(1 expectations)
[probe] eventually(keyboard dismissal retains new turn position)
[user] notSee(label=Jump to latest)
[vision] looks(1 expectations)
[probe] eventually(manual reading takes precedence over new-turn anchoring)
[user] see(label=Jump to latest) · label=Jump to latest · click(label=Jump to latest) · label=Open sidebar · click(label=Open sidebar) · label=Chat actions · click(label=Chat actions) · label=Find in conversation · click(label=Find in conversation)
[probe:raw] [probe:raw] eval() ×2
[probe] eventually(sidebar exit completes after selecting Find)
[user] notSee(label=Chat actions) · see(placeholder=Find in conversation) · press(Escape)
[probe] eventually(narrow phone toolbar fits)
[vision] looks(1 expectations)
[probe] eventually(desktop ignores mobile keyboard shell geometry)
[vision] looks(1 expectations)
[user] label=Change model · click(label=Change model) · label=/^Model\s+First send model/ · click(label=/^Model\s+First send model/)
[probe:raw] [probe:raw] eval()
[probe] eventually(desktop model search retains keyboard focus)
[vision] looks(1 expectations)
[user] press(Escape)
steps 1 ✅ mobile chat has only a sidebar toggle and preserves sidebar actions (6.8s) · 2 ✅ mobile model and provider navigation does not reopen search or lose focus (18.9s) · 3 ✅ a new mobile turn reserves answer space and survives keyboard dismissal (20.5s) · 4 ✅ narrow phone and desktop retain usable composer controls (4.3s)
verdict passed · 28 user observations (see ×11, looks ×12, notSee ×5) · 26 probes · steps 4/4

✅ 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 Mobile chat has no top bar, title, divider or overflow control: only an unboxed sidebar icon at the top left, with the composer unobstructed. — The screenshot shows only an unboxed sidebar icon at top left, with no top bar, divider, or overflow control; the bottom composer is fully visible and unobstructed.

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 At phone width, the new-chat composer sits near the bottom of the app rather than directly below the heading. — The mobile-width screenshot shows the “Describe your task...” composer anchored near the bottom, with substantial empty space separating it from the heading and suggestion cards.

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 At phone width, the model picker has a readable search field, a Model back control, and model/provider actions inside the viewport. — The phone-width screenshot visibly shows the “Search models...” field, a “‹ Model” back control, model rows with star/chevron actions, and “Connect more providers” plus “All models” within the viewport.

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 At phone width, Connect providers shows a readable filter field, provider rows and a close action without horizontal overflow. — The phone-width modal visibly contains the full “Filter providers by name or ID” field, readable provider rows, and a bottom-right “Close” button; content fits within the viewport with no horizontal overflow.

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.

  • ✅ PASS The mobile Google provider form shows its API key field and Back/Close actions within the viewport; no credential has been entered. — Visible API key field shows placeholder “sk-...”; “Back” and “Close” buttons are visible at the bottom, and “Save key” is disabled gray.

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 submission

Model 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 Mobile picker navigation preserves focus without automatic search focus or provider submission — Model 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 While composing on mobile, greeting and suggestions are hidden; only the sidebar icon remains above the conversation, with no header bar or overflow control. — The mobile view shows a focused task input with cursor; above it is blank except for a small sidebar icon at upper left, with no greeting, suggestions, header bar, or overflow control visible.

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 The mobile composer remains visible inside the shortened app viewport while the first send is pending; only the sidebar icon remains at the top. — The composer is visible near the lower center with “First send model” and a pending arrow button; only a small sidebar icon appears at the top.

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 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. — The user bubble appears near the top, “Follow-up complete mu8wfysc-11729.” is directly below, and the compact “Describe your task...” composer is near the bottom.

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.

  • ✅ PASS At full phone height, the latest user turn remains at the top of the conversation pane and the composer stays at the bottom. — The user message is visible at the top of the conversation area, while the “Describe your task...” composer is anchored at the bottom.

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 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 At narrow phone width, the composer send button and model control remain inside the viewport without horizontal overflow. — The bottom composer is fully visible within the phone-width viewport, including the truncated model control (“First send m...”) and circular upward-arrow send button.

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.

  • ✅ PASS At desktop width, the normal full-height chat layout and larger composer remain visible. — The wide desktop screenshot shows a full-height conversation pane with sidebar and a large bottom composer labeled “Describe your task...”.

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 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.

  • ✅ PASS At desktop width, the model picker shows its compact search field, model options and provider actions. — Desktop layout visibly shows the open Model picker with “Search models...”, options including “Big Pickle” and “Ling 3.0 Flash Fin Free,” plus provider actions “Connect more providers” and “All models”.

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: evals/results/test-runs/2026-09-19T21-28-22-219Z-11729-mobile-chat-01-keyboard-geometry-and-new-turns-keep-a-stable-chat-layout/test-run.json · Repro: pnpm --dir evals artifacts:publish -- --pr 5164 --test-run 2026-09-19T21-28-22-219Z-11729-mobile-chat-01-keyboard-geometry-and-new-turns-keep-a-stable-chat-layout

@benjaminshafii
benjaminshafii marked this pull request as ready for review September 20, 2026 00:16
@benjaminshafii
benjaminshafii requested a review from a team September 20, 2026 00:16
@benjaminshafii
benjaminshafii merged commit 5298c5b into dev Sep 20, 2026
19 checks passed
reachjalil added a commit that referenced this pull request Oct 2, 2026
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).
reachjalil added a commit that referenced this pull request Oct 2, 2026
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).
reachjalil added a commit that referenced this pull request Oct 3, 2026
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).
benjaminshafii pushed a commit that referenced this pull request Oct 3, 2026
* 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]>
benjaminshafii pushed a commit that referenced this pull request Oct 14, 2026
…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).
benjaminshafii pushed a commit that referenced this pull request Oct 14, 2026
* 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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant