Skip to content

Comments

dev to staging#2079

Merged
aisraelov merged 227 commits intostagingfrom
dev
Feb 19, 2026
Merged

dev to staging#2079
aisraelov merged 227 commits intostagingfrom
dev

Conversation

@aisraelov
Copy link
Member

No description provided.

fossephate and others added 23 commits February 18, 2026 09:51
- 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
@github-actions
Copy link

github-actions bot commented Feb 19, 2026

📋 PR Review Helper

📱 Mobile App Build

Ready to test! (commit 076a586)

📥 Download APK

🕶️ ASG Client Build

Waiting for build...


🔀 Test Locally

gh pr checkout 2079

@coderabbitai
Copy link

coderabbitai bot commented Feb 19, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

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 dev

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.

@aisraelov aisraelov marked this pull request as ready for review February 19, 2026 04:21
@aisraelov aisraelov requested a review from a team as a code owner February 19, 2026 04:21
@cloudflare-workers-and-pages
Copy link

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

Latest commit: 076a586
Status:⚡️  Build in progress...

View logs

@aisraelov aisraelov merged commit a0e9583 into staging Feb 19, 2026
10 of 14 checks passed
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.

4 participants