Skip to content

Match the native updater harness to real recovery behavior - #201

Merged
BunsDev merged 1 commit into
mainfrom
fix-update-harness
Oct 13, 2026
Merged

BunsDev merged 1 commit into
mainfrom
fix-update-harness

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

This is a release blocker for v0.0.12. On a4383ff (release run 38449736915, attempt 2):

  • Signing, notarization, stapling and packaged E2E passed.
  • The real signed upgrade scenario passed end to end. It covered tamper refusal, authentication, Open Settings refusal, Squirrel replacement, automatic relaunch as 0.0.12 with an installed receipt and preserved draft, and restored editing.
  • The other two scenarios failed at harness steps written before any real run. No product code changes here.

Failures

native-failure (native-update-acceptance.mjs:200): Escape did not close Settings within 5 s.

  • Each refused updates:install briefly puts the app into "preparing", which makes the workspace inert, Settings included, until "ready" reaches the window.
  • SettingsDialog ignores Escape while it sits inside [inert].
  • e2e/update-preflight.spec.ts already waits for that inert state to clear before pressing Escape; the harness didn't.

interrupted (:258): the product behaved correctly. After the source was killed mid-download, the reopened 0.0.0 showed recovery, kept the draft read-only and refused another install. The harness expected /not ready|recovery/. During startup recovery, main rejects every request outside a small allowlist with the recovery message: "The update to Modex 0.0.12 has not been confirmed. Your saved drafts are preserved. Quit Modex, then reopen it…". The next thread:create check expected /restart|recovery/ and would have failed the same way.

Changes

  • Wait until the Settings dialog has no inert ancestor before pressing Escape.
  • Require the exact startup recovery message, including the version, for both refusals.
  • Record the second tagged run in the v0.0.12 release record and docs/status.md.

Verification

  • npm run build and npm test pass: 1,426 unit tests, 1,410 passed, 16 skipped, 0 failed. That includes test/native-update-acceptance.test.mjs.
  • The new pattern matches the observed refusal and rejects a different version.
  • The harness refuses to run outside GitHub-hosted runners, so the next v0.0.12 tag verifies it.

On a4383ff (release run 38449736915, attempt 2), the real signed upgrade
scenario passed end to end. The other two scenarios failed at harness
steps written before any real run:

- native-failure: Escape did not close Settings. Each refused install
  briefly marks the workspace, Settings included, inert while the
  renderer prepares, and Settings ignores Escape until the ready state
  reaches the window. e2e/update-preflight.spec.ts waits for the inert
  state to clear before pressing Escape. The harness now does too.
- interrupted: the reopened 0.0.0 showed recovery, kept the draft
  read-only and refused another install. The harness expected
  /not ready|recovery/. During startup recovery every refused request
  carries "The update to Modex <version> has not been confirmed...",
  so both refusal checks now require that exact message.

No product code changes. Record the second tagged run in the v0.0.12
review and status.

Coven-Harness: Claude Code / claude-opus-5-5
@vercel

vercel Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
modex Ready Ready Preview Oct 13, 2026 8:30pm UTC

Request Review

@BunsDev
BunsDev merged commit 8b6adb6 into main Oct 13, 2026
7 checks passed
@BunsDev
BunsDev deleted the fix-update-harness branch October 14, 2026 00:46

This branch was successfully deployed

1 active deployment
Preview — 627a2c71 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