Skip to content

fix(emulator): settle gestures when helper closes after final point - #35508

Closed
OrcaWin wants to merge 1 commit into
mainfrom
audit/emulator-gesture-close-settlement
Closed

OrcaWin wants to merge 1 commit into
mainfrom
audit/emulator-gesture-close-settlement

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator

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, base 79dbada2c873bef3584a0c53b23ae98f2a84e536. Evidence /home/neil/.local/state/orca-electron-audit/emulator-gesture-close-settlement/report.md;45-payload seal d2ca0aa9f560c7b6c3f283edef7d5782bdc66cd319b258f48df9ebb55487a416.

@OrcaWin

OrcaWin commented Oct 29, 2026

Copy link
Copy Markdown
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).

@OrcaWin OrcaWin closed this Oct 29, 2026
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