Skip to content

Report when an Android pairing can receive typed session alerts - #396

Merged
n0rpan merged 2 commits into
mobile/fcm-session-alert-routingfrom
mobile/fcm-session-alert-availability
Dec 3, 2026
Merged

n0rpan merged 2 commits into
mobile/fcm-session-alert-routingfrom
mobile/fcm-session-alert-availability

Conversation

@n0rpan

@n0rpan n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Part of #95. Stacked on #371. The Android settings draft #375 will use this capability before it offers the opt-in.

Add a dedicated signed phone setting that confirms a current FCM enrollment and the configured credentialed relay's typed-alert capability. Reuse the send path's exact capability check. Persist an opt-out even during relay downtime. Before confirming a read or writing a supported opt-in, recheck the live pairing and make sure a relay or enrollment change did not invalidate the probe.

The existing per-event preference request keeps its contract. The exact stacked host library suite passed 216 tests with six fixture launchers ignored. The combined stack passed 222 host tests, and the focused checks exercise the existing TLS capability seam without contacting a real provider.

A paired phone can read and change its typed session-alert opt-in with
native_fcm_session_alerts. The reply carries the stored enabled value and
whether delivery can be promised now: a confirmed current FCM enrollment
and the configured credentialed relay's exact sessionAlerts capability,
read with the same request, credential, timeout and parser as a send.
Nothing is probed for general preferences or a stateless worker, and no
reply carries a provider identifier, relay origin or error text.

An explicit disable is stored before the probe, so it stands while the
relay is unhealthy, while the reply still reports the freshly checked
support. An enable is refused while unsupported. Every reply reads the
stored value after the capability wait and rechecks the live pairing, and
the enrollment generation and relay configuration must still match.

The existing push_preferences wire shape and fcm_session_alerts storage
are unchanged for older callers.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T21:11:54.541257Z 2b18e16 New commits
🔒 Security Review ✅ Completed 2026-12-03T21:13:56.111652Z 2b18e16 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@n0rpan

n0rpan commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator Author

The fast Linux workbench job on e321f65 failed before compilation or tests. During desktop/ci/linux-deps.sh sway dbus-daemon, the ARM64 runner received HTTP 502 from Ubuntu Snapshot for the Noble, updates, backports and security indexes. APT exited 100. The signed Ubuntu ports fallback for this exact failure landed in #386 (618a5268) after this stack branched. The single retry on the same head passed the complete workbench job and OX merge check. The restack after #371 will pick up the fallback from main.

…' into mobile/fcm-session-alert-availability-reconcile

# Conflicts:
#	desktop/ox-host-web/src/remote_settings.rs
@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

@codex security review

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 2b18e16405

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@n0rpan
n0rpan merged commit 0010178 into mobile/fcm-session-alert-routing Dec 3, 2026
28 of 29 checks passed
@n0rpan
n0rpan deleted the mobile/fcm-session-alert-availability branch December 3, 2026 23:04
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