Files
Chris Tate 1c1fba0c0f fix(macos): place fresh windows correctly (#369)
* fix(macos): place fresh windows correctly

- Separate restored, explicit, and default window placement from persistence policy.
- Honor explicit origins and restore policy across platform seams and both macOS hosts.
- Add placement coverage, update docs, and remove obsolete example workarounds.

* fix(macos): honor window placement policies

* fix(macos): correct window placement policies

* fix(macos): preserve window placement contracts

* fix(runtime): restore secondary window placement
2026-08-16 19:06:29 -05:00
..
2026-06-24 21:06:24 -05:00

Native SDK native-shell example

This example shows the native-first app shape:

  • Native toolbar, sidebar, title accessory, and statusbar views.
  • Main WebView used as the content workspace.
  • One app.refresh command handled from the native menu, native button, command bridge, and app shortcut.
  • Preview commands that create and close a child WebView from Zig.
  • Manifest command catalog listing from the WebView.
  • App.scene_fn returning the native shell scene at startup.
  • .shell metadata in app.zon that mirrors the runtime view structure.

Run with the system backend:

zig build run -Dplatform=macos -Dweb-engine=system

Run the headless test path:

zig build test -Dplatform=null

Run the macOS automation smoke path from the repository root:

zig build test-native-shell-smoke -Dplatform=macos