Skip to content

Keep build progress and logs across launcher windows - #724

Merged
v0lumehi merged 1 commit into
LNPANDY:mainfrom
thehobbit85:codex/issue-405-build-progress
Nov 5, 2026
Merged

v0lumehi merged 1 commit into
LNPANDY:mainfrom
thehobbit85:codex/issue-405-build-progress

Conversation

@thehobbit85

Copy link
Copy Markdown
Contributor

Fix or feature

  • Fix
  • Feature

What and why

Fixes #405.

Each WindowGroup window created a separate LauncherStores and BuildStore inside RootView. Another or recreated window therefore showed an idle Builds page while an existing child build kept running. Losing the original root also lost its weak output/exit callback receiver.

Keep the existing stores, library, controls and console driver in an app-owned LauncherSession, and pass that session into every root view. Windows now share the active build, progress, log and Stop control for the app's lifetime.

Checked

  • Tests: swift build --package-path frontend and swift test --package-path frontend, 1,070 tests with 27 skipped and zero failures (134 model, 188 core, 748 app tests). The final focused process regression also passes after adding explicit 25% to 50% progress assertions.
  • Qt compatibility: python3 -m unittest discover -s frontend-qt/tests with a standard tool search path, 292 tests passed with 26 skipped. The initial run exposed four unrelated Windows discovery-test failures caused by the host's additional ~/.swiftly/bin/ld64.lld. Excluding that directory from PATH passes the unchanged suite.
  • Test for a fix: BuildSessionTests.testRecreatedWindowKeepsTheRunningBuildItsLogAndStopControl runs a real synthetic Python child, constructs a replacement RootView using the app session, checks retained stage/log and advancing progress, prevents a duplicate build, and stops the same PID from that replacement view. The initial test compilation failed against the old code, which had no injectable shared session.
  • Visual QA: no layout, text or styling changes.
  • Run on a device or Mac: synthetic process test on macOS arm64. No real game build or physical device used. Closing and reopening an actual launcher window was not exercised, and the original report did not establish its triggering action.

Screenshots

None, no visible change.

Scope

  • No engine file (dm/, scripts/, docs/, ref/) is added to the repository.
  • No engine or game-profile change needs an upstream PR.
  • No visible launcher-view change needs screenshots.
  • No keys, game files or data extracted from a game in the change or attachments.

@github-actions github-actions Bot added the launcher The NX2Apple launcher app label Nov 5, 2026
@v0lumehi v0lumehi added this to the v1.2.1 milestone Nov 5, 2026
@v0lumehi v0lumehi added the bug Something isn't working label Nov 5, 2026
@v0lumehi
v0lumehi merged commit 9d823e7 into LNPANDY:main Nov 5, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working launcher The NX2Apple launcher app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

macOS launcher loses build progress and log while its shader compilation continues in the background

2 participants