Skip to content

Improve Mentra Live pairing UX (OS-1615)#3224

Open
nic-olo wants to merge 27 commits into
devfrom
nicolo/os-1615-improve-mentra-live-pairing-ux
Open

Improve Mentra Live pairing UX (OS-1615)#3224
nic-olo wants to merge 27 commits into
devfrom
nicolo/os-1615-improve-mentra-live-pairing-ux

Conversation

@nic-olo

@nic-olo nic-olo commented Jun 22, 2026

Copy link
Copy Markdown
Member

Summary

  • Add Mentra Live pairing flow: prep guide, pairing-mode scan filter, auto-connect, and required media wipe on ownership transfer.
  • Extend Bluetooth SDK (iOS/Android) with pairing_info, wipe_media_result, and pairing transfer commands.
  • Add wipe_media handler on asg_client to erase gallery during ownership transfer.

Test plan

  • Flash BES firmware from companion PR and pair a factory-reset Mentra Live (auto pairing mode on boot).
  • Hold power+camera 10s on bonded glasses; confirm LED/voice and discoverability in scan.
  • Verify auto-connect on scan and 15s timeout + Try Again when no unit found.
  • Transfer ownership: confirm wipe prompt, successful wipe + finalize, and decline aborts pairing.
  • Confirm bonded phone reconnect still works via connectDefault() without scan list.

Made with Cursor

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 22, 2026

Copy link
Copy Markdown

Deploying mentra-store-dev with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2f3dbe9
Status: ✅  Deploy successful!
Preview URL: https://431f7636.augmentos-appstore-2.pages.dev
Branch Preview URL: https://nicolo-os-1615-improve-mentr.augmentos-appstore-2.pages.dev

View logs

Comment thread mobile/modules/bluetooth-sdk/ios/Source/sgcs/MentraLive.swift
Comment thread mobile/src/app/pairing/loading.tsx
Comment thread mobile/src/app/pairing/scan.tsx
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 22, 2026

Copy link
Copy Markdown

Deploying dev-augmentos-console with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2f3dbe9
Status: ✅  Deploy successful!
Preview URL: https://6d606a63.dev-augmentos-console.pages.dev
Branch Preview URL: https://nicolo-os-1615-improve-mentr.dev-augmentos-console.pages.dev

View logs

nic-olo and others added 4 commits June 22, 2026 16:37
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 22, 2026

Copy link
Copy Markdown

Deploying prod-augmentos-account with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2f3dbe9
Status: ✅  Deploy successful!
Preview URL: https://00a08dba.augmentos-e84.pages.dev
Branch Preview URL: https://nicolo-os-1615-improve-mentr.augmentos-e84.pages.dev

View logs

nic-olo and others added 4 commits June 22, 2026 16:38
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 22, 2026

Copy link
Copy Markdown

Deploying mentra-live-ota-site with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2f3dbe9
Status: ✅  Deploy successful!
Preview URL: https://754ba77b.mentra-live-ota-site.pages.dev
Branch Preview URL: https://nicolo-os-1615-improve-mentr.mentra-live-ota-site.pages.dev

View logs

nic-olo and others added 14 commits June 22, 2026 16:39
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…roid

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@nic-olo nic-olo force-pushed the nicolo/os-1615-improve-mentra-live-pairing-ux branch from 9653e98 to 2f3dbe9 Compare June 22, 2026 08:41

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 2f3dbe9. Configure here.

return
}
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing finalize on first pair

High Severity

When pairing_info reports no prior bond, the loading screen marks pairing resolved and navigates to success without calling BluetoothSdk.finalizePairingTransfer(). The ownership-transfer design expects finalize on every successful new bond; only the wipe path sends it today.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 2f3dbe9. Configure here.

val isReconnectTarget =
savedDeviceName != null && savedDeviceName == deviceName
if (!isReconnectTarget && !isPairingDiscoverable(result)) {
return

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale name bypasses pairing filter

High Severity

The new scan filter skips the pairing-mode advertisement check when the discovered name matches a saved reconnect target. That saved name is not cleared on forget() (Android in-memory savedDeviceName, iOS UserDefaults), so pairing scan can surface and auto-connect to glasses that are not in pairing mode.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 2f3dbe9. Configure here.

nic-olo and others added 4 commits June 22, 2026 16:46
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
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