Repository navigation
Capture typed approval notification intent on iPhone - #372
Merged
Merged
Conversation
Read the fixed AllowOnce and Deny action identifiers from a UNNotificationResponse and pass them to Rust as a typed AlertIntent on AlertTap. The ordinary tap keeps ALERT_INTENT_DEFAULT and its existing legacy and routed behavior. A custom action is accepted only when the notification content names the exact OX_APPROVAL_ACTIONS category and carries the exact approval envelope: one approval reference, no session reference and no kind field. Rust additionally requires the canonical 43-character approval reference and a canonical routed pairing hint, and rejects a decision on a session alert. The ObjC bridge keeps its existing bounded 16-entry request-identifier dedupe: ordinary taps are recorded before the envelope check as before, while a custom action requires a nonempty identifier of at most 256 characters and is recorded only after the category and approval envelope checks. No notification category or action is registered, and no decision is dispatched. A captured intent is consumed by the existing review fallback, so the app still opens the alert's review path. Question and session alerts never produce an intent. Checked on b918f44: cargo fmt for the workspace and desktop manifest; clippy -D warnings and all ox-mobile tests; clang -fsyntax-only -Werror on PushBridge.m against the iPhoneOS 27.1 SDK; and cargo check for ox-mobile on aarch64-apple-ios against the existing cached target. The full xtool link was not run because a host build was active; the parent builds the exact app.
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. |
Collaborator
Author
|
/queue 7542e82 |
Collaborator
Author
|
In line to merge. Commit 7542e82 is reviewed with nothing blocking; it has entered the merge queue. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #95.
Capture typed notification action intent at the iOS bridge. Require the fixed APNs category and action identifiers, a bounded response ID, an approval-only envelope with a canonical reference, and a canonical pairing hint. The existing scene/delegate dedupe stays in place. The default tap still uses the review path for approvals and session alerts.
This is the intake step. It does not register action buttons or send a decision.
Verified the mobile unit suites and Clippy, and linked the exact arm64 iPhone build on Linux with xtool against iPhoneOS SDK 27.1. The linked app contains the updated Rust bridge symbol. Device action verification remains open.