Skip to content

Split Rake's portable core from its GPUI adapter - #111

Open
1bye wants to merge 6 commits into
mainfrom
t3/rake-core-split
Open

1bye wants to merge 6 commits into
mainfrom
t3/rake-core-split

Conversation

@1bye

@1bye 1bye commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Move portable routing, services, tasks, storage, commands and local control into a new rake-core crate. Windows, views, inspection capture, menus, surfaces and OS integrations move to a new rake-gpui crate. rake-app stays the facade: every existing rake::... path, feature name and macro expansion (including renamed dependencies) is preserved, and the workspace examples and facade consumer tests compile against it.
  • Add a framework-agnostic RouteMount / MountedRoute contract. The router owns entry identity, history, rollback and exactly-once disposal; the UI integration owns the concrete view. The GPUI route views (RouteViews, Page, LoadedPage, in_window) now sit on top of this contract with unchanged signatures.
  • Move GPUI window-context registration and reload pausing out of the router into the GPUI adapter, through a host binding. Add WindowHost::supports_new_windows, so a single-window host can still guard close.
  • Rebase on the alpha.7 workspace versions, retain 0.1.0 for examples and test packages, and refresh the standalone Inspector lockfile.
  • CI rejects GPUI in the native and Wasm rake-core dependency trees and checks the Wasm crash example's dependency scope for native-only errno.
  • Keep native-only facade dev-dependencies out of Wasm. Isolate the frame-recording fixture from other test apps and lay out the AppKit toolbar before checking its accessibility tree.
  • Stabilize the flaky parallel CLI browser fixture (browser_opening_honors_browser_and_cdp_opens_only_the_companion).
  • Keep docs/future/zgx-spike.md as the design record for a future zgx integration. The zgx spike itself lives on a separate branch.

Doc-hidden integration hooks in rake-core are internal and unstable; they'll be tightened once a second integration exists.

Test plan

  • cargo check --workspace --locked on each of the six rebased commits
  • rake format, rake lint, rake lint --deep, the spacing check, and the deep-lint UI and example checks
  • Portable Rust and Wasm checks, including the dependency guard, the renamed facade, and the Wasm host fixture
  • Components on macOS and Ubuntu x86_64, plus desktop Clippy, the X11 frame and shortcut smoke tests, and feature tests on Ubuntu x86_64
  • Targeted reruns for four CLI tests that failed during the emulated Ubuntu workspace run. The formatter and socket tests passed in an unprivileged Git checkout. The permission test passed on native ARM Linux with Rust 1.98.0.
  • Native workspace and feature tests, including exact devtools inspection and AppKit test commands
  • Web bundling, Fieldnotes loading, and the real Wasm App crash fixture with Node 22 and Chrome
  • Windows feature Clippy via x86_64-pc-windows-msvc requires MSVC C headers unavailable on the local host

Generated with Devin

@1bye
1bye force-pushed the t3/rake-core-split branch from e2ef4d8 to 68f9887 Compare November 23, 2026 20:58
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