Skip to content

feat(macos): install transient app launches in Applications - #104661

Merged
steipete merged 1 commit into
mainfrom
agent/macos-relocate-transient-app
Jul 11, 2026
Merged

steipete merged 1 commit into
mainfrom
agent/macos-relocate-transient-app

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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

  • macOS Swift package build completed successfully.
  • 11 relocation and launch-at-login regression scenarios passed.
  • 10 updater orchestration scenarios passed.
  • 17 General Settings and 20 onboarding smoke scenarios passed.
  • Source-blind behavior contract passed all clauses and six anti-cheat probes.
  • Fresh autoreview completed with no actionable findings.
  • Full macOS Swift suite ran 1,171 tests; one unrelated concurrency test flaked only in the full parallel run, and its 18-test suite passed in isolation.

@openclaw-barnacle openclaw-barnacle Bot added app: macos App: macos size: L maintainer Maintainer-authored PR labels Jul 11, 2026
@steipete
steipete marked this pull request as ready for review July 11, 2026 19:43
@steipete
steipete merged commit 38edd69 into main Jul 11, 2026
70 of 74 checks passed
@steipete
steipete deleted the agent/macos-relocate-transient-app branch July 11, 2026 19:44
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@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: 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".

Comment on lines 745 to +746
var isAvailable: Bool {
true
self.started

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 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 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos maintainer Maintainer-authored PR size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Make transient macOS launches relocate safely

1 participant