diff --git a/apps/web/src/components/vision/AbacusVisionBridge.tsx b/apps/web/src/components/vision/AbacusVisionBridge.tsx index 99a2ea92..648a9d38 100644 --- a/apps/web/src/components/vision/AbacusVisionBridge.tsx +++ b/apps/web/src/components/vision/AbacusVisionBridge.tsx @@ -137,13 +137,17 @@ export function AbacusVisionBridge({ if (source === 'phone') { // Stop local camera - session will be created by RemoteCameraQRCode vision.disable() + // Clear local camera config in parent context + onConfigurationChange?.({ cameraDeviceId: null, calibration: null }) } else { // Stop remote session and start local camera setRemoteCameraSessionId(null) vision.enable() + // Clear remote session config in parent context + onConfigurationChange?.({ remoteCameraSessionId: null }) } }, - [vision] + [vision, onConfigurationChange] ) // Handle session created by QR code component