mirror of
https://github.com/different-ai/openwork.git
synced 2026-11-27 23:00:51 +08:00
* 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 <ben@prologe.io> --------- Signed-off-by: Benjamin Shafii <ben@prologe.io> Co-authored-by: ben <ben@prologe.io>