Repository navigation
test(desktop): replace mocked residency coverage with NSH runtime tests - #6770
Merged
Merged
Conversation
Remove the hand-written signal, lifecycle, window, tray and module-loader environment. Exercise close/reopen, owner disposal, Bootstrap ownership and Quit through real NSH execution, preserving the existing native regression tests. Generated-by: Maka
This was referenced Nov 11, 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
Replace the mocked desktop-residency suite with three behavior tests using the existing NSH headless runtime, real QuickJS/reactivity, product modules, and native menu-event dispatch. Remove the separate implementations of signals, effects, cleanup, windows, tray callbacks, and module loading.
Cover close/hide/reopen with an edited Unicode draft, event processing while hidden, callback cleanup and remount, locale/icon updates, platform guards, Quit dispatch, and actual Bootstrap ownership without a root UI. Existing native tray-loss, delayed-hide, Quit, and terminal-isolation coverage remains unchanged. No production behavior changes.
Refs #6723.
Verification
cargo test --locked -p maka-workbench --lib desktop_residency_tests -- --nocapture: 3 passed.git diff --check: passed.Coverage boundary
These tests exercise the NSH desktop command/event boundary. Session and work markers belong to the fixture; they do not establish Agent/provider execution, real OS tray behavior, or final process exit. Those native boundaries remain covered by the retained platform tests.
AI use
Tool(s) and scope: Maka authored the test replacement and verification. OpenAI Codex reviewed and independently verified the focused runtime tests and CI routing.
Checklist
Does this PR entail a change in behavior?