Skip to content

revert(app): restore the new-task empty state from before #5196 - #5483

Merged
reachjalil merged 3 commits into
devfrom
fix/restore-new-task-empty-state
Sep 30, 2026
Merged

reachjalil merged 3 commits into
devfrom
fix/restore-new-task-empty-state

Conversation

@reachjalil

@reachjalil reachjalil commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

What is this about?

Restores the new-task empty state to how it looked before #5196.

What problem does it solve?

#5196 redesigned the empty state along with the model picker. We want the previous empty state back while keeping the rest of #5196.

What was the situation before?

Since #5196, the empty state shows "What should we work on?" with a subtitle, pill-shaped suggestions and the composer docked at the bottom. Signed-out users also see the "Auto is free on this device" status and the "Files stay on this device" caption.

How is this implemented?

  • session-empty-hero.tsx is restored from before feat(models): add Auto to one shared model picker #5196: the "What do you need done?" heading, suggestion cards in a grid (organization prompts or the four built-in ones), the composer under the heading, the free starter model hint and the Connect a model provider card.
  • The hero unit test in new-task-draft-send-in-flight.test.tsx is restored to match.
  • first-run-local, packaged-first-launch, packaged-activated-launch and session-archive-pinned expect the previous heading again.

What else changed?

  • The empty state no longer shows the signed-out Auto status line. Auto itself is unchanged in the model picker.

  • v2-sessionless-first-send still names the newer heading in its visual checks. It is left untouched here because it already fails on dev for unrelated reasons.

  • first-run-local now records each of its three checks as assertion evidence. It passed before but recorded none, so its evidence report always read Incomplete.

Release note

The new-task screen returns to its previous layout.

Evidence

App typecheck passes apart from one existing dev error in mcp-app-frame.tsx. new-task-draft-send-in-flight (4) and new-task-draft-state (3) pass. composer-focus-continuity has the same single failure on dev with or without this change.

Brings back the previous empty state: the "What do you need done?" heading, suggestion cards, the composer under the heading, the free starter model hint and the Connect a model provider card. Specs and the hero unit test expect the previous heading again.
@reachjalil
reachjalil requested a review from a team September 30, 2026 21:01
@vercel

vercel Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
openwork-den Ready Ready Preview Sep 30, 2026 9:36pm UTC
3 Skipped Deployments
Project Deployment Actions Updated
openwork-app Ignored Ignored Preview Sep 30, 2026 9:36pm UTC
openwork-diagnostics Ignored Ignored Preview Sep 30, 2026 9:36pm UTC
openwork-landing Ignored Ignored Preview Sep 30, 2026 9:36pm UTC

@github-actions

github-actions Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

OpenWork evidence

Status Commit Preview Updated
🟢 Ready · evidence passed 0336070 Open preview 2026-09-30 21:41:56 UTC

Run details · Open the preview to inspect evidence and sandbox options.

The spec passed but recorded no assertion evidence, so its evidence report was always Incomplete. Each of its three steps now records what it checked.
@reachjalil
reachjalil merged commit 209266c into dev Sep 30, 2026
33 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]>

This branch was successfully deployed

5 active (3 outdated) deployments
Evidence / PR 5483 — 03360706 Deployed Sep 30, 2026 by github-actions[bot]
Preview – openwork-den — 03360706 Deployed Sep 30, 2026 by vercel[bot]
Preview – openwork-landing — e54ad871 Deployed Sep 30, 2026 by vercel[bot]
Preview – openwork-app — e54ad871 Deployed Sep 30, 2026 by vercel[bot]
Preview – openwork-diagnostics — e54ad871 Deployed Sep 30, 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