Skip to content

fix(nsh): restore Linux and macOS backend compilation - #6709

Closed
me2seeks wants to merge 1 commit into
rust-previewfrom
fix/linux-app-window-ci
Closed

me2seeks wants to merge 1 commit into
rust-previewfrom
fix/linux-app-window-ci

Conversation

@me2seeks

@me2seeks me2seeks commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Repair Linux and macOS compilation regressions already present on rust-preview at cb2cc8958, independently of #6695.

The baseline CI run fails with:

  • Linux E0616 in scroll.rs: sibling code reads private AppWindow.attributes. Both keyboard paths now share the window module's narrow Escape query without exposing the attributes or changing close policy.
  • macOS E0425 in text.rs: chrome::track_menu is missing. Extract the existing popup tracking path for the selected-text Copy menu; application Menu.popup alone still emits its completion event.
  • macOS E0308 in terminal.rs: native hit testing receives a surface instead of its root view. Pass the root required by the existing interface.

These failures block root-build, packaging, linux-nsh and native-macos. This PR contains only their native-backend fixes, not Desktop residency changes.

Verification

  • Stable rustfmt checks of all four changed files: passed.
  • git diff --check: passed.
  • Compared the baseline failure logs with fix(desktop): retain the Rust preview client after window close #6695: the same three compiler errors occur at the same call sites.
  • Native Linux/macOS compilation and behavior suites are not yet verified. This Windows checkout and the available Linux machine lack GTK4 development dependencies; no off-target empty-crate build is presented as native validation. Hosted CI will exercise the real consumers.
  • Existing native compilation is the regression gate. No source-string assertions, extra timeouts, skipped checks or redundant unit tests were added.

Pending verification

  • Hosted native Linux and macOS consumers pass.
  • Root build, packaging and unified test pass on this head.

AI use

  • No generative tool made a substantive contribution
  • Generative tooling made a substantive contribution

Tool(s) and scope: Maka diagnosed the baseline failures, prepared the implementation and checked formatting. Material commits carry Generated-by: Maka; retain it when squashing. The human contributor remains responsible for review and provenance.

Checklist

  • Tests cover the change and fail without it (existing native compile consumers).
  • Format, typecheck and the affected suites pass locally

Does this PR entail a change in behavior?

  • Yes — described under Summary above
  • No — restore compilation while preserving the existing keyboard, menu and hit-test behavior.

Keep Linux's Escape reservation query inside the window module so both
keyboard paths share the policy without exposing window attributes.

Share AppKit menu tracking with selected text's Copy menu while keeping
Menu.popup completion scoped to application menus. Pass the terminal
root view to native hit testing instead of its surface.

The upstream baseline fails these platform compilations independently
of PR #6695. Native build and test validation is delegated to the main
session; only stable rustfmt and git diff --check ran here.

Generated-by: Maka
@me2seeks me2seeks self-assigned this Nov 9, 2026
@me2seeks
me2seeks marked this pull request as ready for review November 9, 2026 02:22
@M4n5ter

M4n5ter commented Nov 9, 2026

Copy link
Copy Markdown
Member

Closing as superseded by #6705, which is a strict superset of this PR on rust-preview:

#6705 also includes the companion runtime fixes needed for the #6708 baseline (nsh-platform-tui same-frame error diagnostics, nsh-core displays_none dirty::VIEW marking, nsh-core same-batch pointer-focused hint suppression, and native-macos desktop/surface fixes) and is currently finishing final CI checks before merging into rust-preview. Thanks!

Automated message generated by Antigravity.

@M4n5ter M4n5ter closed this Nov 9, 2026
M4n5ter added a commit that referenced this pull request Nov 9, 2026
… editor focus (#6705)

Restore `rust-preview` CI compilation and cross-platform native desktop/terminal behavior:

- Expose `AppWindow.attributes` in `nsh-platform-linux`, restore `chrome::track_menu` and `input::native_at(&surface.root, ...)` in `nsh-platform-macos`, and report `Message::Error` inline during `AppView::draw_scene` in `nsh-platform-tui`.
- Mark `dirty::VIEW` across `LayoutTree::displays_none` transitions and suppress same-batch pointer-press focus hints via `Overlays.pressed` in `nsh-core`.
- Fall back from `Ctrl` to `Cmd` in `nsh-platform-macos` keymap matching when `ctrl_for_command` is enabled, hold the native focus fence across unsettled `Blur` events, scope hidden-sink `When::Always` shortcuts via `ElementRef::on_key_with`, and bind open non-searchable `Listbox` keys with `When::Always` in `nsh-base`.
- Isolate per-`Surface` `TerminalClipboard` and handle native `NSTextView` shortcuts on macOS `TerminalSurface`, restore the unmarked buffer via `terminal_cancel_input` before `insertText:` in `terminal_compose` (and arm the focus fence when `!active`), gate `focus_generation` read-only transitions on focused inputs in `nsh-platform-macos` and `nsh-platform-windows`, align `pixels/tests.rs` on macOS, and strip trailing separators on directory `file:` URIs in `maka-workbench`.
- Fetch `cargo-nextest`, `cargo-deny`, and `denoland/rusty_v8` release assets via authenticated `api.github.com` with `sha256` verification and workspace-relative `target/CACHEDIR.TAG`.

Refs #6698, #6706, #6708, #6709

Generated-by: Antigravity
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.

2 participants