Skip to content

test(evals): fail the first-launch gate fast when the error boundary catches the crash - #4699

Merged
yomgui merged 1 commit into
devfrom
spec/first-launch-recovery-heading
Sep 9, 2026
Merged

yomgui merged 1 commit into
devfrom
spec/first-launch-recovery-heading

Conversation

@yomgui

@yomgui yomgui commented Sep 9, 2026

Copy link
Copy Markdown
Member

Problem

#4696 added the packaged-first-launch journey that gates packaged-smoke on the enterprise and cloud first-launch screens. It stops early on Runtime.exceptionThrown so a render crash fails by name.

#4697 then mounted a root error boundary. A first-launch render crash now renders "OpenWork hit an unexpected error" instead of unmounting the tree, and React reports caught errors via console.error, not Runtime.exceptionThrown. The journey still goes red (the gate heading never appears) but only after the full 60 s wait, with a timeout message that buries the cause inside the last-value dump. It also still checked for a stale "Something went wrong" string that no screen uses.

Change

evals/specs/packaged-first-launch.e2e.test.ts only:

  • treat the recovery heading as a terminal state in the eventually predicate
  • assert by name that #root does not match the recovery heading
  • replace /Something went wrong/ with the real heading from app-error-boundary.tsx

No product code, no world or CI script changes.

Proof (local lane, macOS arm64, electron-builder.enterprise.yml --mac --dir, pnpm evals:e2e packaged-first-launch --local)

Binary under test Before this change After this change
dev (fix + error boundary) passed passed, 11.2 s
dev with providers.tsx reverted to pre-#4696 (incident state + error boundary) failed after 65.8 s: Timed out waiting for enterprise first-launch gate mounted in #root failed in 8.0 s: AssertionError: the root error boundary caught a first-launch render crash … Local context is missing

Also verified in the authoritative Linux lane: workflow_dispatch on ci/packaged-first-launch-gate-control (gate without fix, before #4697) failed desktop-boot-enterprise in 3.5 s with Error: Local context is missing (run 34402512668), and dev at 5858b51dc passes both desktop-boot-enterprise and desktop-boot-cloud (run 34402429872).

Follow-up to #4696 (Airwallex blank-screen incident, 0.18.43 / 0.18.44).

…catches the crash

#4697 mounted a root error boundary, so a first-launch render crash now
renders "OpenWork hit an unexpected error" instead of unmounting the tree.
React reports caught errors through console.error, not
Runtime.exceptionThrown, so packaged-first-launch no longer stopped on the
crash: it waited the full 60 s for the gate heading and failed with a
timeout whose message buried the cause in the last-value dump.

Treat the recovery heading as a terminal state, assert it is absent by
name, and check for it instead of the stale "Something went wrong" text.

Local lane, macOS arm64, electron-builder.enterprise.yml --mac --dir:
- dev: passed (11.2 s)
- dev with providers.tsx reverted to pre-#4696: failed in 8.0 s,
  "the root error boundary caught a first-launch render crash ...
  Local context is missing" (before this change: failed after 65.8 s
  with "Timed out waiting for enterprise first-launch gate")
@vercel

vercel Bot commented Sep 9, 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 9, 2026 8:55pm UTC
openwork-den Ready Ready Preview Sep 9, 2026 8:55pm UTC
openwork-diagnostics Ready Ready Preview Sep 9, 2026 8:55pm UTC
openwork-landing Ready Ready Preview, v0 Sep 9, 2026 8:55pm UTC

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Warden review summary — Clear

Native findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run

Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (3662 ms), confidentiality-review (2074 ms), spec-provenance-review (13778 ms).

Blockers

  • None.

Advisories

  • None.

Needs recheck

  • None.

Observed review-thread metrics

  • Unique observed run attempts in retained window: 1
  • Distinct heads in retained window: 1
  • Current unresolved Warden threads: 0 of 0 observed
  • Observed resolved/unresolved transitions in retained snapshots: 0 / 0
  • First observed resolved/unresolved (state at first collection, not event time): 0 / 0
  • Precision: unavailable (no adjudications; no TP/FP values are inferred)
  • Observation window: 1/20 run attempts retained; truncated: false
  • Transition snapshot: 0/0 current attributed threads retained (limit 500); truncated: false

Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority.

@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 security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (d8ac4662283a6bd778143b56deeaa3e98b668a13). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Passed · 3/3 tests · 4/4 assertions · 2 images

Commit d8ac4662283a6bd778143b56deeaa3e98b668a13 · selected evidence

Open review report

@yomgui
yomgui merged commit 19a3fc1 into dev Sep 9, 2026
27 checks passed

This branch was successfully deployed

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