Repository navigation
Observe AppKit window release after the run loop settles - #27
Merged
Merged
Conversation
The macOS display contract reached its lifecycle step and failed with "VM normal completion must release its toolkit window". Creation was already observed correctly, so the provider releases the window; AppKit completes the teardown on the run loop, and counting in the same turn still lists it. The observer now gives the loop one bounded nonblocking turn before counting, which is the test accommodating AppKit's bookkeeping rather than the provider holding anything. The fixture also gains an --input-probe mode. macOS needs accessibility trust to post events to another process, which a hosted runner does not grant, so the interaction suite cannot drive the provider from outside; posting into this process needs no permission. The probe types through the provider's own pump and reports which of the text, toggle and click events arrived, with the application's active and key state, so a failure names itself instead of arriving as a deadline. It is a separate workflow step rather than part of --display, so unproven input handling cannot fail an otherwise green contract. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
The macOS display contract reached its lifecycle step and failed with "VM normal completion must release its toolkit window". Creation was already observed correctly, so the provider releases the window; AppKit completes the teardown on the run loop, and counting in the same turn still lists it. The observer now gives the loop one bounded nonblocking turn before counting, which is the test accommodating AppKit's bookkeeping rather than the provider holding anything.
The fixture also gains an --input-probe mode. macOS needs accessibility trust to post events to another process, which a hosted runner does not grant, so the interaction suite cannot drive the provider from outside; posting into this process needs no permission. The probe types through the provider's own pump and reports which of the text, toggle and click events arrived, with the application's active and key state, so a failure names itself instead of arriving as a deadline. It is a separate workflow step rather than part of --display, so unproven input handling cannot fail an otherwise green contract.