Repository navigation
Conversation
Record completed-run provenance at the lifecycle and reply-dispatch owners, retain explicit silence, and make failed notification modules recoverable. Synchronize the existing Codex startup fixture without a timing race. Co-authored-by: roboclaw-bot <[email protected]>
Keep device and profile scope ceilings while retaining jointly granted admin authority for approval visibility and terminal recovery. Exercise the real visibility owners and preserve deterministic test lifecycle behavior. Co-authored-by: roboclaw-bot <[email protected]>
Share Gateway policy and preferences while native apps own OS permission, presentation, and captured navigation. Fence document and socket lifetimes, recover failed subscriptions, and refresh account preferences across devices. Co-authored-by: roboclaw-bot <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Consolidate native connection state, permission reconciliation, and bridge replies. Prepare browser preferences once and remove unused notification wrappers. Use notification bridge URLs only to wake the current top-document queue; preserve socket, document, and presentation lifetime checks.
|
Codex review: found issues before merge. Reviewed September 1, 2026, 5:14 AM ET / 09:14 UTC. ClawSweeper reviewWhat this changesThis branch unifies browser and native desktop notification delivery, preferences, lifecycle handling, and Control UI settings. Merge readinessKeep open: the new native notification path has two source-proven P2 defects, and its direct Git-pinned notification backend still needs source/provenance review before merge. Priority: P2 Review scores
Verification
How this fits togetherGateway lifecycle events select eligible notification targets and send them to browser or native desktop clients. The Control UI configures notification preferences and invokes native-host permission or test actions. flowchart LR
A[Agent run completes] --> B[Gateway terminal broadcaster]
B --> C[Notification eligibility]
C --> D[Browser push delivery]
C --> E[Native desktop bridge]
E --> F[Operating system notification]
G[Control UI settings] --> C
Decision needed
Why: The changed Git dependency executes in native notification paths, and repository policy requires explicit approval after dependency review; source access was unavailable during this review. Before merge
Findings
Agent review detailsSecurityNeeds attention: The direct Git-pinned native notification backend requires source and provenance review before its new native callback path can be cleared. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Preserve the known agent ID privately for terminal notification filtering, advertise native recovery capabilities and connection readiness to the UI, then review the exact dependency revision and attach native platform evidence. Do we have a high-confidence way to reproduce the issue? No executed reproduction was established; source traces show both failing paths with high confidence. Is this the best way to solve the issue? No: the proposed consolidation is directionally appropriate, but it must retain the private agent identity and accurately expose each native host's recovery capability before it is merge-ready. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1544e2345589. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
Acceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Retiring this stale feature branch. Unified browser/native notifications add five RPCs, persisted preferences, and a Git-pinned native dependency, and the branch conflicts with main and lacks native end-to-end proof. Revisit as a fresh design if needed. Closed in a sweep of stale maintainer PRs (no activity for 7+ days). Reopen with a current reproduction if this still matters. |
…144862) fix(web-push): identify completed sessions by explicit labels Show authorized explicit session labels in Names only and Detailed completion notifications. Keep Private notifications generic and preserve recipient authorization, generation matching, and ambiguity fallback. Closes #143946 Related: #133164 Validation: base label regression failed; 78 focused tests and five encrypted HTTPS delivery controls passed. Exact-head CI 40586819281 has only the five existing curly lint diagnostics, matching scheduled-main 40586712140 job 122480223353; its aggregate gate is derived. Co-authored-by: Alix-007 <[email protected]>
…penclaw#144862) fix(web-push): identify completed sessions by explicit labels Show authorized explicit session labels in Names only and Detailed completion notifications. Keep Private notifications generic and preserve recipient authorization, generation matching, and ambiguity fallback. Closes openclaw#143946 Related: openclaw#133164 Validation: base label regression failed; 78 focused tests and five encrypted HTTPS delivery controls passed. Exact-head CI 40586819281 has only the five existing curly lint diagnostics, matching scheduled-main 40586712140 job 122480223353; its aggregate gate is derived. Co-authored-by: Alix-007 <[email protected]>
What Problem This Solves
Follow-up to #129348, which merged as 20a6147. Browser notifications had Gateway preferences and delivery, while native Settings exposed a separate permission/local-test path. This connects the desktop apps to the same notification policy and gives browser and native devices one Settings experience.
Why This Change Was Made
The Gateway owns category selection, bounded lock-screen text, account defaults, device overrides, current paired-device/profile authority, and session visibility. Native subscriptions belong to exact authenticated sockets; the apps own OS permission, presentation, removal, and navigation back to the captured Gateway. The browser retains its durable Web Push transport for offline delivery. Native clicks never approve or execute anything.
Native delivery now lives for the app connection rather than a Dashboard window. Reconnect replays at most 32 recent eligible pending approvals quietly, while the Dashboard retains the complete list. Terminal events, expiry, connection replacement, and lost authority retire only the corresponding owned notifications. Swift invalidates presentation claims before suspended OS operations finish; Tauri binds delivery and click routing to each physical connection. Delayed acknowledgements cannot hide an OS presentation error. Failed native subscription attempts can be retried through Settings without restarting a healthy Gateway connection or entering an automatic reconnect loop. Settings requests are bound to the current document as well as the connection: reload, close, or replacement revokes pending work before effects. Tauri verifies the exact queued request in the top document before admitting its navigation transport, so a child frame cannot invent a privileged request.
Simplification pass: removed 152 production lines with no net test deletion. Tauri now owns notification connection state under one lock and shares its configuration-reset path; bridge URLs carry only a request ID, with payloads claimed from the current top document. Swift shares permission/subscription reconciliation and response construction. Gateway delivery prepares preferences once and removes descriptor wrappers plus the unused alternate removal path. Exact connection, document, and presentation ownership checks remain.
User Impact
Settings selects one transport: an embedded app never falls back to Web Push. Account defaults are shared; browser and native device overrides stay separate. Native Enable explicitly requests permission and restores a previously muted device without discarding its other settings. Profileless native overrides are visibly temporary and reset on reconnect. Changes to shared account defaults on another device refresh open native Settings. Existing APNS, node system.notify, pairing notices, and native exec decision dialogs remain separate.
Additional repairs carried forward after the original PR merged: completion notifications require a fact from the actual run owner (not any chat-final frame), lazy browser notification loading reports actionable reload guidance, and effective admin authority survives device/profile scope intersection without elevating either side. The startup-retry and Android fixture fixes remain included.
The protocol adds five notification RPCs and one targeted event. There are no new configuration keys, SQLite schema changes, or protocol-version bumps; preferences reuse the existing user preference store. Tauri pins the reviewed Rust listener change in tauri-plugin-notifications#1. The Windows companion gains ordinary PR test coverage without release signing or publishing.
Evidence
Validation so far:
The simplification was rechecked with 69 Gateway/preference tests, all 151 executable Linux Rust tests, the real Tauri client scenarios and WebKitGTK bridge probe, Swift app/test-bundle compilation, the complete changed-file static check, and a clean independent Codex review. The default Swift build backend stalled during SDK cache setup; the repository CI backend completed the compile-only check. Native macOS/Windows runtime proof remains outstanding.
The full changed-file static check passed: core/UI/plugin test types, scoped lint and styles, formatting, dead exports, protocol/state/database guards, runtime cycles, and pairing checks. The assertion-safety baseline reduction and workflow syntax were also checked. Independent Codex review of the complete candidate passed with no actionable P0–P2 findings after the native lifecycle, retry, and shared-preference repairs. Before/after UI screenshots and a live browser proof video were captured and inspected. Attachment upload is pending because the configured GitHub CLI rejects attachment arguments before upload. The screenshots use deterministic committed/current-renderer fixtures, not OS-delivery evidence.
Named follow-up: Tauri secondary Gateway discovery windows need their own authenticated native connection owners before they can expose notification controls; this PR follows the configured primary Gateway. Swift already covers primary and saved-profile Gateways.
Diff accounting against the follow-up base: production +4100/-745 (net +3355) after discounting 62 unchanged Swift subscription lines moved between files; tests/support +2400/-224; generated protocol clients +350. The production growth adds the native app-lifetime subscriptions and document/socket lifecycle owners across Swift and Tauri. Presentation and authorization policy are shared with the browser instead of duplicated. Configuration surfaces added: 0; SQLite schema changes: 0.
Known dependency boundary: Linux callbacks inherit notify-rust's trusted desktop-session-bus model and do not attest a user action. Sender binding remains a named upstream hardening follow-up; OpenClaw resolves only live owned IDs and applies normal authorization at the destination.
Thanks to the contributors to #129348; the original contributor attribution is preserved in the carried-forward commits.