Repository navigation
Conversation
Collaborator
Author
|
Closing as superseded: #35329 (already on main) fixed the same hang. The gesture-stream close handler now always settles the promise, and normal completion resolves before ws.close(). This branch conflicts with main and its test expects the old error message. Closing per maintainer triage (low-risk / zero user trade-off / material-gain bar). |
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.
LoC: +53/-1
Settle an emulator gesture when the helper closes after its final point. The close handler already cancels the pending success timer, but previously settled only incomplete gestures, leaving completed requests pending forever. Resolve completed sequences on close and preserve early-close rejection.
Validation:5 configured tests/2 suites,1 expected baseline regression with3 controls,strict focused TypeScript and all5 normal hook tasks pass. Real Node26.8.1/ws8.22.0 with two exact production modules and real loopback WebSockets:10 groups per arm at1/10 concurrent gestures. Graceful1001 close and abrupt termination after the final point leave1/10 pending promises on baseline and0 on final. Normal gestures, exact frame values/tag, early-close errors and connection/server cleanup are preserved. Exact committed production comparison repeated; failed hook attempt and preliminary logs retained.
Required aggregate queued after #35503; no aggregate pass or Claude takeover claimed. Nine production/caller blobs equal mainb2feed0e924c36d4d1610df6c47ab50c29b60cec. No RPC/wire,UI,deadline,retry or OS-path change. Actual iOS Simulator/macOS, native Electron UI,Windows,live serve-sim/TLS,CPU/RAM/latency and caller timeout behavior were not tested. Real WebSocket evidence is not native Simulator or full-app validation.
Frozen head
9f4d2fa1701b354b8160f0d9b63876c0ed9761d0, base79dbada2c873bef3584a0c53b23ae98f2a84e536. Evidence/home/neil/.local/state/orca-electron-audit/emulator-gesture-close-settlement/report.md;45-payload seald2ca0aa9f560c7b6c3f283edef7d5782bdc66cd319b258f48df9ebb55487a416.