Skip to content

Conversation

@Jayyk09
Copy link
Contributor

@Jayyk09 Jayyk09 commented Dec 29, 2025

Fix: Prevent auto-connect when Bluetooth is disabled

Problem

App auto-connects on launch even when Bluetooth is disabled, causing an infinite connection attempt with no user feedback.

Solution

Added checkConnectivityRequirementsUI() validation before auto-connect in MantleManager.ts:

setTimeout(async () => {
  const requirementsCheck = await checkConnectivityRequirementsUI()
  if (!requirementsCheck) return
  await CoreModule.connectDefault()
}, 3000)

Result

  • Bluetooth enabled → auto-connect works as before
  • Bluetooth disabled → user sees alert, no connection attempt

Reuses existing validation logic from ConnectDeviceButton.tsx.

@Jayyk09
Copy link
Contributor Author

Jayyk09 commented Dec 30, 2025

@aisraelov The Android build is failing at the :app:validateSigningRelease step with this error:

Keystore file '/Users/fosse/mentra/actions-runner-2/_work/MentraOS/MentraOS/mobile/android/credentials/upload-keystore.jks' not found for signing config 'release'.

Seems like a CI/CD configuration issue, not related to my code changes. The keystore file needed for signing the release build is missing from the CI environment. If not, do let me know

@aisraelov
Copy link
Member

aisraelov commented Dec 30, 2025

@Jayyk09 This is likely fixed in the dev branch. In 99.99% of cases we base PRs off dev, with rare exceptions for things like top-level README changes.

Change the base of your PR/branch from main=>dev.

Sorry for the confusion about this!

@Jayyk09 Jayyk09 force-pushed the fix/auto-connect-bluetooth-check branch from 8f2dc0f to bf4de70 Compare December 30, 2025 00:15
@Jayyk09 Jayyk09 changed the base branch from main to dev December 30, 2025 00:16
@Jayyk09
Copy link
Contributor Author

Jayyk09 commented Dec 31, 2025

@aisraelov the previous build failed in ios with this command. any idea why?

Run pnpm/action-setup@v2
Running self-installer...
  [Error: ENOTEMPTY: directory not empty, rmdir '/Users/fosse/setup-pnpm/node_modules/.bin/store/v3/files/02'] {
  Error: Error: ENOTEMPTY: directory not empty, rmdir '/Users/fosse/setup-pnpm/node_modules/.bin/store/v3/files/02'
    errno: -66,
    code: 'ENOTEMPTY',
    syscall: 'rmdir',
    path: '/Users/fosse/setup-pnpm/node_modules/.bin/store/v3/files/02'
  }

@aisraelov
Copy link
Member

@Jayyk09 our iOS runner has been acting up since yesterday. Looking into it.

@Jayyk09
Copy link
Contributor Author

Jayyk09 commented Dec 31, 2025

@aisraelov thanks for looking into it. The prev issue got fixed so thanks for that. Want to make sure if it's something caused by my code or a worker issue? Might be worth looking into

System.IO.IOException: No space left on device : '/Users/fosse/mentra/actions-runner-3/_diag/Worker_20251231-184948-utc.log'
   at System.IO.RandomAccess.WriteAtOffset(SafeFileHandle handle, ReadOnlySpan`1 buffer, Int64 fileOffset)
Unhandled exception. System.IO.IOException: No space left on device : '/Users/fosse/mentra/actions-runner-3/_diag/Worker_20251231-184948-utc.log'

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.

3 participants