Skip to content

fix: await offline keyboard handover before testing key delivery - #4598

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4466
Oct 28, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-4466

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The offline startup test could press x after the held-key notice disappeared but before the keyboard controller's queued frame released the hold. The notice marks queue handover, so it cannot establish that subsequent keys already travel through ordinary DOM delivery. Wait for rendered(page) before exercising post-handover input; the existing tab navigation, key delivery and empty-queue assertions remain intact.

This preserves #2649's ordered startup keys and early package navigation without changing runtime behavior. The scheduled run's macOS assertion failed while its Linux counterpart passed; the preceding scheduled run passed this case on both platforms. A controlled reproduction pauses the frame clock before refusing the first state read: the original ordering fails with None, and resuming and waiting for rendering before the final input passes. The revised case also passes locally at 10× CPU throttle. The clock instrumentation is diagnostic only and is not committed.

Closes #4466 — automated triage

The held-key notice is removed when the controller takes the queue, before its scheduled frame releases the offline hold. The test could press x in that gap and mistake ordered replay for lost native delivery. Wait for rendering before exercising post-handover input. A paused-frame reproduction fails without the wait and passes with it; the focused case also passes at 10x CPU throttle.

Closes #4466
@leaf-agent
leaf-agent merged commit 6eb54d0 into main Oct 28, 2026
5 of 7 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4466 branch October 28, 2026 14:35
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.

Offline package key test does not receive its final x key

1 participant