Skip to content

Comments

Staging => Main#2080

Draft
aisraelov wants to merge 772 commits intomainfrom
staging
Draft

Staging => Main#2080
aisraelov wants to merge 772 commits intomainfrom
staging

Conversation

@aisraelov
Copy link
Member

No description provided.

fossephate and others added 30 commits February 9, 2026 17:47
The console and CLI publish routes (POST /api/console/apps/:pkg/publish,
POST /api/cli/apps/:pkg/publish) were setting appStoreStatus directly to
PUBLISHED for any org admin, bypassing the admin approval flow entirely.

Changes:
- Add shared isMentraAdmin(email) utility that checks @mentra.glass,
  @mentraglass.com domains and the ADMIN_EMAILS env var
- console.apps.service publishApp: non-Mentra-admins now set SUBMITTED
  (queued for review); Mentra admins can still publish directly
- Hono admin.routes validateAdminEmail: use isMentraAdmin() instead of
  only checking ADMIN_EMAILS (adds @mentraglass.com support)
- Hono developer.routes publishApp: add ownership verification before
  allowing submission (was missing entirely)
- Express admin-auth.middleware: use shared isMentraAdmin() utility,
  adds @mentraglass.com domain support
- Add MetricsService singleton with Prometheus /metrics endpoint and enriched /health
- Track: user sessions, miniapp sessions, event loop lag (current/avg/p99),
  UDP stats, WS client/miniapp messages in/out, HTTP requests by status, memory, uptime
- Wire WS counters in bun-websocket.ts and AppManager.sendMessageToApp()
- Wire HTTP counters in hono-app middleware
- Add SONIOX_MODEL env var (default stt-rt-v4) for transcription + translation providers
- Update porter-debug workflow to deploy from cloud/cloud-scaling
- Add issue docs for 032-cloud-scaling and 033-soniox-model-update
…equality

The strict org-id comparison could false-403 multi-org users when the
x-org-id header defaults to a different org than the app's owner.
Use OrganizationService.isOrgAdmin against the app's actual org instead,
matching the pattern used in console.apps.service and getAppByPackageName.
aisraelov and others added 14 commits February 18, 2026 15:27
- REST handler validates requestId, success, photoUrl (on success)
- Builds typed PhotoResponse before passing to PhotoManager
- Error payloads lenient (crash path), fall back to UNKNOWN_ERROR
- PhotoManager.handlePhotoResponse now takes PhotoResponse, not any
- No unvalidated data flows downstream to apps
Root cause: BackgroundTimer (react-native-nitro-bg-timer) dispatches
callbacks via JSI at higher priority than RN's WebSocket onmessage
events. After CONNECTION_ACK, the JS thread is busy with REST calls
and UDP setup. The NitroTimer liveness check fires before queued
onmessage callbacks can update lastMessageTime -> false timeout.

Fix:
- Use plain setInterval for liveness timers (same priority as onmessage)
- Add client-side ping sender (2s interval, as originally spec'd in 034)
- Increase liveness timeout from 4s to 8s

BackgroundTimer still used for reconnect interval (needs to fire when
backgrounded).

Verified via BetterStack: server was sending display events every
0.4-1.5s but client never received them. 170/180 closes on dev were
code 1000 (client-initiated). Pattern: connect -> 5s -> timeout -> 5s
reconnect -> repeat.

See: cloud/issues/034-ws-liveness/post-mortem.md (Feb 18 update)
…rors

cloud/photo-request-errors Fix: reject photo request Promise immediately on error instead of 30s timeout
…ream-dedup

cloud/transcription-stream-dedup
@coderabbitai
Copy link

coderabbitai bot commented Feb 19, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch staging

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 19, 2026

Deploying prod-augmentos-account with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1167c6a
Status: ✅  Deploy successful!
Preview URL: https://6b1c343c.augmentos-e84.pages.dev
Branch Preview URL: https://dev.augmentos-e84.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 19, 2026

Deploying mentra-store-beta with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1167c6a
Status: ✅  Deploy successful!
Preview URL: https://56cbab6e.mentra-store-beta.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 19, 2026

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

Latest commit: 1167c6a
Status: ✅  Deploy successful!
Preview URL: https://3d24e3e7.mentra-live-ota-site.pages.dev
Branch Preview URL: https://dev.mentra-live-ota-site.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 19, 2026

Deploying mentra-store-dev with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1167c6a
Status: ✅  Deploy successful!
Preview URL: https://140ac46e.augmentos-appstore-2.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 19, 2026

Deploying dev-augmentos-console with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1167c6a
Status: ✅  Deploy successful!
Preview URL: https://2c5277f4.dev-augmentos-console.pages.dev

View logs

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.

5 participants