Skip to content

test(desktop): trim cursor implementation snapshots - #2760

Merged
jackwener merged 1 commit into
mainfrom
codex/trim-cursor-implementation-tests
Aug 11, 2026
Merged

jackwener merged 1 commit into
mainfrom
codex/trim-cursor-implementation-tests

Conversation

@jackwener

Copy link
Copy Markdown
Member

Summary

  • remove eight cursor tests that pin recovered constants, field counts, score internals, paint geometry, and palette snapshots
  • retain path convergence, viewport containment, interruption, cancellation, deadlines, and completion behavior
  • remove 235 lines including now-unused test-only imports

Validation

  • semantic inventory: exactly eight intended titles removed
  • retained behavior cases reviewed
  • npx biome check apps/desktop/src/main/__tests__/cursor-engine.test.ts
  • git diff --check

Full test suites were intentionally left to CI.

@jackwener
jackwener merged commit b63a863 into main Aug 11, 2026
3 of 5 checks passed
@jackwener
jackwener deleted the codex/trim-cursor-implementation-tests branch August 11, 2026 17:51
M4n5ter added a commit that referenced this pull request Nov 23, 2026
Synchronize vendored third-party/nsh with upstream longbridge/nsh main
through d01cd3cce6645391c65a379d6230c2d2e651d55f (371 commits past 0.6.1),
migrate Maka consumers to upstream's Window Model v2 and native TitleBar,
and fix invisible IME preedit in the Windows RichEditor composer.

Key changes:
- Upstream NSH sync (2f51d861..d01cd3cce): Window Model v2 (#2307), native
  TitleBar (#2937), RichEditor TextGeometry (#2650/#2651) and narrow sink
  fixes (#2497/#2728), Windows custom font resolution (#2760), macOS
  server-side drag regions (#2663), and clipboard write reporting (#2753).
- Upstream best practices in Maka UI & shells:
  - Declare explicit <Window id="main"> in Bootstrap.tsx and
    ComputerPermissionSetupEntry.tsx with hidden titleBar and closeOnPress
    set upfront, and subscribe to Application.on('reopen') in nativeDesktop.ts.
  - Adopt upstream <TitleBar> from nsh/base in ComputerPermissionSetup.tsx
    and ui.tsx (SidebarTitleRow) instead of manual control-inset/drag logic.
  - Support EmbeddedHost in nsh-engine / nsh-js / desktop AppViews so
    embedded hosts (Linux GTK shell, macOS permission setup, Windows test
    hosts) bind <Window id="main"> to ROOT_ID while preserving secondary
    <Window> scenes.
  - Adapt Windows desktop-shell (direct2d.rs) and workbench tests to
    Window Model v2 and Headless viewport/title_bar initialization.
- Windows Composer IME preedit fix (nsh-platform-windows):
  - Enable IMF_IMEALWAYSSENDNOTIFY via EM_SETLANGOPTIONS on windowless
    RichEdit editors so msftedit.dll emits EN_CHANGE/EN_SELCHANGE during
    undetermined IME composition instead of suppressing them until commit.
  - Target the active AppWindow HWND (shown_in / hwnd_showing) in
    tx_imm_get_context, tx_imm_release_context, tx_get_window, update_ime,
    and notify_composition rather than the hidden host HWND.
  - Add regression tests for IMF_IMEALWAYSSENDNOTIFY, tx_get_window
    shown_in tracking, and EmbeddedHost root/secondary windows.
- Provenance and notices: update third-party/nsh/{upstream.json,SOURCE.md},
  LICENSE, and regenerate products/maka/cli/{DEPENDENCIES.rust.tsv,
  THIRD_PARTY_NOTICES.txt,notices.json}.

Generated-by: Maka (Gemini)
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.

1 participant