Repository navigation
chore(nsh): sync upstream through a901baa2e (0.7.2) - #7325
Merged
Merged
Conversation
Sync vendored third-party/nsh from 3f8ecd8b3 (0.7.0) through a901baa2e (0.7.2 + post-0.7.2 fixes): - Remove superseded local patches now provided upstream and migrate consumers to upstream canonical APIs: - nsh-engine / ios-shell: HostCall::sender() -> HostSender (#3357) - nsh-ios-host / nsh-platform-ios: AppOptions::host (#3354) and touch.rs gesture cancel fix (#3420) - TextView renderImage(image, context) & terminal images (#3359, #3260, #3372, #3290) - nsh-bundler / nsh-cli / ui-build: default unresolved-import errors (#3425) - nsh-core: list display: none retention (#3193) and touch-selection (#3380) - nsh-platform-macos: file_drop (#3385) and mount (#3386) cleanups - nsh-platform-windows: richedit.rs window-specific IME association (#3411) - Preserve upstream RichEditor onReadonlyInput behavior (#3371) with opt-in readonly_sink for Maka's embedded composer. - Fix a Windows RichEdit caret-alignment regression introduced with follow-on-draw (#3411): translate the cached caret when the client rectangle shifts (with a regression unit test). - Update third-party/nsh provenance (upstream.json, SOURCE.md), Cargo.lock files, LICENSE, and CLI dependency notices. Generated-by: Maka (Gemini)
M4n5ter
force-pushed
the
chore/sync-nsh-upstream
branch
from
November 27, 2026 04:54
f3c7dc0 to
afc9793
Compare
Joob1n
approved these changes
Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Synchronize
third-party/nshwith upstreamlongbridge/nshfrom3f8ecd8b3(0.7.0) througha901baa2e(0.7.2 + post-0.7.2 fixes), remove local patches now implemented upstream, migrate Maka consumers to upstream canonical APIs, and fix a Windows RichEdit caret-alignment regression surfaced during native desktop verification.Upstreamed Local Patches Removed & Consumers Migrated
#3357): Removed Maka's localHostChannel::send_to_caller,caller_detached, andMessage::CallerHostEventinnsh-engine; migratedproducts/maka/ios-shell/src/bridge.rsto upstreamHostCall::sender() -> HostSender(HostSender::send,HostSender::closed()).AppOptions::host& touch gesture fix (#3354,#3420): Adopted upstreamAppOptions::host, restoringnsh-ios-hostto upstream and keeping onlyAppOptions::runtimeinnsh-platform-ios, and removed the localtouch.rspatch now upstreamed in#3420.TextViewrenderImage& terminal images (#3359,#3260,#3372,#3290): Adopted upstreamInContext<Image, TextViewImageContext>two-argumentrenderImage(image, context), terminal block images,loadable()/alt_text()fallback, andmerge_styles; migratedMarkdownBody.tsx,BotReply.tsx, andspec/components.tsx.#3425): Removed the localfail_on_unresolved_importsknob innsh-bundler,nsh-cli, andtools/ui-buildnow that upstream errors on unresolved imports by default.#3380,#3411): Removed superseded local patches innsh-core/src/core/components.rsandnsh-platform-windows/src/richedit.rs.display: noneretention (#3193) & misc cleanups: Removed unreachable locallist_hiddenbranches innsh-core, duplicateserve_filesinnsh-cli/src/dev.rs, deadread_urisinnsh-platform-macos/src/file_drop.rs(#3385), redundantsight::moved()innsh-platform-macos/src/mount.rs(#3386), and duplicate.auto_focus(...)inRichEditor.RichEditoronReadonlyInput(#3371): Preserved upstream default behavior (keeping the hidden sink editable soonReadonlyInputworks) and added opt-inreadonly_sinkused byproducts/maka/workbench/src/composer_input.rsso embedded hosts withhold IME admission for read-only composers.#3411follows the view's window position duringdraw(), updating RichEdit's client rectangle on layout shifts. When a focused field shifts by less than its own height, RichEdit does not re-issueTxSetCaretPosonTXTBIT_CLIENTRECTCHANGEorTxDrawD2D, leaving the cached caret offset by the shift. Translate the cached caret inEditor::shift_caretwhenever the client rectangle moves (covered by a newa_small_move_keeps_the_caret_aligned_in_the_fieldunit test).LICENSE,third-party/nsh/{upstream.json,SOURCE.md}, lockfiles, and regeneratedproducts/maka/cli/{DEPENDENCIES.rust.tsv,THIRD_PARTY_NOTICES.txt,notices.json}.Verification
just fmt-check,just licenses,just migrations,just i18n,just typecheck,just test-jsall pass.cargo check --workspace --tests,cargo check -p maka-ios-shell --target aarch64-apple-ios-sim;nsh-core,nsh-base,nsh-js --all-features,nsh-engine --all-features,nsh-bundler,nsh-platform-tui,nsh-platform-macos(lib + native AppKit tests),nsh-testing --features bundle;maka-workbench,maka-desktop-shell,maka-terminal-shell --lib,maka-ios-shell, andmaka-cli --features desktop-tests --test native-desktop(22/22 passed).nsh-platform-linux --lib(261 passed, 0 failed),maka-desktop-shell(15 passed, 0 failed),maka-terminal-shell --lib(70 passed, 0 failed).nsh-platform-windows --features terminal --lib(text_input::tests29/29 including the new small-move caret test,richedit::tests+terminal::tests10/10, and full non-headless-DComp suite passing),maka-desktop-shell(31 passed, 0 failed), andmaka-cli --features desktop-tests --test native-desktopcomposer tests (desktop_composer_previews_markdown_and_sends_its_source,desktop_composer_click_and_ime_follow_the_text_after_a_mention,desktop_composer_large_paste_keeps_controls_on_screen, plus TOC/session/room/file-gesture tests) all passing.