Repository navigation
Tags
Tags
core: Apply nsh.json window defaults without the application capabili… …ty (#3591) ## Description An app that declares `capabilities` without `"application": true` lost the `window` defaults of its nsh.json (title, size and the other launch attributes). The core applied them as the app's own `SetAttributes` on the main window, so the command filter dropped them like any main-window command from a sandboxed app. The launch defaults belong to the host that reads nsh.json before the app runs, not to the app. The core-handled window commands (a window's attributes, a placement, opening one, the quit mode) are now checked where the core applies them: - nsh.json's launch attributes reach the main window without `application`. - The app's own `SetAttributes` and `SetPlacement` on the main window still need `application`, with the same denial message as before. The quit mode was already checked there. - Opening a window is still granted by `capabilities.windows`, and a window the app opened still takes its attributes as before. - The content fitting the core sends itself for `sizeToContent` (`SetContentSize`) passes the filter: it is the core's follow-up, not something the app sends. The sandbox page says so in English and Chinese. ## How to Test - `crates/nsh-core/src/core/tests.rs`: `launch_window_defaults_apply_without_the_application_capability` launches an app whose capabilities leave out `application` and checks that the nsh.json window attributes reach the main window, while the app's own set of the main window is still denied, and applied once `application` is granted. - Ran on macOS: `cargo test -p nsh-core -p nsh-base -p nsh-testing` (all pass), `cargo clippy -D warnings` on those crates, nightly fmt on the touched files. ## Checklist - [x] I have read the [CONTRIBUTING](../CONTRIBUTING.md) document and followed the guidelines. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Yerly Tech <292541160+yerlytech@users.noreply.github.com>
macos: Name the image part key type to satisfy Clippy (#3273) Fixes the `clippy::type_complexity` error on release/0.7 (macOS check in the Rust application workflow) before tagging v0.7.1. No behaviour change. The Windows GPUI failure (`tests::windows`, "the field reads \"\"") also fails intermittently on main (run 45542796897), so it is not caused by the 0.7.1 cherry-picks. 🤖 Generated with [Claude Code](https://claude.com/claude-code) 🤖 [Noop](https://huacnlee.github.io/noop) (release-manager) · AI agent acting for @huacnlee Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
release: Prepare version 0.7.0 (#3155) Bumps every NSH crate from 0.6.0 to 0.7.0 (root workspace and `crates/gpui`), refreshes the three lockfiles that pin them (`Cargo.lock`, `crates/gpui/Cargo.lock`, `examples/embed-gpui/Cargo.lock`) with `cargo update -w --offline`, and extends the "no release recorded yet" note in `docs/dev/compatibility.md` to 0.7.0, the same as the 0.6.0 preparation in #2311. `examples/embed-gpui/Cargo.lock` also picks up `jiff-tzdb`, which main's lockfile was missing. The tag and GitHub Release follow once this is merged. 🤖 Generated with [Claude Code](https://claude.com/claude-code) 🤖 [Noop](https://huacnlee.github.io/noop) (lead) · AI agent acting for @huacnlee Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
release: Prepare version 0.6.1 (#2617) This patch backports selected changes onto the v0.6.0 release line. It includes the requested Windows backdrop API (#2471). The SVG fix follows #2615: `svg` stays an optional feature, and a build that uses SVG files through `asset!`/`assets!` without it now fails with an error telling you to enable `svg` on `nsh-platform-*` (0.6.0 compiled silently and dropped the images). This supersedes #2609. After merging, tag `v0.6.1` on `release/0.6` to run the release and crates.io workflows. ## Fixes included - android: Keep scroll calls from reaching native code after the view is destroyed (#2449) - android: Skip scroll callbacks after the view is destroyed (#2442) - android: Unbox the dialog command before moving its fields out (#2498) - list: Read a keyed row at its new index whichever memo runs first (#2370) - core: Keep a text block's only raw text run without a node (#2366) - core: Refuse a Windows path as a URL to open (#2388) - macos: Avoid retaining CoreGraphics frame cache across screenshots (#2577) - macos: Keep a hidden window hidden when it is asked for full screen (#2487) - windows: Keep a hidden window hidden when its mode or bounds are set (#2419) - windows: Keep the app's size while its main window is minimized (#2428) - ios: Keep the keyboard up when UIKit reports no next focused view (#2486) - ios: Preserve the latest content height when narrowing a scroll view (#2491) - video: Act on `paused` only when it changes on Apple and Android (#2495) - web: Act on a video's `paused` only when it changes (#2515) - windows: Leave an ended video ended when another prop changes (#2427) - carousel: Clear the indicator target when its carousel is disposed (#2527) - ios: Keep a stack's safe area when a transformed container lays it out (#2601) - android: Keep header and tab bar items clear of a side navigation bar (#2608) - android: Keep a scroll view's edge pull when nothing around takes the drag (#2584) - android: Keep the default system bars in contrast with the app's appearance (#2602) - data_table: Keep the horizontal scroll bar between the fixed columns (#2430) - resizable: Stop a drag where the panel after the handle reaches its maxSize (#2415) - android: Keep a page's headerRight off the screen edge in RTL (#2534) - android: Keep a TabBar badge's count in its order in RTL (#2561) - core: Make svg optional again and fail the build when SVG assets need it (#2615) - core: Prevent a disposed memo from reading or overwriting another reactive node (#2402) - Linux: Preserve paused and ended video when unrelated properties change (#2443) - iOS: Link AuthenticationServices for embedded apps (#2374) - CLI: Compile packaged Rust apps for their declared minimum Apple OS (#2368) - macOS: Restore compilation of the text tests (#2412) - Windows 11: Draw a system blur behind a view in a transparent window (#2471). - Report missing native features, including updater errors and one-time rendering warnings (#2613). - Cancel pending composite animation work when its node is stopped or replaced (#2507, backported from f775ed1 while the upstream PR is open). Changes touch shared animation scheduling, with regression tests for delays, sibling independence and velocity handoff. The Android 0.6 decoder already drains missing component properties (#2560). The broader animation, navigation, focus and keyboard backports (#2505, #2475, #2392, #2579, #2605 and #2607) are deferred. 🤖 [Noop](https://huacnlee.github.io/noop) (release-manager) · AI agent acting for @huacnlee --------- Co-authored-by: daoleno <daodaoonline@gmail.com> Co-authored-by: Floyd Wang <codelife721@gmail.com> Co-authored-by: skblue <xiaozh620@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Oscar <oms1005@gmail.com> Co-authored-by: cosformula <cosformula@gmail.com>
PreviousNext