Skip to content

test(evals): check app UI headless, not in a desktop window - #5947

Merged
benjaminshafii merged 6 commits into
devfrom
feat/evals-headless-default
Oct 14, 2026
Merged

benjaminshafii merged 6 commits into
devfrom
feat/evals-headless-default

Conversation

@benjaminshafii

Copy link
Copy Markdown
Member

What is this about?

Tests and agent checks of app UI now run in headless Chrome instead of opening the desktop app on the developer's screen.

What problem does it solve?

Agents testing a change kept launching Electron locally: a window popped up and took focus, again on every click and screenshot.

What was the situation before?

93 of 239 E2E specs launched Electron, about half for no native reason, and every hands-on skill pointed at pnpm dev or live-desktop.

How is this implemented?

  • Testkit: desktopApi, the engine probe, probe.hash() and go() work on the app in a browser. seed.appWeb starts focused. denForAppWeb and signedInAppWeb replace seed.desktop({ den, as }).
  • 25 spec files move to seed.appWeb. Specs that need the desktop shell keep it and name why in nativeReason.
  • dev-app-web --browser prints a CDP address. drive-desktop-cdp, run-tests, write-a-spec, preview-my-work and AGENTS.md now default to headless.

What else changed?

  • Removed test setup functions no spec used (~2,700 lines, most launched the desktop).
  • Removed the duplicate native-Desktop App-creation case; v1 web runs the same journey.
  • Fixed two stale UI strings in specs touched here.
  • An isolated dev-app-web world no longer opens the database of the coding agent running it (OPENCODE_DB when OPENCODE=1).

Release note

none

Evidence

The 25 moved spec files run on the PR head. 20 passed locally, headless. new-split-session, computer-task-mentions, streamed-markdown-answer, session-error-technical-details and saved-app-creation already fail on dev with the desktop app; on web they fail the same way or later.

Benjamin Shafii added 3 commits October 13, 2026 15:55
- 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 }).
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.
…tters

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

vercel Bot commented Oct 13, 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 Oct 14, 2026 12:26am UTC
openwork-den Ignored Ignored Preview Oct 14, 2026 12:26am UTC
openwork-diagnostics Ignored Ignored Preview Oct 14, 2026 12:26am UTC
openwork-landing Ignored Ignored Preview Oct 14, 2026 12:26am UTC

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

OpenWork evidence

Status Commit Preview Updated
🔴 Ready · evidence needs attention 464dcfe Open preview 2026-10-14 00:59:29 UTC

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

diff-warden[bot]
diff-warden Bot previously approved these changes Oct 13, 2026

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warden clearance. Complete security and confidentiality review of eed12f0edb83cb9b79226adf4df7023f5f818f61 found no high or medium security findings and no confidentiality findings. Any new push dismisses this approval. Analysis run

@diff-warden

diff-warden Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Warden: approved

No high or medium security findings and no confidentiality findings.

Reviewed 464dcfe00382 · Warden run · Updates after every Warden run.

@github-actions
github-actions Bot temporarily deployed to Evidence / PR 5947 October 13, 2026 23:25 Inactive
Benjamin Shafii added 2 commits October 13, 2026 17:09
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.
- 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.
diff-warden[bot]
diff-warden Bot previously approved these changes Oct 14, 2026

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warden clearance. Complete security and confidentiality review of 384662726a3bfe50e2756a350e9a92adff524ef9 found no high or medium security findings and no confidentiality findings. Any new push dismisses this approval. Analysis run

@github-actions
github-actions Bot temporarily deployed to Evidence / PR 5947 October 14, 2026 00:23 Inactive
…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).

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warden clearance. Complete security and confidentiality review of 464dcfe003820c860a759eae373035f303f2701f found no high or medium security findings and no confidentiality findings. Any new push dismisses this approval. Analysis run

@github-actions
github-actions Bot temporarily deployed to Evidence / PR 5947 October 14, 2026 00:41 Inactive
@github-actions
github-actions Bot temporarily deployed to Evidence / PR 5947 October 14, 2026 00:45 Inactive
@benjaminshafii
benjaminshafii merged commit ae5014f into dev Oct 14, 2026
188 of 193 checks passed

This branch had an error being deployed

1 failed and 5 active (4 outdated) deployments
Evidence / PR 5947 — 464dcfe0 Deployed Oct 14, 2026 by github-actions[bot]
Preview – openwork-app — 38466272 Deployed Oct 14, 2026 by vercel[bot]
Preview – openwork-landing — eed12f0e Deployed Oct 13, 2026 by vercel[bot]
Preview – openwork-den — eed12f0e Deployed Oct 13, 2026 by vercel[bot]
Preview – openwork-diagnostics — eed12f0e Deployed Oct 13, 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.

1 participant