Repository navigation
feat(zgx): add rake-zgx backend (phase 1) - #118
Merged
Merged
Conversation
Document the renderer-neutral host attachment and guarded close hooks so non-GPUI window backends can implement the router lifecycle directly. Accept blocking 1.6 or later so zgx-desktop 0.1.3's exact Linux-only 1.6.2 pin can resolve in the isolated zgx lockfile; the main lockfile still selects 1.7.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add the phase-one rake-zgx host with an application builder, zgx route mount contract, retained keyed route presentation, WindowHost wiring and an application-owned local executor pumped by open zgx windows. Keep the crate outside the main workspace so zgx-taffy and wgpu 29 do not join the GPUI workspace resolution. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Demonstrate one zgx-hosted route with managed HTTP work, diagnostics, typed storage and local-control commands, including a control-driven fetch for automated smoke verification. Move the spike design notes into the phase-one backend documentation and record the remaining adapter gaps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reject GPUI crates in the rake-zgx and example dependency graphs and build, lint and test the standalone zgx workspace in the macOS native job. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Record that phase one synchronizes attach and close visibility while zgx 0.1.3 does not expose continuous minimize or occlusion changes to the backend. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1bye
marked this pull request as ready for review
November 29, 2026 20:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
crates/rake-zgx, an experimental phase-one zgx desktop backend using onlyrake-coreplus zgx/zgx-desktop, with no GPUI,rake-gpuiorrake-appdependency.App/AppBuilderhost API and the narrowZgxRouteMountcontract, with keyed retained route presentation, nativeWindowHostopen/close/activate wiring, guarded close/quit forwarding and headless host/router tests.examples/zgx-hello: one window and route, managed HEAD request, diagnostics count, typed last-status storage and local-control commands.rake-coreAPIs:Router::set_host_attachedandRouter::request_host_close. No GPUI behavior changed.docs/backends/zgx.md, and add dependency isolation plus macOS build/clippy/test CI coverage.Design decisions
PreparedPagedata; synchronous zgx mount construction consumes it and returns a declarative zgxView; the backend wraps that view in a disposable retained mount handle for router rollback, history retention and disposal.WindowHost. User close requests useRouter::request_host_close; final-window close starts guarded application quit, and physical close is deferred until the router approves it or quit reachesQuitPhase::Ready.rake-zgxandexamples/zgx-helloform a standalone Cargo workspace rooted atcrates/rake-zgxwithcrates/rake-zgx/Cargo.lock. They are excluded from the main workspace so zgx-taffy 0.9 and wgpu 29 do not join the main resolution beside the existing wgpu 28/30 and taffy 0.15 lines. zgx-desktop 0.1.3 has a Linux-only exactblocking = 1.6.2pin that Cargo resolves even on macOS, sorake-corenow accepts blocking 1.6 or later; the main lockfile still selects 1.7.0 while the zgx lockfile selects 1.6.2.Verified
cargo run -p rake-app-cli --locked -- format— pass.cargo run -p rake-app-cli --locked -- format --check— pass.cargo run -p rake-app-cli --locked -- lint— pass (860 Rust files; 0 diagnostics).cargo fmt --manifest-path crates/rake-zgx/Cargo.toml --all -- --check— pass.cargo build --manifest-path crates/rake-zgx/Cargo.toml -p rake-zgx -p rake-zgx-hello --locked— pass.cargo clippy --manifest-path crates/rake-zgx/Cargo.toml -p rake-zgx -p rake-zgx-hello --all-targets --locked -- -D warnings— pass.cargo test --manifest-path crates/rake-zgx/Cargo.toml -p rake-zgx --locked— pass (3 tests).bash scripts/check-core-dependencies.sh— pass.bash scripts/check-zgx-dependencies.sh— pass.python3 scripts/check-example-lints.py— pass.cargo check -p rake-core --target wasm32-unknown-unknown --locked— pass.cargo clippy --workspace --all-targets --locked -- -D warnings— pass.cargo clippy -p rake-app --features native-components --all-targets --locked -- -D warnings— pass.cargo clippy -p rake-native --features native-tests --all-targets --locked -- -D warnings— pass.cargo test -p rake-native --doc --locked— pass.cargo test -p rake-native --features native-tests --test appkit --locked— pass.cargo test --workspace --locked --no-fail-fast— pass.RAKE_DEV_CONTROL=1:tabs listshowed the committedstatusroute;commands run spike.last-status --args nullreturnednull;commands run spike.fetch --args nullcommitted;spike.last-statusthen returned200;tasks listshowedFetch HTTP statusasCompleted. The control-driven fetch runs the same managed task and store write as the window button, avoiding synthetic OS input in the headless automation environment.Gaps
Phase 1 is not GPUI feature parity. Remaining work includes zgx
view!lowering, theme/widget parity, menus and shortcuts, inspection/devtools, development reload reattachment, window-state persistence, continuous minimize/occlusion visibility, and zgx-dom/web. zgx 0.1.3 does not expose a reactive minimize/occlusion signal, so this phase synchronizes attach/close visibility only. CI builds and tests the backend but cannot open a real window headlessly.🤖 Generated with Claude Code