Skip to content

feat(gateway): deliver plugin approvals to paired iOS devices via APNs - #108505

Merged
steipete merged 2 commits into
mainfrom
feat/plugin-approval-ios-push
Jul 16, 2026
Merged

steipete merged 2 commits into
mainfrom
feat/plugin-approval-ios-push

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Exec approvals reach paired iOS operator devices via APNs push, but plugin approvals do not — they only reach chat via the forwarder. So an agent blocked on a plugin approval (for example the onepassword broker's approve tier) raised no native notification on the operator's phone or watch. This wires plugin approvals into the same APNs delivery, so they raise a native notification on paired iOS devices, which iOS then mirrors to a paired Apple Watch.

Follow-up to the 1Password broker work (#105924). The iOS client change to render the plugin-approval notification/dialog is a separate PR; this is the server half.

Why This Change Was Made

  • Generalized the exec-only iOS push delivery into a shared driver: exec and plugin instances share paired-device resolution, the operator.approvals + operator.read scope gate, APNs registration loading, direct/relay delivery planning, and stale-registration cleanup. Exec and plugin drivers supply their own APNs senders; the transport/relay/auth logic stays single-sourced.
  • Added plugin.approval.requested / plugin.approval.resolved APNs payloads and a openclaw.plugin-approval category. Title comes from the approval request (fallback "Approval required"); body is the request description truncated to 256 UTF-16-safe characters. No secret-bearing fields are added — plugin approval title/description are plugin/operator-authored and never contain the secret value.
  • Wired push into both plugin-approval origination points so coverage is complete: the plugin.approval.request RPC handler and the node.invoke policy path both fan out to the existing chat forwarder plus the new iOS push, using the same isTargetVisible predicate exec uses to skip a device already viewing the approval in-app. Resolution and expiry send the same cleanup wake exec does.

No new config surface: native push follows exec's behavior (always enabled for eligible paired operator devices); approvals.plugin.enabled remains the chat-forwarding gate.

User Impact

Operators with a paired iOS device (and optionally a watch) now get a native approval notification for plugin approvals, in addition to the existing chat forward. Opt-in only in the sense that it requires a paired operator device with the approvals scope; no behavior change for setups without one. Exec approval behavior is unchanged.

Evidence

  • Focused tests green: exec-approval-ios-push (13), push-apns (18), plugin-approval (33), approval (33), node-invoke-plugin-policy (16), server-request-context (5), server-aux-handlers (12) — covering direct and relay delivery, scope-gate filtering, lifecycle cleanup, and payload construction incl. body truncation and category/kind.
  • Production types, test-types (Blacksmith Testbox), and oxlint all exit 0; git diff --check clean.
  • Autoreview (Codex gpt-5.6-sol xhigh, branch vs origin/main): clean, no actionable findings.
  • The chat-forwarding half of this experience is already verified live on a production gateway (plugin approval delivered to Telegram with Allow/Deny).

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XL maintainer Maintainer-authored PR labels Jul 15, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dd7ed9ba80

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

"plugin",
resolveCanonicalPluginApprovalRequestAllowedDecisions,
);
const pluginApprovalIosPushDelivery = createPluginApprovalIosPushDelivery({ log: params.log });

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Gate plugin pushes on iOS support

When any paired device is still running the current iOS app, this unconditional wiring sends plugin.approval.requested APNs payloads to clients that cannot route them: apps/ios/Sources/Push/ExecApprovalNotificationBridge.swift:61 only recognizes exec.approval.requested, and the notification delegate only parses exec approval prompts. Since the gateway APNs registration stored here has no client capability/version bit, a gateway update can produce plugin approval notifications that launch the app without opening an approval UI; gate plugin APNs on an advertised client capability or keep it disabled until the iOS handler ships.

Useful? React with 👍 / 👎.

Comment thread src/infra/push-apns.ts
Comment on lines +1191 to +1192
title: normalizeOptionalString(params.title) ?? "Approval required",
body: resolvePluginApprovalAlertBody(params.description),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep plugin details out of APNs alerts

For plugin approvals whose prompt text includes sensitive operands, this puts those details directly in the APNs alert title/body, which iOS/watch can display on the lock screen; for example extensions/file-transfer/src/shared/node-invoke-policy.ts:153 builds the title and description with the requested path. Exec approval APNs intentionally use generic text and omit command details, so plugin pushes should do the same and let the app fetch/render the full approval after unlock.

Useful? React with 👍 / 👎.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Jul 16, 2026
@clawsweeper

clawsweeper Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 15, 2026, 8:25 PM ET / July 16, 2026, 00:25 UTC.

Summary
The PR generalizes iOS approval push delivery and sends plugin approval request, resolution, and expiry notifications through APNs to paired operator devices.

PR surface: Source +293, Tests +420. Total +713 across 15 files.

Reproducibility: yes. at source level: current main only routes exec approval notifications, while the PR unconditionally sends a new plugin event and copies plugin text into its visible APNs alert. No real-device reproduction transcript is provided.

Review metrics: 1 noteworthy metric.

  • New APNs client contract: 2 event kinds, 1 notification category. Existing registrations have no capability bit for these new values, so compatibility cannot be inferred from successful APNs transport.

Merge readiness
Overall: 🧂 unranked krab
Proof: 🧂 unranked krab
Patch quality: 🦪 silver shellfish
Result: blocked until real behavior proof from a real setup is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • [P1] Add explicit iOS plugin-approval capability negotiation and mixed-version tests.
  • Replace plugin-authored visible notification text with generic copy.
  • Provide redacted real-device APNs and native approval-flow proof.

Proof guidance:

  • [P1] Needs real behavior proof before merge: The PR supplies focused tests and unrelated live Telegram-forwarding evidence, but not the changed APNs and native iOS flow. Add redacted real-device proof covering notification receipt, tap-to-dialog, resolution cleanup, direct or relay delivery, and mixed-version behavior; redact keys, phone numbers, IP addresses, private endpoints, and notification content. Updating the PR body should trigger review, or a maintainer can request @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Risk before merge

  • [P1] A gateway release can send plugin.approval.requested to paired devices whose installed iOS client cannot route it, producing a notification that does not open a usable approval flow.
  • [P1] Plugin-supplied titles and descriptions can reveal paths, resource names, reasons, or other sensitive operational metadata on an iPhone or Apple Watch lock screen.
  • [P1] Tests cover construction and mocked delivery, but they do not establish the native end-to-end behavior or safe mixed-version upgrade path.

Maintainer options:

  1. Capability-gate and sanitize (recommended)
    Require an explicit iOS capability, use generic visible text, add mixed-version coverage, and provide real-device APNs proof before merge.
  2. Hold for the companion client
    Pause this PR until the iOS handler and rollout contract can be reviewed and proven as one compatible feature.

Next step before merge

  • [P1] The protected maintainer label, security-boundary decision, companion-client coordination, and contributor-owned real-device proof require human handling rather than an automated repair lane.

Maintainer decision needed

  • Question: Should plugin approval APNs be restricted to capable clients and use generic lock-screen text before the gateway begins sending them?
  • Rationale: This determines both the mixed-version rollout contract and whether plugin-authored approval metadata is permitted to cross the APNs and lock-screen privacy boundary.
  • Likely owner: steipete — The feature was scoped as part of the related approval work and this proposal coordinates its server and iOS rollout.
  • Options:
    • Gate and sanitize before merge (recommended): Add an advertised client capability, retain generic notification copy, coordinate the iOS handler, and require real-device proof before enabling delivery.
    • Pause the server half: Keep plugin APNs disabled until the companion iOS implementation and a reviewed rollout contract are ready together.

Security
Needs attention: The patch creates a concrete privacy boundary regression by exposing plugin-authored approval metadata through APNs and lock-screen notifications.

Review findings

  • [P1] Gate plugin pushes on client support — src/gateway/server-aux-handlers.ts:172
  • [P1] Keep plugin details out of visible APNs alerts — src/infra/push-apns.ts:946
Review details

Best possible solution:

Use a generic non-sensitive notification, advertise and require an explicit plugin-approval push capability, land the matching iOS handler, and prove request, tap-to-dialog, resolution cleanup, direct/relay delivery, and mixed-version behavior on real paired devices before release.

Do we have a high-confidence way to reproduce the issue?

Yes, at source level: current main only routes exec approval notifications, while the PR unconditionally sends a new plugin event and copies plugin text into its visible APNs alert. No real-device reproduction transcript is provided.

Is this the best way to solve the issue?

No. Sharing the delivery driver is reasonable, but the maintainable solution also needs capability negotiation, generic notification text, a coordinated client implementation, and mixed-version proof.

Full review comments:

  • [P1] Gate plugin pushes on client support — src/gateway/server-aux-handlers.ts:172
    Do not attach plugin APNs delivery to every paired registration yet. The current iOS bridge only routes exec approval events, and registrations advertise no plugin-approval capability, so an upgraded gateway can notify an older client that cannot open the approval UI. Require an explicit client capability or keep this delivery disabled until the companion iOS handler ships.
    Confidence: 0.98
  • [P1] Keep plugin details out of visible APNs alerts — src/infra/push-apns.ts:946
    Use generic lock-screen copy instead of placing plugin-provided title and description in the APNs alert. Existing policies can include sensitive operands such as filesystem paths, and iOS or Apple Watch may display that metadata before unlock; fetch and render the full request only inside the authenticated app.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 87079d025e83.

Label changes

Label changes:

  • add P2: This is a valuable but unshipped feature with blocking compatibility, privacy, and proof gaps rather than an active production regression.
  • add merge-risk: 🚨 compatibility: The gateway can begin sending plugin approval payloads to existing paired iOS clients that only understand exec approval notifications.
  • add merge-risk: 🚨 security-boundary: The patch moves plugin-authored approval metadata into APNs alerts that may be displayed on locked phones and watches.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR supplies focused tests and unrelated live Telegram-forwarding evidence, but not the changed APNs and native iOS flow. Add redacted real-device proof covering notification receipt, tap-to-dialog, resolution cleanup, direct or relay delivery, and mixed-version behavior; redact keys, phone numbers, IP addresses, private endpoints, and notification content. Updating the PR body should trigger review, or a maintainer can request @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Label justifications:

  • P2: This is a valuable but unshipped feature with blocking compatibility, privacy, and proof gaps rather than an active production regression.
  • merge-risk: 🚨 compatibility: The gateway can begin sending plugin approval payloads to existing paired iOS clients that only understand exec approval notifications.
  • merge-risk: 🚨 security-boundary: The patch moves plugin-authored approval metadata into APNs alerts that may be displayed on locked phones and watches.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR supplies focused tests and unrelated live Telegram-forwarding evidence, but not the changed APNs and native iOS flow. Add redacted real-device proof covering notification receipt, tap-to-dialog, resolution cleanup, direct or relay delivery, and mixed-version behavior; redact keys, phone numbers, IP addresses, private endpoints, and notification content. Updating the PR body should trigger review, or a maintainer can request @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed

PR surface:

Source +293, Tests +420. Total +713 across 15 files.

View PR surface stats
Area Files Added Removed Net
Source 10 448 155 +293
Tests 5 421 1 +420
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 15 869 156 +713

Security concerns:

  • [medium] Sensitive approval metadata may appear before unlock — src/infra/push-apns.ts:946
    Plugin approval text can contain resource paths, identifiers, reasons, or other operational details; copying it into an APNs alert exposes that information to Apple push infrastructure and locked phone or watch surfaces.
    Confidence: 0.98

What I checked:

  • Unsupported current iOS payload: The current-main iOS notification bridge recognizes exec.approval.requested, while this PR unconditionally attaches plugin APNs delivery to the plugin approval handler; the PR body says the matching iOS rendering change is a separate PR. (apps/ios/Sources/Push/ExecApprovalNotificationBridge.swift:61, 87079d025e83)
  • Unconditional gateway rollout: The new plugin push driver is supplied to the plugin approval handlers without a registration capability or client-version gate, so existing paired registrations are eligible for an event their client may not understand. (src/gateway/server-aux-handlers.ts:172, dd7ed9ba8076)
  • Plugin text enters the APNs alert: The generalized payload places caller-provided title and body text directly in the visible APNs alert rather than using the generic text retained for exec approvals. (src/infra/push-apns.ts:946, dd7ed9ba8076)
  • Approval descriptions may contain sensitive operands: Current plugin policy implementations can construct approval copy from requested resources such as filesystem paths, making the assertion that title and description are safe for lock-screen display too broad. (extensions/file-transfer/src/shared/node-invoke-policy.ts:153, 87079d025e83)
  • Existing review corroboration: Two inline reviews independently identified the missing iOS capability gate and exposure of plugin details in APNs alerts. (src/infra/push-apns.ts:946, dd7ed9ba8076)
  • Changed behavior lacks real proof: The PR reports focused tests and live Telegram forwarding, but no after-fix APNs delivery, notification tap, native plugin-approval dialog, resolution cleanup, direct/relay path, or old-client behavior on a real paired iOS device. (dd7ed9ba8076)

Likely related people:

  • steipete: The related approval-broker proposal explicitly identified native plugin-approval push as a follow-up, and the current branch coordinates the gateway and planned iOS sides of that feature. (role: feature owner; confidence: medium; commits: dd7ed9ba8076; files: src/gateway/exec-approval-ios-push.ts, src/infra/push-apns.ts, apps/ios/Sources/Push/ExecApprovalNotificationBridge.swift)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

steipete added 2 commits July 15, 2026 21:54
Generalize the exec-approval iOS push delivery into a shared driver so plugin
approvals also raise an APNs notification on paired operator devices (which iOS
mirrors to a paired Apple Watch). Reuses the operator.approvals scope gate,
direct/relay transport, and stale-registration cleanup. Wires push into both
plugin-approval origination points (the plugin.approval.request RPC and the
node.invoke policy path) alongside the existing chat forwarder; adds a
plugin.approval.* APNs payload/category with a description body truncated to
256 UTF-16-safe chars and no secret-bearing fields.
@steipete
steipete force-pushed the feat/plugin-approval-ios-push branch from dd7ed9b to 791246f Compare July 16, 2026 04:55

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 791246f5f6

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +166 to +167
isTargetVisible: (target) =>
isApprovalRecordVisibleToClient({

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use durable approval visibility for plugin push targets

When a plugin approval is created without approvalReviewerDeviceIds (for example agent/tool contexts that have no current reviewer device), this new APNs gate uses the legacy exact-requester helper, so the synthetic iOS target is rejected because bindApprovalRequesterMetadata records the backend/requesting device or client, not the paired iPhone. The durable approval.get path uses canAccessOperatorApproval and would allow an operator.approvals device when no reviewer binding exists, so these approvals remain reviewable in-app but never get the new native push; the same gate in src/gateway/node-invoke-plugin-policy.ts should be updated too.

Useful? React with 👍 / 👎.

@steipete
steipete merged commit bdcf6bd into main Jul 16, 2026
116 checks passed
@steipete
steipete deleted the feat/plugin-approval-ios-push branch July 16, 2026 05:12
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 16, 2026
openclaw#108505)

* feat(gateway): deliver plugin approvals to paired iOS devices via APNs

Generalize the exec-approval iOS push delivery into a shared driver so plugin
approvals also raise an APNs notification on paired operator devices (which iOS
mirrors to a paired Apple Watch). Reuses the operator.approvals scope gate,
direct/relay transport, and stale-registration cleanup. Wires push into both
plugin-approval origination points (the plugin.approval.request RPC and the
node.invoke policy path) alongside the existing chat forwarder; adds a
plugin.approval.* APNs payload/category with a description body truncated to
256 UTF-16-safe chars and no secret-bearing fields.

* fix(gateway): drop unused export on plugin approval push category
steipete added a commit that referenced this pull request Jul 16, 2026
Extend the iOS approval handling from exec to plugin approvals so the native
push the gateway now sends (#108505) shows a phone notification with Allow/Deny.
Extract a shared ApprovalNotificationBridge with exec/plugin wrappers owning
their own kind constants and category; tag the parsed prompt with its kind;
register the plugin category and route plugin pushes in the app delegate; add a
.plugin case that maps the plugin presentation (title/description/pluginId/
severity) into the existing prompt and widens the exec-only validation, current,
cache-restore, and resolve guards to accept plugin; parameterize the dialog copy
by kind. Watch snapshot publication stays exec-only; the phone notification still
mirrors to the watch via WatchConnectivity. Reuses the unified approval.get/
approval.resolve RPCs (already kind-generic); no server or protocol changes.
steipete added a commit that referenced this pull request Jul 16, 2026
Extend the iOS approval handling from exec to plugin approvals so the native
push the gateway now sends (#108505) shows a phone notification with Allow/Deny.
Extract a shared ApprovalNotificationBridge with exec/plugin wrappers owning
their own kind constants and category; tag the parsed prompt with its kind;
register the plugin category and route plugin pushes in the app delegate; add a
.plugin case that maps the plugin presentation (title/description/pluginId/
severity) into the existing prompt and widens the exec-only validation, current,
cache-restore, and resolve guards to accept plugin; parameterize the dialog copy
by kind. Watch snapshot publication stays exec-only; the phone notification still
mirrors to the watch via WatchConnectivity. Reuses the unified approval.get/
approval.resolve RPCs (already kind-generic); no server or protocol changes.
steipete added a commit that referenced this pull request Jul 16, 2026
Extend the iOS approval handling from exec to plugin approvals so the native
push the gateway now sends (#108505) shows a phone notification with Allow/Deny.
Extract a shared ApprovalNotificationBridge with exec/plugin wrappers owning
their own kind constants and category; tag the parsed prompt with its kind;
register the plugin category and route plugin pushes in the app delegate; add a
.plugin case that maps the plugin presentation (title/description/pluginId/
severity) into the existing prompt and widens the exec-only validation, current,
cache-restore, and resolve guards to accept plugin; parameterize the dialog copy
by kind. Watch snapshot publication stays exec-only; the phone notification still
mirrors to the watch via WatchConnectivity. Reuses the unified approval.get/
approval.resolve RPCs (already kind-generic); no server or protocol changes.
steipete added a commit that referenced this pull request Jul 16, 2026
…#108709)

* feat(ios): render plugin approvals as native Allow/Deny notifications

Extend the iOS approval handling from exec to plugin approvals so the native
push the gateway now sends (#108505) shows a phone notification with Allow/Deny.
Extract a shared ApprovalNotificationBridge with exec/plugin wrappers owning
their own kind constants and category; tag the parsed prompt with its kind;
register the plugin category and route plugin pushes in the app delegate; add a
.plugin case that maps the plugin presentation (title/description/pluginId/
severity) into the existing prompt and widens the exec-only validation, current,
cache-restore, and resolve guards to accept plugin; parameterize the dialog copy
by kind. Watch snapshot publication stays exec-only; the phone notification still
mirrors to the watch via WatchConnectivity. Reuses the unified approval.get/
approval.resolve RPCs (already kind-generic); no server or protocol changes.

* chore(i18n): sync native inventory after rebase

* chore(ios): drop accidentally committed local Version.xcconfig build override

* fix(ios): sync Apple i18n catalog and remove dead approval-bridge methods

Sync apps/ios/Resources/Localizable.xcstrings for the new plugin-approval
strings (native inventory sync alone did not cover the Apple catalog).
Remove the superseded per-bridge registerCategory variants and the redundant
exec parseResolvedPush wrapper flagged by the iOS Periphery dead-code scan;
registration uses ApprovalNotificationBridge.registerCategories and the shared
parse helpers.

* chore(ios): drop generated SwiftSources filelist; reconcile native i18n inventory

* chore(ios): drop generated Xcode project from tracking

Codex generated OpenClaw.xcodeproj for its simulator test run and the initial
apps/ios directory commit force-added it; xcodegen regenerates it in CI, so it
must not be tracked (matches main).

* chore(ios): reconcile native i18n inventory after rebase
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 17, 2026
…openclaw#108709)

* feat(ios): render plugin approvals as native Allow/Deny notifications

Extend the iOS approval handling from exec to plugin approvals so the native
push the gateway now sends (openclaw#108505) shows a phone notification with Allow/Deny.
Extract a shared ApprovalNotificationBridge with exec/plugin wrappers owning
their own kind constants and category; tag the parsed prompt with its kind;
register the plugin category and route plugin pushes in the app delegate; add a
.plugin case that maps the plugin presentation (title/description/pluginId/
severity) into the existing prompt and widens the exec-only validation, current,
cache-restore, and resolve guards to accept plugin; parameterize the dialog copy
by kind. Watch snapshot publication stays exec-only; the phone notification still
mirrors to the watch via WatchConnectivity. Reuses the unified approval.get/
approval.resolve RPCs (already kind-generic); no server or protocol changes.

* chore(i18n): sync native inventory after rebase

* chore(ios): drop accidentally committed local Version.xcconfig build override

* fix(ios): sync Apple i18n catalog and remove dead approval-bridge methods

Sync apps/ios/Resources/Localizable.xcstrings for the new plugin-approval
strings (native inventory sync alone did not cover the Apple catalog).
Remove the superseded per-bridge registerCategory variants and the redundant
exec parseResolvedPush wrapper flagged by the iOS Periphery dead-code scan;
registration uses ApprovalNotificationBridge.registerCategories and the shared
parse helpers.

* chore(ios): drop generated SwiftSources filelist; reconcile native i18n inventory

* chore(ios): drop generated Xcode project from tracking

Codex generated OpenClaw.xcodeproj for its simulator test run and the initial
apps/ios directory commit force-added it; xcodegen regenerates it in CI, so it
must not be tracked (matches main).

* chore(ios): reconcile native i18n inventory after rebase
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
openclaw#108505)

* feat(gateway): deliver plugin approvals to paired iOS devices via APNs

Generalize the exec-approval iOS push delivery into a shared driver so plugin
approvals also raise an APNs notification on paired operator devices (which iOS
mirrors to a paired Apple Watch). Reuses the operator.approvals scope gate,
direct/relay transport, and stale-registration cleanup. Wires push into both
plugin-approval origination points (the plugin.approval.request RPC and the
node.invoke policy path) alongside the existing chat forwarder; adds a
plugin.approval.* APNs payload/category with a description body truncated to
256 UTF-16-safe chars and no secret-bearing fields.

* fix(gateway): drop unused export on plugin approval push category
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
…openclaw#108709)

* feat(ios): render plugin approvals as native Allow/Deny notifications

Extend the iOS approval handling from exec to plugin approvals so the native
push the gateway now sends (openclaw#108505) shows a phone notification with Allow/Deny.
Extract a shared ApprovalNotificationBridge with exec/plugin wrappers owning
their own kind constants and category; tag the parsed prompt with its kind;
register the plugin category and route plugin pushes in the app delegate; add a
.plugin case that maps the plugin presentation (title/description/pluginId/
severity) into the existing prompt and widens the exec-only validation, current,
cache-restore, and resolve guards to accept plugin; parameterize the dialog copy
by kind. Watch snapshot publication stays exec-only; the phone notification still
mirrors to the watch via WatchConnectivity. Reuses the unified approval.get/
approval.resolve RPCs (already kind-generic); no server or protocol changes.

* chore(i18n): sync native inventory after rebase

* chore(ios): drop accidentally committed local Version.xcconfig build override

* fix(ios): sync Apple i18n catalog and remove dead approval-bridge methods

Sync apps/ios/Resources/Localizable.xcstrings for the new plugin-approval
strings (native inventory sync alone did not cover the Apple catalog).
Remove the superseded per-bridge registerCategory variants and the redundant
exec parseResolvedPush wrapper flagged by the iOS Periphery dead-code scan;
registration uses ApprovalNotificationBridge.registerCategories and the shared
parse helpers.

* chore(ios): drop generated SwiftSources filelist; reconcile native i18n inventory

* chore(ios): drop generated Xcode project from tracking

Codex generated OpenClaw.xcodeproj for its simulator test run and the initial
apps/ios directory commit force-added it; xcodegen regenerates it in CI, so it
must not be tracked (matches main).

* chore(ios): reconcile native i18n inventory after rebase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant