Repository navigation
feat(macos): install transient app launches in Applications - #104661
Conversation
|
Merged via squash.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c14b58441f
ℹ️ 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".
| var isAvailable: Bool { | ||
| true | ||
| self.started |
There was a problem hiding this comment.
Re-enable dashboard updates after starting Sparkle
When a dashboard URL/reopen callback creates the dashboard before applicationDidFinishLaunching (the applicationWillFinishLaunching comment says this can happen), this new availability gate returns false until start() runs later. DashboardWindowController only installs the native update message handler when it is constructed or explicitly reconfigured, so that early-open dashboard keeps the update bridge disabled even after Sparkle starts; re-enable existing dashboard controllers after start() or avoid reporting unavailable for the pre-finish window.
Useful? React with 👍 / 👎.
Closes #104645
What Problem This Solves
Resolves a problem where users launching OpenClaw from a disk image, App Translocation, Downloads, or Desktop could keep running a temporary copy with unreliable updates and launch-at-login behavior. Reopening the original download after installation also needed a safe way to avoid another install prompt.
Why This Change Was Made
Transient launches now offer a staged Applications install, hand off only to an equal-or-newer installed copy that matches the current app's code-signing requirement, and preserve stable custom install locations. Sparkle and path-based persistent integrations remain disabled while a transient copy continues running.
User Impact
Downloaded and disk-image launches can install and reopen OpenClaw from Applications. Existing trusted installations receive the launch without repeated prompts; unrelated or untrusted same-named apps are never replaced or launched. Users who decline or cannot install can keep using the temporary copy, but updates and enabling launch at login stay unavailable until the app is moved.
Evidence