Repository navigation
test: wait for active session in slash command e2e - #2651
Merged
Merged
Conversation
Astro-Han
marked this pull request as ready for review
August 10, 2026 15:12
Contributor
Author
|
All checks are green. This just fixes a race in the E2E setup and doesn’t change product behavior, so I’m merging it as a low-risk test-only change. |
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)
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
/sidediscovery from racing the first send's asynchronoussetActiveIdVerification
npx biome check apps/desktop/e2e/slash-command-menu.spec.tsnpm --workspace @maka/desktop run build:with-depsslash-command-menu.spec.ts: 4 passedRoot cause
The test continued as soon as the locally armed turn exposed the Stop button. The first-send path sets the active session only after
sessions.sendresolves, while/sideis cataloged only when an active session exists. The test could therefore open the slash menu before the session-owning transcript was ready and wait forever on an option that was omitted from that menu instance.Checklist
Does this PR entail a change in behavior?