Skip to content

Ignore unsolicited/late HID input reports instead of throwing - #65

Open
Manishrn wants to merge 1 commit into
GoogleChromeLabs:mainfrom
Manishrn:wp/AmbientSpeechMike_Warnings
Open

Ignore unsolicited/late HID input reports instead of throwing#65
Manishrn wants to merge 1 commit into
GoogleChromeLabs:mainfrom
Manishrn:wp/AmbientSpeechMike_Warnings

Conversation

@Manishrn

Copy link
Copy Markdown

Wireless SpeechMikes (e.g. Ambient PSM5000) emit unsolicited status/handshake reports on connect, power-cycle and machine lock/unlock, and may deliver command replies after their 5s resolver has already timed out. These reach the final else-branch of onInputReport() and previously threw 'Unhandled input report from command N', flooding consumers and window.onerror.

Log such reports at debug level and ignore them instead of throwing. The original caller was already rejected on timeout, and the late/stale reply is unusable, so nothing is lost.

Adds a regression test covering an unrecognized input report.

Wireless SpeechMikes (e.g. Ambient PSM5000) emit unsolicited status/handshake reports on connect, power-cycle and machine lock/unlock, and may deliver command replies after their 5s resolver has already timed out. These reach the final else-branch of onInputReport() and previously threw 'Unhandled input report from command N', flooding consumers and window.onerror.

Log such reports at debug level and ignore them instead of throwing. The original caller was already rejected on timeout, and the late/stale reply is unusable, so nothing is lost.

Adds a regression test covering an unrecognized input report.
@google-cla

google-cla Bot commented Aug 30, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@Manishrn Manishrn closed this Aug 30, 2026
@Manishrn Manishrn reopened this Aug 30, 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