Repository navigation
fix(desktop): use native system notifications - #109901
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3714d91bab
ℹ️ 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".
|
|
||
| ### Fixes | ||
|
|
||
| - **Desktop notification integration:** use native macOS and Windows notifications in the Tauri companion while retaining the Linux desktop notification backend. |
There was a problem hiding this comment.
Remove the hand-written changelog entry
Root AGENTS.md says CHANGELOG.md is release-only and that normal fixes/direct main commits should keep release-note context in the PR body, squash message, or commit metadata instead. This manual Unreleased line creates maintainer release-process risk because the release generator owns this file and can duplicate or overwrite hand-added entries, so this notification note should be removed from the changelog and kept in the commit/PR metadata.
Useful? React with 👍 / 👎.
|
Codex review: needs real behavior proof before merge. Reviewed July 17, 2026, 6:10 AM ET / 10:10 UTC. Summary PR surface: Docs +3, Other +200. Total +203 across 7 files. Reproducibility: no. the evidence proves compilation and linkage but does not reproduce the claimed backend problem on current main or demonstrate an actual native notification after the change. Review metrics: 3 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review findings
Review detailsBest possible solution: Use the native backends without silently reducing supported macOS versions, detect or safely fall back for unpackaged Windows runs, pin a reviewed upstream or published dependency, remove the changelog edit, and attach live macOS and Windows notification proof. Do we have a high-confidence way to reproduce the issue? No; the evidence proves compilation and linkage but does not reproduce the claimed backend problem on current main or demonstrate an actual native notification after the change. Is this the best way to solve the issue? No; selecting native services is reasonable, but the best fix must preserve an approved platform baseline, cover unpackaged Windows behavior, and avoid an indefinite personal-fork dependency. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f82511762ff1. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Docs +3, Other +200. Total +203 across 7 files. View PR surface stats
Security concerns:
What I checked:
Likely related people:
What the crustacean ranks mean
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
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 94f19c4c1f
ℹ️ 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".
| tauri-plugin-notifications = { git = "https://github.com/steipete/tauri-plugin-notifications.git", rev = "d20b4ff0e0e327e49fee80903478f825eac5a71a", default-features = false } | ||
|
|
||
| [target.'cfg(target_os = "windows")'.dependencies] | ||
| tauri-plugin-notifications = { git = "https://github.com/steipete/tauri-plugin-notifications.git", rev = "d20b4ff0e0e327e49fee80903478f825eac5a71a" } |
There was a problem hiding this comment.
Disable notify-rust for the Windows target
When building the Windows test bundle, this dependency line leaves the plugin's default notify-rust feature enabled. In the pinned plugin, the native Windows implementation is only compiled under cfg(target_os = "windows", not(feature = "notify-rust")), while the default feature routes desktop calls through the desktop/notify-rust backend (whose permission check returns granted). This means Windows builds do not use the new native Toast API path added by the dependency; mirror the macOS dependency and set default-features = false for Windows.
Useful? React with 👍 / 👎.
|
@clawsweeper re-review Addressed the prior findings:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* fix(desktop): use native system notifications * fix(desktop): declare notification dependency MSRV * fix(desktop): select notification backends per platform
* fix(desktop): use native system notifications * fix(desktop): declare notification dependency MSRV * fix(desktop): select notification backends per platform
What Problem This Solves
The Tauri desktop companion rendered approval and update alerts through a generic desktop notification path. On macOS that looked like a fake app window instead of a real Notification Center alert.
Why This Change Was Made
The companion now uses
tauri-plugin-notificationsfrom current upstreammain, pinned to an immutable commit:UNUserNotificationCenter.notify-rust's WinRT system-toast adapter. Source builds omit the installed app identifier, while installed builds use OpenClaw's identifier.notify-rustdesktop notification service.The dependency pin includes upstream
mainafter 0.5.0-rc.11 plus the focused Swift 6.4 release-linking repair proposed in upstream PR #269. The OpenClaw pin can return to upstream after that repair lands.Unbundled macOS development binaries skip plugin initialization because Apple's notification framework requires a real app-bundle identity. Signed
.appbundles retain the normal permission request and notification flow.Compatibility decision: the macOS deployment minimum moves from 10.13 to 13.0 because macOS 13 is the upstream plugin's supported Swift package contract. We intentionally use that maintained contract instead of carrying an unsupported lower-deployment fork.
User Impact
macOS alerts now appear as native Notification Center notifications. Windows uses native system toasts. Linux behavior stays unchanged.
AI-assisted: yes. I reviewed the implementation, dependency source, and platform behavior.
Evidence
.appbuilt successfully with Swift 6.4; signature and exact dependency linkage verified. A real OpenClaw approval notification was observed in Notification Center through the production notification path.notify-rust/WinRT; all 34 unit tests passed; optimized executable built at 16,093,696 bytes; native NSIS installer built at 3,716,021 bytes.cargo fmt --check,cargo check --locked, and all 34 unit tests passed.notify-rust, while Windows and Linux select it.Root
CHANGELOG.mdis release-owned; release-note context is recorded here.