From d95ec6f814b92dda33f73cb56fe031bc97c0a13b Mon Sep 17 00:00:00 2001 From: mannes Date: Thu, 24 Sep 2026 09:42:09 +0200 Subject: [PATCH 1/2] Only reconnect to a verified brush; Disconnect forgets it After connecting, read DEVICE_TYPE from the Oral-B service. A device that doesn't answer it (e.g. a multimeter picked in the all-devices chooser) is rejected and forgotten. Auto-reconnect now targets only the remembered brush instead of falling back to any device the origin was ever granted, and Disconnect revokes the permission via device.forget(). --- src/components/ConnectBar.tsx | 1 + src/hooks/useBrush.ts | 39 +++++++++++++++++++++++++++++------ src/protocol/oralb.ts | 38 ++++++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+), 6 deletions(-) diff --git a/src/components/ConnectBar.tsx b/src/components/ConnectBar.tsx index d544305..8aba542 100644 --- a/src/components/ConnectBar.tsx +++ b/src/components/ConnectBar.tsx @@ -78,6 +78,7 @@ export function ConnectBar(props: Props) {