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.
The GPUI Android platform belongs to the original Activity's native thread. After that event loop returns, end the spent process so a later launcher or notification intent cannot inherit its platform. A direct process exit avoids running native exit handlers while renderer threads are still alive. Handle language and layout direction changes in place in both app variants and flush pending draft saves when the Android window deactivates.
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 emulator smoke only checked the first pidof after am start. Extend it to launch OX Mobile, press ordinary Back at the unpaired root, require the first process to end with a bounded observation and no force-stop, then relaunch and require a different, resumed and drawn process with no crash or relevant failure. The helper also checks the Activity-loop exit marker. Against the pre-fix debug APK, Back brings the launcher forward but leaves the old process alive, so the new check fails at the intended assertion. Verified on the Android 35 default x86_64 image with the exact 5f473a6 debug APK. The GitHub-hosted workflow path itself was not run here.
|
Two Android overlaps to preserve when rebasing: #409 changes the same window-activation callback. Keep its motion refresh on activation and this PR’s draft flush on deactivation. #389 adds Play tests beside the emulator step in |
|
I checked the failed Fast Linux job on |
|
The combined Android API 35 rehearsal passed on #399 The disposable APK seeded an unsent draft into the app’s real conversation store. The emulator pressed Home, disabled Android animations, and resumed the same PID. The app saw the draft in memory and in private storage and picked up reduced motion. Ordinary Back then ended PID 2076, and the launcher opened a visible Activity in PID 2244 with an empty crash buffer. The Firebase preflight and 20 Play tests also passed. The signing and upload jobs were skipped. Emulator job and logs This rehearsal used temporary instrumentation. The PR is still stacked on #361. Its eventual integration should retain both callback paths and both sets of workflow checks. |
|
/queue f2da29d |
|
In line to merge. Commit 17ddd2e is reviewed with nothing blocking; it has entered the merge queue. |
|
I rehearsed the notification stack together with the exact Play delivery head from #389 ( The ARM64 APK generated from the fixture-signed bundle installed on the Android 16 emulator with 16 KiB pages. It drew from a cold synthetic notification intent and received the warm intent in the same process. The first Back test hit an input ANR. Its trace showed the native main thread running in Android’s ARM translation optimizer while NativeActivity paused. Four subsequent ARM64 Back/relaunch runs and three native x86-64 Firebase release runs passed, including the exit marker and a new process. This emulator result does not establish how Back behaves on physical ARM64 hardware. |
|
/queue 17ddd2e |
|
The Android job on |
Part of #95. Built on the merged #361, which gives both launch and alert intents one Android Activity in the Firebase build.
On Android 16, changing the app language destroyed the Activity while the original process stayed cached. A launch in that process reused the first GPUI platform and panicked before it could draw. After the native event loop has ended, exit the spent process so Android can start a fresh renderer. Use a direct exit because running process exit handlers reproduced a native renderer mutex abort in the emulator. Handle language and layout direction changes in place and flush the current draft when the window deactivates.
Verified on an isolated API 36 emulator with 16 KiB pages and a fixture-signed ARM64 Firebase bundle. Home and resume kept the same PID. Changing the app language kept the app visible and the PID stable. Back destroyed the Activity, and both the launcher and a synthetic alert intent cold-started a fresh process with an empty crash buffer. The Firebase packaging check and rustfmt passed. Real Firebase delivery and physical-device testing remain open.
The Android CI smoke now exercises ordinary Back at the unpaired root and a second launcher start. It waits for a visible, drawn Activity on both launches, checks for a new process and the Activity-loop exit marker, and checks the Android crash buffer. The same API 35 x86_64 image passed locally with the fix and the previous APK failed because the first process stayed alive.
The first hosted run built the APK, then stopped in the Firebase package preflight because it still searched the workflow for its old inline PID command. Commit
61adeb3updates the preflight to verify the new relaunch helper and its shell syntax. The preflight passes locally. First hosted runThe replacement hosted API 35 job passed the Firebase preflight and the new emulator check. Ordinary Back ended PID 1886, and the second visible Activity opened as PID 2174 with an empty crash buffer. Passing Android job
Checked against main at 545fc97. The mobile and workflow paths match the integrated #361 tree at 8eec5eb. An unsigned API 35 emulator rehearsal combined this change with the merged Reduce Motion handling (#409) and the Play packaging tests from #389 at adfb450. All 22 Play tests passed. Changing motion while backgrounded preserved the unsent draft and PID. Back and a launcher restart changed PID from 2015 to 2237 with an empty crash buffer. Combined Android job
The Stock clients (latest) job failed at
tests/fixtures/stock_opencode.py:193: upstream OpenCode printed its help text and exited 1 formodels ox. This PR leaves that fixture and CLI invocation unchanged. The latest-client lane is advisory on PRs. Admission waits for the required OX merge check.