Skip to content

Observe AppKit window release after the run loop settles - #27

Merged
bytetroll merged 1 commit into
masterfrom
appkit-lifecycle-input
Nov 9, 2026
Merged

bytetroll merged 1 commit into
masterfrom
appkit-lifecycle-input

Conversation

@bytetroll

Copy link
Copy Markdown
Contributor

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.

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>
@bytetroll
bytetroll merged commit 8f4c163 into master Nov 9, 2026
9 checks passed
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