Repository navigation
Input hub: typed events, no device reference, no direct-write MCP tools - #2585
Merged
maximilien-noal merged 4 commits intoDec 2, 2026
Merged
Conversation
Restore the input_timer_keys fixture and pin the current behavior that InputEventHub.ReleaseAllKeys delivers a break scan code to the guest before refactoring the input hub.
…se to composition root Direct-write MCP tools bypass InputEventHub by writing BIOS and PS/2 controller state directly. Remove press_key and send_mouse_packet along with the Intel8042Controller and BiosKeyboardBuffer properties on EmulatorMcpServices, and wire pause-time key release directly in Spice86DependencyInjection.
…r through InputEventHub Replace ConcurrentQueue<Action> with typed InputEvent records so every host input action passes through one inspectable pipeline. Remove PostToEmulatorThread and InputEventHub.KeyboardDevice, raise AllKeysReleased for PS2Keyboard to subscribe to, and route UI time multiplier changes through the hub.
|
No change in generated code or listings. Base |
This was referenced Dec 2, 2026
maximilien-noal
merged commit Dec 2, 2026
2d6739b
into
feature/reproducible-run-option
6 checks passed
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
InputEventQueue.cstoInputEventHub.csin its own commit to preserve history.input_timer_keysfixture and addInputEventHubTests.ReleaseAllKeysReachesTheProgramAsABreakCodeto pin break-code delivery onReleaseAllKeys.press_keyandsend_mouse_packet(andEmulatorMcpServices.Intel8042Controller/BiosKeyboardBuffer), moving pause-time key release directly intoSpice86DependencyInjection.InputEventrecords inInputEventHub, removePostToEmulatorThreadandInputEventHub.KeyboardDevice, exposeIKeyboardInputEvents.AllKeysReleasedforPS2Keyboard, and route UIITimeMultiplierchanges throughInputEventHub.Stack
PR 3 of 4 in the input recording stack:
--ClockJitterSeedand clock jitter--ReproducibleRuncommand-line presetDecisions made overnight
None.
Test plan
dotnet build src/Spice86.sln: Build succeeded (0 Warning(s), 0 Error(s)).dotnet test --project tests/Spice86.Tests --no-build -- --filter-class '*InputEventHubTests*' --filter-class '*CSharpOverrideHelperTest*' --filter-class '*PS2KeyboardReleaseAllKeysTests*' --filter-class '*MouseStateTests*' --filter-class '*MouseInputTests*' --filter-class '*MouseDriverTests*': Passed! total: 121, failed: 0, succeeded: 121, skipped: 0.dotnet test --project tests/Spice86.Tests --no-build -- --filter-not-class '*SingleStepTest*': Passed! total: 8477, failed: 0, succeeded: 8477, skipped: 0.Gaps
McpServerToolStateTestsalone (outside the full suite) triggers a pre-existingMachineLeakGuardassembly cleanup failure onVideoWritePixelAndReadPixel_ShouldRoundTripColorAsync(all 62 test bodies pass; reproduced identically on the base branchfeature/reproducible-run-option, and passes cleanly in the full suite).