Skip to content

fix: verify the development launcher before handoff - #440

Merged
Mat4m0 merged 2 commits into
mainfrom
fix/verified-development-launch
Sep 12, 2026
Merged

fix: verify the development launcher before handoff#440
Mat4m0 merged 2 commits into
mainfrom
fix/verified-development-launch

Conversation

@Mat4m0

@Mat4m0 Mat4m0 commented Sep 12, 2026

Copy link
Copy Markdown
Owner

What changed

Make pnpm dev build and launch the intended checkout, then verify the actual process, profile and visible launcher before reporting success. --isolated creates a disposable profile; --profile PATH reuses one; --cached-only refuses client downloads.

Why

Selecting an absent Electron.app through UI automation launches Electron's welcome page without loading gwonmac. Agents previously assembled the launch command and guessed readiness. The development command now owns the explicit app argument and profile assertion, and waits for the native window's show event before printing launcher-open.

Invariant

Bare Electron cannot produce a successful launcher receipt. An active profile refuses before building and is rechecked before launch, preserving its existing session. Build failure and invalid arguments cannot fall through to Electron startup.

Delivery

Target main; no app release is needed. This changes development startup only. Packaged app behavior is unchanged. Existing worktrees must receive this change before they can use the new command; UI automation must still confirm the reported process exists before attaching.

Verification

  • pnpm run check: passed all type, lint, link and unit/policy/UI checks (2,167 tests).

  • Focused Electron tests: 2 passed in the final run, covering the real visible launcher, duplicate-profile refusal and bare-Electron rejection.

  • Actual pnpm dev --isolated --cached-only: built, opened and verified the real launcher; the verification app and its disposable profile were cleaned up.

  • An earlier command-level check exposed a DOM-ready/native-show race. The final implementation waits for the native show event, and the actual command plus both Electron regressions passed afterward.

  • Final documentation links and git diff --check: passed. Full macOS Application verification is required before merge. No live gameplay claim.

  • I kept this pull request focused.

  • I ran the relevant checks.

  • I did not add game binaries, credentials, diagnostics, or private traffic.

  • I updated documentation when behavior or an invariant changed.

@Mat4m0
Mat4m0 merged commit 13c82c0 into main Sep 12, 2026
11 checks passed
@Mat4m0
Mat4m0 deleted the fix/verified-development-launch branch September 12, 2026 19:25
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