Repository navigation
fix(chat): clear model errors and calm, readable tool steps - #5547
Merged
Merged
Conversation
added 11 commits
October 1, 2026 22:22
- Groups never open or close on their own; one call renders as one row. - Steps show Den's real script error instead of a generic placeholder. - Readable labels: "Script on OpenWork Cloud failed", "Searched Exa for ...", clean service names (no openwork-direct-*-<hash> ids), brand casing. - Direct org connections get their own logo and name. - Tool catalog lookups (search, search_capabilities) are hidden. - Technical details move behind a discreet per-step code icon.
- The v2 results plugin accepts dotted Code Mode tool names
(openwork-cloud.create_app), so App results and launches are recorded again.
- When nothing was recorded, the adapter rebuilds App steps from the script's
call list: rejected builds end as failed with Den's reason, and the
preparation id links retries into one card.
- Rejected attempts fold into the same card ("Fixed 2 problems").
- Technical details use the shared code icon.
- v2 transport failures read as "Couldn't reach the model provider", "Can't reach the model service", "Connection to the model dropped"; "Model unavailable: <ids>" and "HTTP 5xx/429/401/403" text are classified. - Retrying reads "Reconnecting to the model" with attempt progress. - A failed turn shows one error even when live and snapshot keys differ. - Recovery row: one line, visible Retry, raw error behind a code icon. - The step height hold only applies to the live group and releases on click.
The card trusted the tool result from when the step ran, plus an in-memory record keyed by the session's UI scope. Reopening a session changed that key, so a connection signed in earlier showed "Connect" again. The card now also reads the member's live status (connectedForMe) from the org connection list.
…rded When an engine did not record App results, successful steps are marked unrecorded instead of guessed from the script's return value: the card moves through its steps, ends as "Created ... Open it from your Library", and an unmatched build joins the latest card only when that preparation's id is unknown.
- A Code Mode script with no tool calls is hidden once it succeeds, and reads "Running a script" or "Script failed" otherwise (was "Worked on this step" / "Couldn't finish this step"). - "Decode error (200 POST <url>)" reads as an interrupted model response; the URL stays in technical details. - Technical details drop the internal tool id line and empty inputs.
- "native:<connection>:getCapabilitiesGoogleWorkspaceCalendarEvents" reads "Fetched calendar events · Google Workspace" (was "Ran a capability"). - Calls inside a Code Mode script show no duration: the engine records no per-call timing, so the shown value was made up.
Rows inside a group named for one service drop the repeated service name
("Searched for ..." under "Searched Slack"), and identical consecutive
finished calls fold into one row ("2 times").
The running command (or "Thinking...") was a separate line under the step group that disappeared when the step finished, moving everything below it up by about 22px each time. It now sits on the group's summary line. Measured on five sequential commands: upward jumps of the Working line went from 6 to 1.
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
Contributor
| // The engine reports one error for the whole script. Attribute it to the | ||
| // call that failed last; earlier failures keep the honest placeholder. | ||
| const lastFailed = calls.reduce<number>((found, call, index) => isRecord(call) && call.status === "error" ? index : found, -1); | ||
| const scriptError = lastFailed >= 0 ? codeModeScriptError(part) : null; |
Contributor
The live error event falls back to a session-keyed message when the turn has no assistant message yet, and some history merge paths keep both it and the snapshot's error. The message list now applies the one-error-per-turn rule itself, whatever path built the list.
- App creation is a single rail row ("Writing app", "Checking app",
"Created app ... Open", "Couldn't create app ... <reason>") instead of a
bold four-step card; earlier rejected attempts and raw calls sit behind the
details icon.
- "Script failed" shows its reason on the line.
- Steps that render nothing (catalog lookups, empty reasoning, step markers)
no longer leave gaps in the rail.
- Org MCP calls made through OpenWork Cloud (mcp:<id>:web_search_exa) read
"Searched Exa for ..." with the connector's name.
- "This model isn't available" offers Retry; it is usually transient.
reachjalil
added a commit
that referenced
this pull request
Oct 6, 2026
…dashboard The App chat and creation journeys still expected the four-stage creation card and "app" dashboard labels. #5547 replaced the card with one row ("Writing artifact", "Couldn't create artifact"), and #5560/#5561 renamed the dashboard controls to artifacts and made compact tile menus appear only on hover. They failed the same way on dev. Match the row by its data-app-creation-stage, use the artifact labels, hover the App inside a tile before opening its menu, and in the chat journey add a removed tile back from the picker instead of reopening its menu after Undo, which the creation journeys already cover.
benjaminshafii
pushed a commit
that referenced
this pull request
Oct 6, 2026
* feat(mcp): build Apps in every organization by default Retire the per-organization appMcpServers capability. Apps built in OpenWork now need only DEN_APP_MCP_SERVERS_ENABLED (default true, still the deployment kill switch) and the organization's member-facing MCP connections, so every organization gets the App builder, App servers and dashboard Apps without a platform admin turning them on. Like the capabilities #4053 retired, stored appMcpServers overrides are ignored and dropped on the next admin capabilities write; the key leaves the capability list, the admin API and the /admin panel. GET /v1/org still reports the effective value. Regenerate OpenAPI and the SDK. Eval Dens default DEN_APP_MCP_SERVERS_ENABLED to false so older Workflow-bound view journeys keep testing that mode; the App journeys set it to true and now prove a new organization offers the builder with no /admin change. Also drop a stale /admin help line for the MCP Apps switch * test(apps): update the App journeys for the current creation row and dashboard The App chat and creation journeys still expected the four-stage creation card and "app" dashboard labels. #5547 replaced the card with one row ("Writing artifact", "Couldn't create artifact"), and #5560/#5561 renamed the dashboard controls to artifacts and made compact tile menus appear only on hover. They failed the same way on dev. Match the row by its data-app-creation-stage, use the artifact labels, hover the App inside a tile before opening its menu, and in the chat journey add a removed tile back from the picker instead of reopening its menu after Undo, which the creation journeys already cover.
benjaminshafii
pushed a commit
that referenced
this pull request
Oct 6, 2026
#5547 moved the aggregate's live step inline, and its own text now carries the shimmer class. The spec only looked for a shimmering descendant, so it read false. Signed-off-by: Benjamin Shafii <[email protected]>
benjaminshafii
pushed a commit
that referenced
this pull request
Oct 7, 2026
…5709) * fix(chat): keep the Working line through silent stretches of a run The Working line hid itself once a busy run went a minute without new output, and nothing took its place. #4651 removed the "No new activity" warning that used to replace it but kept the condition that hid the line. A long conversation that needs over a minute for its first token showed an empty chat with only the Stop button, until text arrived. Silence still triggers the background status re-check, and Reconnecting still replaces the line when the run can no longer be confirmed. Signed-off-by: Benjamin Shafii <[email protected]> * test(evals): find the session header in the window titlebar #5261 moved the session header out of the session pane into the window titlebar. The shimmer spec still looked for a header inside the pane, read an empty filter, and failed its backdrop check. The spec only runs when it changes, so the break went unnoticed until now. Signed-off-by: Benjamin Shafii <[email protected]> * test(evals): accept the shimmer on the live step itself #5547 moved the aggregate's live step inline, and its own text now carries the shimmer class. The spec only looked for a shimmering descendant, so it read false. Signed-off-by: Benjamin Shafii <[email protected]> * test(evals): record what each shimmer step observed The evidence report marks a test Incomplete when it records no assertion evidence, so the shimmer spec's proof stayed Incomplete even when every step passed. Each step now records the fact it checked, with the observed values. Signed-off-by: Benjamin Shafii <[email protected]> --------- Signed-off-by: Benjamin Shafii <[email protected]>
benjaminshafii
pushed a commit
that referenced
this pull request
Oct 14, 2026
- 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.
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).
benjaminshafii
pushed a commit
that referenced
this pull request
Oct 15, 2026
- secure-keys-in-chat declares the web surface its world now uses. - agent-connection-journey stops clicking a folded 'Show steps' button the chat no longer renders for single-call runs (#5547). - thread-restart world stops the leftover renderer dev server before waiting for its port, and fails if app processes outlive a quit. - core-chat runs only in the PR Core journey lane (it needs a Freestyle world).
benjaminshafii
pushed a commit
that referenced
this pull request
Oct 15, 2026
- secure-keys-in-chat declares the web surface its world now uses. - agent-connection-journey stops clicking a folded 'Show steps' button the chat no longer renders for single-call runs (#5547). - thread-restart world stops the leftover renderer dev server before waiting for its port, and fails if app processes outlive a quit. - core-chat runs only in the PR Core journey lane (it needs a Freestyle world).
benjaminshafii
pushed a commit
that referenced
this pull request
Oct 15, 2026
* test(evals): replace evals/specs with core journeys per product promise Delete unit and integration tests that leaked into evals/specs, fold the remaining e2e specs into 60 core journeys under evals/core (one or more per promise in evals/promises.ts), and retire evals/specs. spec-lint (evals/scripts/spec-lint) replaces the boundary and channel ratchets: no baselines, one bad fixture per rule, and every error says what to do instead and which core journey to extend. Tooling (test-files, journey catalog, pr-proof, parity runner) finds journeys by basename in core/ and proofs/. * test(evals): drop polynomial regexes from journey behaviors * ci(evals): run the full core journey suite in its own workflow PR proof caps changed specs at 32. A PR made only of core journeys and proofs over that cap keeps the core chat journey as PR proof; the new Core journeys workflow runs every non-packaged journey nightly, on demand, and on a PR that changes the workflow. * test(evals): cut e2e to nine core journeys; move security rules to den-api API tests - evals/core keeps the nine journeys in evals/journeys.ts; promises.ts, sharedWorlds and every other core journey are gone, along with the worlds and behaviors only they used (187 -> 28 world files). - spec-lint shrinks to three rules: allowed-files, real-product, honest. - Security rules (escalation, tenant isolation, member API keys, admin-only actions, MCP OAuth, skill access, audit secrets) are now 23 API tests in ee/apps/den-api/test/api against the real app and a throwaway MySQL database (~14s), run in CI next to the Den unit tests. - Core journeys run on every PR and nightly; packaged smoke runs only app-smoke and packaged-update-install. - New verify-openwork skill: how to prove a change on the real product. * test(evals): fix three core journeys found red on their first CI run - secure-keys-in-chat declares the web surface its world now uses. - agent-connection-journey stops clicking a folded 'Show steps' button the chat no longer renders for single-call runs (#5547). - thread-restart world stops the leftover renderer dev server before waiting for its port, and fails if app processes outlive a quit. - core-chat runs only in the PR Core journey lane (it needs a Freestyle world). * test(evals): drop journey steps the den-api API tests now prove secure-keys-in-chat no longer re-proves member key isolation, team-leave key removal and redirect/echo redaction through the UI; ee/apps/den-api/test/api covers them in seconds. thread-continues-after-restart drops the folded ArrowUp prompt-recall step, which is not part of surviving a restart. * test(evals): retire remote-session-subagents spec after its PR proof #5975 added it to the retired evals/specs; its proof already ran on that PR. Also removes a world no spec uses. * test(evals): drop the stale slow-history restart case The app no longer issues the uncapped history read that case slowed down (0 delayed reads in CI), so it could not fail on the behavior it named. The crash and quit cases keep the user-visible claim.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this about?
A cosmetic and reliability pass on chat: model errors, Code Mode steps, app creation cards and connection cards read clearly and stop jumping.
What problem does it solve?
On the v2 engine, people saw raw engine text ("ConnectionRefused…", "getaddrinfo ENOTFOUND…", "Model unavailable: ipr_…/gwm_…"), duplicated errors, step groups that opened and closed on their own, internal ids ("OpenWork Direct Exa 830d8d"), four "Creating app" cards stuck on "Checking it", and a connect card that forgot it was connected.
What was the situation before?
A failed turn showed the raw fetch error twice; Code Mode rows said "Couldn't complete ran capability script · openwork cloud" with "The engine did not provide an individual error"; the chat jumped about 22px whenever a step finished.
How is this implemented?
session-error.ts: classify v2 transport, decode, model-unavailable and in-text HTTP failures;transcript-reconcile.tskeeps one error per turn;task-recovery.tsxis one line with Retry and a code icon for the raw error.capability-call.ts,code-mode-*.ts(x),capability-call-line.tsx: sentence labels, clean service names, Den's real script error, hidden tool lookups, per-step details icon, no auto-open.openwork-mcp-results-v2.tsaccepts dotted Code Mode tool names;opencode-v2-adapter.tsandapp-creation-progress.tsgive one card per app with real failures.connection-card.tsxreads liveconnectedForMe;tool-aggregate-group.tsxkeeps the live step on its own line;LiveStepsholds height only for the live group.What else changed?
Release note
Chat errors and tool steps are now written in plain language, stop repeating, and no longer make the conversation jump while work runs.
Evidence
No E2E; unit-tested (session-error, adapter, Code Mode, app creation, connection card suites) and checked by hand in a live desktop world. The fault-provider skills in the companion PR reproduce each state.
Design: P1, P3, S3, C3, C4, C6, T1, T2, V6