Skip to content

fix(app): preserve first-send continuity - #5167

Merged
benjaminshafii merged 1 commit into
devfrom
fix/first-send-continuity
Sep 20, 2026
Merged

benjaminshafii merged 1 commit into
devfrom
fix/first-send-continuity

Conversation

@benjaminshafii

Copy link
Copy Markdown
Member

Summary

  • Render the submitted message immediately in the normal conversation layout while session creation runs internally.
  • Keep one stable provisional sidebar row and show creation failures inline with retry instead of exposing a lifecycle interstitial.
  • Add DESIGN.md P11, Continuity over lifecycle, plus loading-state and review-checklist guidance.

Verification

  • bun test v1.3.8 (b64edcb4) — 22 passed
  • Browser evidence covers successful first Send and creation-failure recovery.

Design

Follows DESIGN.md P11, C3, T2, P5, and P10.

First Send preserves the normal conversation layout

Creation failure remains inline with retry

@benjaminshafii
benjaminshafii requested a review from a team September 20, 2026 00:46
@vercel

vercel Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
openwork-app Ready Ready Preview Sep 20, 2026 12:47am UTC
openwork-den Ready Ready Preview Sep 20, 2026 12:47am UTC
openwork-diagnostics Ready Ready Preview Sep 20, 2026 12:47am UTC
openwork-landing Ready Ready Preview, v0 Sep 20, 2026 12:47am UTC

@mdrayhan470598-ops mdrayhan470598-ops left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feer fire

@benjaminshafii
benjaminshafii enabled auto-merge (squash) September 20, 2026 01:15
@benjaminshafii
benjaminshafii merged commit 2739533 into dev Sep 20, 2026
20 checks passed
reachjalil added a commit that referenced this pull request Oct 2, 2026
…ailed-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.
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
…ailed-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.
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
…ailed-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.
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]>

This branch was successfully deployed

4 active deployments
Preview – openwork-app — 3b045f14 Deployed Sep 20, 2026 by vercel[bot]
Preview – openwork-landing — 3b045f14 Deployed Sep 20, 2026 by vercel[bot]
Preview – openwork-den — 3b045f14 Deployed Sep 20, 2026 by vercel[bot]
Preview – openwork-diagnostics — 3b045f14 Deployed Sep 20, 2026 by vercel[bot]
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.

2 participants