Repository navigation
fix: macOS app relaunches normally after installation - #134074
Conversation
Co-authored-by: Vito Cappello <[email protected]>
Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 4fd5c6fb-fdcf-4c07-a3cd-e2bf5bea447f
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 4fd5c6fb-fdcf-4c07-a3cd-e2bf5bea447f
Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: c566e93b-392d-4b0b-a6ff-fde7a2e25d2d
Co-authored-by: VACInc <[email protected]>
Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: a6ad7aa3-936c-4df4-8c39-9250381cc5cd
Co-authored-by: VACInc <[email protected]>
Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 69829d8f-9623-481c-843e-7f3474599809
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 4:08 PM ET / 20:08 UTC. ClawSweeper reviewWhat this changesThe PR adds a private relaunch marker so a second transient macOS launch stops relocation attempts and shows manual recovery guidance instead of relaunching again. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessKeep open: this is a protected maintainer PR for a real first-run macOS relaunch loop, and its bounded recovery path still needs an explicit macOS proof-sufficiency decision. Priority: P1 Review scores
Verification
How this fits togetherThe macOS app detects launches from transient locations, copies or hands off to an Applications copy, then uses LaunchServices to reopen it. The new marker identifies that one relaunch attempt when deciding whether to stop a repeated transient handoff. flowchart LR
A[Transient macOS app launch] --> B[Relocation recommendation]
B --> C[Install or hand off to Applications]
C --> D[LaunchServices relaunch]
D --> E{Marked transient relaunch?}
E -->|No| F[Continue launch]
E -->|Yes| G[Show manual recovery and stop loop]
Decision needed
Why: The patch is coherent at the relocation owner, but the decisive behavior relies on a platform-specific LaunchServices argument-forwarding path not exercised by the supplied evidence. Before merge
Agent review detailsSecurityNone. PR surfaceOther +50. Total +50 across 2 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the compact one-marker guard only after a signed macOS App Translocation run shows that a second transient launch receives the marker, presents recovery guidance, and does not schedule another relaunch. Do we have a high-confidence way to reproduce the issue? No; the linked report supplies a specific v2026.8.1 macOS scenario and the source maps it to repeated relocation decisions, but this reviewer has no runnable signed App Translocation environment or after-fix trace. Is this the best way to solve the issue? Unclear; the guard is placed at the lifecycle owner and bounds both repeat outcomes, but direct proof that LaunchServices forwards the marker in the signed flow is still absent. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 54e28011b659. LabelsLabel justifications:
EvidenceWhat 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
HistoryReview history (8 earlier review cycles)
|
Co-authored-by: VACInc <[email protected]>
Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 82d819ca-7ba8-4451-99e6-002e5ff00efe
Co-authored-by: VACInc <[email protected]>
Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 5c4146ef-04ca-4010-b05e-9bddcc558b2a
Co-authored-by: VACInc <[email protected]>
Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: ec750425-0dd4-404c-823d-529244e31424
|
@clawsweeper re-review\n\nExact-head CI attempt 2 is green and the PR evidence is updated. The signed App Translocation proof gap remains explicitly recorded. |
|
🦞👀 I queued a lightweight read-only assist pass. It will post a separate answer comment and will not edit the durable ClawSweeper review comment or trigger close, merge, repair, label, or branch changes. Request: re-review\n\nExact-head CI attempt 2 is green and the PR evidence is updated. The signed App Translocation proof gap remains explicitly recorded. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
ClawSweeper assist: The exact-head CI and native regression evidence are updated, but the signed quarantined App Translocation before/after behavior remains unproven. A full correctness re-review is needed. Evidence:
Suggested next action: Source: #134074 (comment) |
Co-authored-by: VACInc <[email protected]>
Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 15cacc5f-1b75-4075-9c65-9db17b83f204
Co-authored-by: VACInc <[email protected]>
Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 62888804-db86-497f-b9bd-3f13e11ab292
Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]>
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Maintainer proof decision for head The cross-process marker is owned by Native landing validation completed successfully:
ClawSweeper's sole Non-blocking tooling follow-up discovered during landing: the trusted temporary |
|
Merged via squash.
|
* fix(macos): secure transient app relaunch Co-authored-by: Vito Cappello <[email protected]> * fix: macOS app relaunches normally after installation Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 4fd5c6fb-fdcf-4c07-a3cd-e2bf5bea447f * fix: macOS app relaunches normally after installation Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 4fd5c6fb-fdcf-4c07-a3cd-e2bf5bea447f * fix: macOS app relaunches normally after installation Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: c566e93b-392d-4b0b-a6ff-fde7a2e25d2d * fix(macos): type quarantine errno Co-authored-by: VACInc <[email protected]> * fix: macOS app relaunches normally after installation Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: a6ad7aa3-936c-4df4-8c39-9250381cc5cd * style(macos): satisfy Swift self formatting Co-authored-by: VACInc <[email protected]> * fix: macOS app relaunches normally after installation Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 69829d8f-9623-481c-843e-7f3474599809 * fix(macos): type quarantine xattr result Co-authored-by: VACInc <[email protected]> * fix: macOS app relaunches normally after installation Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 82d819ca-7ba8-4451-99e6-002e5ff00efe * test(macos): type quarantine xattr result Co-authored-by: VACInc <[email protected]> * fix: macOS app relaunches normally after installation Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 5c4146ef-04ca-4010-b05e-9bddcc558b2a * fix(macos): reuse localized relaunch recovery Co-authored-by: VACInc <[email protected]> * fix: macOS app relaunches normally after installation Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: ec750425-0dd4-404c-823d-529244e31424 * fix(macos): bind quarantine release to verified app Co-authored-by: VACInc <[email protected]> * Publish openclaw/openclaw-issue-134034 Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 15cacc5f-1b75-4075-9c65-9db17b83f204 * fix(macos): assess relaunch with Gatekeeper Co-authored-by: VACInc <[email protected]> * Publish openclaw/openclaw-issue-134034 Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 62888804-db86-497f-b9bd-3f13e11ab292 * fix(macos): bound relocation relaunch attempts Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: Vito Cappello <[email protected]> Co-authored-by: VACInc <[email protected]>
Closes #134034
What Problem This Solves
Fixes an issue where macOS could relaunch OpenClaw into App Translocation again after Install and Relaunch, causing another relocation handoff and an unbounded relaunch cycle.
Why This Change Was Made
The existing LaunchServices relaunch now carries one private relocation-attempt argument. If that launched process is still transient and would install or hand off again, OpenClaw stops the cycle, keeps the current process alive with updates disabled, and shows the existing localized instruction to open the Applications copy manually.
This keeps the successful path unchanged and removes the earlier quarantine-removal, Gatekeeper-assessment, inode-binding, and direct-exec design. The final candidate does not modify quarantine metadata or introduce a new signing/security boundary.
Production delta: +27/-2 (net +25). Tests: +25/-0.
User Impact
Most installations still relaunch automatically from Applications. If macOS translocates the installed copy again, OpenClaw no longer loops: it stops after one attempt and tells the user exactly where to open the installed copy manually.
Evidence
35c5bceff7ced212ebd30fc05eae291123a7755c.pnpm native:i18n:verifypasses.git diff --checkpasses.Worked on by
View the OpenClaw team session