Repository navigation
Conversation
Read a future FCM session alert from the launcher activity's intent: a session_ref with a known kind and its exact pairing_hint, mutually exclusive with approval_ref. Java checks extra presence before reading either value, so a valid session reference plus a wrongly typed approval_ref is still refused; an approval reference may carry only an approval or question kind, or omit kind. Java then validates the action, types, canonical reference, known session kind and required hint, and keeps the envelope in the bounded dedupe store. Rust parses it into a typed SessionAlert event that shares the existing bounded inbox, dedupe and newest-tap rules, and routes only that valid explicit launch through the shared signed follow_tap session branch. Received data and background messages are untouched; approval taps keep their legacy and routed behaviour. The existing activity, launcher and no-FCM build are unchanged. The relay's NEW_TASK | CLEAR_TOP click action can recreate the standard-mode activity for a background-warm tap, which uses the same capture path and is to be verified on a device; a foreground onNewIntent is not covered by this slice. The relay does not send a session reference yet and no Android session alert opt-in control is added. Checks: cargo fmt --check; host android_fcm_events tests (26); host clippy -D warnings; Android cargo check with and without android-fcm; the pilot static check; javac against android-36; and a Java fixture for the reference, hint and kind validators.
Read and change only the host's optional fcm_session_alerts preference, behind the existing pairing and generation checks. An old host that omits the key, or a failed read, hides the switch; an explicit false stays visible and off. The switch never enrolls, prompts or enables itself.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
The stock-Claude host CI job failed during dependency setup for |
|
Combined this app stack with the Play bundle changes from #352 for local QA. The unsigned ARM64 Firebase AAB passed bundletool validation. The fixture-signed APK generated from the bundle passed APK signature and 16 KiB alignment checks, installed in the API 36 emulator, opened OX from a cold synthetic session-alert intent, and delivered a second intent to the same running activity and process. The emulator used a synthetic Firebase configuration and remained unpaired. Exact signed conversation routing from a paired phone, Play distribution, and provider delivery remain pending. |
|
The single retry of the failed stock-Claude job passed for this exact head. The broader workflow is green on attempt 2. |
The session-alert switch now uses the dedicated native_fcm_session_alerts action instead of reading the stored fcm_session_alerts preference as if it proved delivery. The control appears only when the host confirms a current FCM enrollment on a credentialed relay that advertises typed session alerts; an old host, an unsupported relay or a transient failure hides it until a manual Check again. A manual check refreshes the capability, and a preference write already in flight keeps its completion and is followed by the requested read rather than being replaced. An explicit disable keeps the control visible and off even when the host could not confirm relay health. The normal push_preferences per-event flow is unchanged.
|
I’m checking the settings interaction requested on #391 against your Android app head 84a8ca4 and the host capability from #396. I’m using a disposable checkout and will post the tested resolution and results on #391 for whichever branch lands second. The #375 and #396 branches stay with their owner. |
|
Combined settings results on #391. Both signed settings survived the integration. At these heads the app conflict was in the two adjacent test groups in |
Part of #95. Stacked on #361 for warm notification routing. This PR remains a draft until the host and relay support under #396 and #371 is available.
Offer a per-host Android session-alert setting in the existing Firebase notification card. Show it only while notifications are authorized and the signed host reply confirms an active installation on a capable relay. The opt-in starts off and changes only the active pairing. Check again refreshes support without replacing a write in flight, and the card preserves feedback if support disappears while the user makes a change.
The restacked branch passed 385 native library tests. The revised ARM64 fixture bundle from the combined app and host stack passed bundletool validation and 16 KiB alignment. An earlier combined bundle covered Android 16 cold launch and warm synthetic alert capture. Google Play installation and real Firebase delivery on a physical device remain open.