Skip to content

chore(nsh): sync vendored NSH through 6cf51dcf8 (0.7.2) - #7338

Closed
me2seeks wants to merge 1 commit into
mainfrom
chore/sync-nsh-6cf51dcf8
Closed

me2seeks wants to merge 1 commit into
mainfrom
chore/sync-nsh-6cf51dcf8

Conversation

@me2seeks

Copy link
Copy Markdown
Contributor

Summary

  • Three-way sync vendored third-party/nsh to upstream longbridge/nsh 6cf51dcf8890debafe0af803512718d4ce4ded8e (NSH 0.7.2).
  • Pulls in upstreamed iOS fixes and APIs so local vendored patches are dropped cleanly:
    • longbridge/nsh#3354 (AppOptions::host) and #3357 (HostCall::sender() / HostSender)
    • longbridge/nsh#3420 (nsh-platform-ios/src/touch.rs iOS build fix)
    • longbridge/nsh#3433 (iOS standalone dark-mode rotation backdrop fix)
    • longbridge/nsh#3308 and upstream NSH 0.7.1 / 0.7.2 improvements (nsh-gpu, Apple ellipsis, macOS multiline lineHeight, web runtime trim)
  • Migrate maka-ios-shell to upstream AppOptions::host and HostCall::sender() / HostSender, cleanly tearing down stale app subscriptions on reload and preventing stale-caller registration races under the state lock.
  • Preserve all Maka-specific third-party/nsh patches (SOURCE.md: Markdown TOC / heading alignment, List scroll delta, theme presets, macOS window_press, surface.rs chunk_loader, AWS-LC / Host crypto provider, foreground FILTER blur in TransitionProps::ALL, scoped keymap gives_way()).
  • Update provenance (third-party/nsh/upstream.json SHA-256 verified across all 3,506 raw upstream blobs, SOURCE.md), lockfiles, DEPENDENCIES.rust.tsv, THIRD_PARTY_NOTICES.txt, and notices.json.

Verification

  • CARGO=mbx node scripts/ci.mjs check contracts / check ios (42 Rust tests + aarch64-apple-ios-sim check) / check notices / check licenses / ASF headers / fmt --check
  • CARGO=mbx mbx test --manifest-path third-party/nsh/Cargo.toml -p nsh-core (keymap 19/19, effects 18/18, transition 32/32 incl. transition_all_interpolates_foreground_blur)
  • CARGO=mbx mbx test -p nsh-platform-apple -p nsh-platform-macos --lib (286 passed, 3 ignored) & nsh-platform-ios simulator --tests check
  • CARGO=mbx mbx clippy -p maka-ios-shell --no-deps --all-targets -- -D warnings
  • Workbench/terminal behavioral suite (170 passed, 1 ignored), JS 272 tests, RichEditor typing 54 tests, TOC model tests (3/3)
  • git diff --check origin/main...HEAD
  • Not tested locally: unlocked macOS AppKit WINDOW_LAYOUT / INPUT_FOCUS / draw_on_show (machine was screen-locked), Windows build/tests, Linux GTK native events, and physical iPhone rotation visual verification (covered by CI matrix).

@github-actions github-actions Bot added the effort/XXL Over 2500 readable lines label Nov 26, 2026
Import nsh-gpu and keep GPUI out of the maintained tree while retaining
its upstream inventory. Preserve Maka's terminal, embedding, input,
and source-aware rendering extensions.

Adopt upstream caller-scoped Host events and AppOptions::host for iOS.
Keep AWS-LC WebSocket TLS and close live subscriptions when the app is
replaced. Bring in upstream's standalone iOS backdrop fix for dark-mode
rotation. Migrate TextView image consumers to the upstream context API.

Generated-by: Maka
@me2seeks
me2seeks force-pushed the chore/sync-nsh-6cf51dcf8 branch from f6c249d to 1865c34 Compare November 27, 2026 02:02
@me2seeks
me2seeks requested a review from M4n5ter November 27, 2026 03:58
@M4n5ter

M4n5ter commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Thanks for putting this together! #7325 already landed on main and synced third-party/nsh through a901baa2e (9 upstream commits ahead of 6cf51dcf8, including #3354, #3357, #3420, #3433, and #3308), so the vendored NSH sync portion here is now superseded.

That said, a few fixes in this PR aren't on main yet and would be great to carry over in a small follow-up PR on top of main:

  • products/maka/ios-shell/src/bridge.rs: tearing down stale subscriptions on app reload, guarding against the late-registration race under the state lock (register_subscription + the two regression tests), and the sender.is_closed() fast path in MutationProgress::emit.
  • scripts/ci/suites.mjs: adding nsh-gpu to the CI suite.
  • The Keymap::gives_way window/scope/phase fix (nsh-core / nsh-platform-linux) and FrameTarget::clear_layer() in nsh-engine/src/frames.rs as vendored patches for now (we can drop them once upstream fixes them).

@me2seeks

me2seeks commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor Author

Superseded by #7325 for the vendored NSH sync; carried the remaining iOS bridge reload/subscription-race, nsh-gpu CI suite, and targeted NSH fixes over in #7352. Thanks @M4n5ter!

@me2seeks me2seeks closed this Nov 27, 2026
@me2seeks
me2seeks deleted the chore/sync-nsh-6cf51dcf8 branch November 27, 2026 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/XXL Over 2500 readable lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants