Skip to content

Add Windows WSLg and Linux simulator support - #94

Merged
GLinnik21 merged 4 commits into
mainfrom
codex/windows-wsl-simulator
Sep 14, 2026
Merged

GLinnik21 merged 4 commits into
mainfrom
codex/windows-wsl-simulator

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

The desktop simulator had a macOS-specific build path and no reliable Windows entry point, while WSLg could report 60 internal frames even when the Windows compositor presented only a few. This adds a Linux UI-only simulator target, a PowerShell launcher for WSLg, and compositor-aware pacing so Windows presents stay close to the simulator frame rate.

The launcher keeps Cargo artifacts and runtime state on WSL's Linux filesystem, safely handles Windows paths, supports setup/build/run/screenshot/remote commands and optional credential staging, and preserves the existing unavailable-player behavior. macOS keeps its FFmpeg-enabled simulator path; sim-wsl is a compatibility alias for the shared sim-linux target.

Simulator CI now runs only when shared simulator inputs change:

  • Linux release build plus a 1920x1080 Xvfb screenshot smoke test
  • macOS FFmpeg-enabled build plus a native screenshot smoke test
  • Windows PowerShell 5.1 and 7 launcher syntax checks

Validation:

  • Linux/WSLg optimized build and complete 1920x1080 PNG smoke test pass locally
  • PowerShell 5.1 and 7 parsers pass
  • shipping --no-default-features compilation gate passes
  • final Astra critical review reports no blockers
  • interactive WSLg navigation presents near 60 FPS for most motion, with occasional compositor drops still observable; this does not claim TV performance

@GLinnik21
GLinnik21 merged commit 6073ae0 into main Sep 14, 2026
5 checks passed
@GLinnik21
GLinnik21 deleted the codex/windows-wsl-simulator branch September 14, 2026 12:03
GLinnik21 added a commit that referenced this pull request Sep 16, 2026
Merges #92 (trailer playback from detail), #89 (sequential media GETs
reuse the HTTP/1.1 demux socket), #94 (Windows WSLg/Linux simulator
support), the landing-page site/ tree and other unrelated origin/main
work into this branch's own commit (13316a8, "fix: scrub bare host=
key/value hostnames from logs"), resolving each conflicted file by
preserving both sides' intent:

- rust-modules/src/player/ffi.rs, mod.rs, pump.rs, threads.rs,
  webos.rs, src/starfish.c, rust-modules/src/app/playback.rs: kept
  both branches' independent additions (resolved in earlier sessions
  on this branch).
- rust-modules/src/player/shared.rs: kept both sides' distinct
  `LoadCall` enum members; git's auto-merge had silently produced a
  duplicate enum definition with no conflict markers, caught only by
  compiling.
- rust-modules/src/player/engine.rs: removed a duplicate
  `load_in_flight_tests` module that auto-merge combined from both
  sides without markers.
- rust-modules/src/plex/session.rs: wired `trailer_autoplay` (our
  side) into `CanonicalSessionPreferences`, `split_public()` and
  `join_canonical()` (origin/main's refactor of the same struct),
  which the auto-merge had left half-connected.
- rust-modules/src/screens/registry.rs: recombined the
  `SCREEN_SHAPES_PIN` changelog (already merged cleanly as text) and
  bumped the pin constant to the merged tree's real hash
  (0xb462_145d_9477_05de -> 0x0e66_311c_e4f1_0769), documenting the
  bump as the union of independent changes rather than one feature.

Two more fixes were required for the merged tree to pass verification
at all, both confirmed to be pre-existing defects already present on
origin/main's own fetched tip (227d981) rather than anything this
merge produced:
- ci/check-deps.sh: restored the missing closing brace on
  `strip_strings_and_comments()` (a bash syntax error on
  origin/main's tip that broke `make check`).
- ci/allow/sibling-migration.txt: replaced literal, unresolved
  stash-conflict markers baked into origin/main's own committed
  content with this branch's already-clean, closed-out version (count
  0, matching a dangling repair commit b58db338 that fixed the same
  file identically but was never merged into origin/main).

One further fallout fix, found only by the fourth verification
command and unrelated to origin/main (the file does not exist there
at all): rust-modules/src/webos/jail_repair.rs's `expect(dead_code)`
condition on `Failure::Timeout` incorrectly required `devtriggers` to
be off; hostsim's `call_hbc` stub never constructs that variant
outside tests regardless of `devtriggers`, so `cargo check --features
hostsim` (as opposed to `cargo test`, which compiles the test module
that uses it) failed. Narrowed the condition to `hostsim` + `not
test`.

Verification, all green:
- make check: full host suite + make lint + ci/check-deps.sh + all
  package/dependency gates pass (exit 0).
- CARGO_INCREMENTAL=0 cargo +nightly check --no-default-features:
  passes.
- cargo +nightly check --features hostsim: passes (after the
  jail_repair.rs fix above).
- make (ARM cross-build, FLAVOR=debug): passes, produces pkg/plxnative
  and pkg/plxnative-storage.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01W3rkPgGB7xpjGgcPbfakaF
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