Skip to content

fix: macOS app relaunches normally after installation - #134074

Merged
roboclaw-bot merged 19 commits into
mainfrom
openclaw/openclaw-issue-134034
Aug 31, 2026
Merged

roboclaw-bot merged 19 commits into
mainfrom
openclaw/openclaw-issue-134034

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Exact-head CI is pending on 35c5bceff7ced212ebd30fc05eae291123a7755c.
  • Focused regression covers both repeated handoff and repeated install recommendations while proving ordinary stable launch and unmarked launch remain unaffected.
  • pnpm native:i18n:verify passes.
  • Changed policy guards pass; the Linux-host macOS support lane completed 283 runnable tests with one previously reproduced host-specific Corepack-path fixture failure unrelated to this patch.
  • Final full-candidate P1 autoreview: scoped-clean, 0.94 confidence, no accepted actionable findings.
  • git diff --check passes.
  • No quarantine metadata, code-signing policy, Gatekeeper, or direct executable handoff behavior is changed.

Worked on by


View the OpenClaw team session

roboclaw-bot and others added 2 commits August 31, 2026 11:05
Worked on by:
- @VACInc

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: 4fd5c6fb-fdcf-4c07-a3cd-e2bf5bea447f
@clawsweeper

clawsweeper Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review August 31, 2026 11:27
@openclaw-barnacle openclaw-barnacle Bot added app: macos App: macos size: M maintainer Maintainer-authored PR labels Aug 31, 2026
roboclaw-bot and others added 4 commits August 31, 2026 11:34
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
Worked on by:
- @VACInc

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: a6ad7aa3-936c-4df4-8c39-9250381cc5cd
@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 31, 2026
roboclaw-bot and others added 2 commits August 31, 2026 11:46
Worked on by:
- @VACInc

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: 69829d8f-9623-481c-843e-7f3474599809
@clawsweeper

clawsweeper Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 4:08 PM ET / 20:08 UTC.

ClawSweeper review

What this changes

The 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 provenance

Possible regression — probable (reproduction; reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep 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
Reviewed head: 35c5bceff7ced212ebd30fc05eae291123a7755c
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The source-level loop bound is coherent and narrowly scoped, but platform-specific relaunch behavior remains unobserved.
Proof confidence 🌊 off-meta tidepool Not applicable: This member/bot PR is exempt from the external-contributor proof gate, but the supplied evidence still lacks a signed macOS App Translocation after-fix observation; that remains a maintainer proof-sufficiency decision.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member/bot PR is exempt from the external-contributor proof gate, but the supplied evidence still lacks a signed macOS App Translocation after-fix observation; that remains a maintainer proof-sufficiency decision.
Evidence reviewed 7 items Introduced recovery boundary: The PR adds a fixed relaunch marker, checks it before acting on a second handoff/install recommendation, and passes it through the existing LaunchServices relaunch command.
Caller and visible outcome: The macOS application calls the relocation owner during launch; the new guarded outcome continues without the updater, then proceeds to normal connectivity and UI startup.
Focused predicate coverage: The added test covers marked repeated handoff and replacement-install recommendations, while retaining unmarked and stable-launch cases.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Decision needed

Question Recommendation
Should this PR require a signed macOS App Translocation after-fix observation before merge, or is the bounded source/test evidence sufficient for this release? Require signed relaunch proof: Capture a redacted after-fix run of the reported install-and-relaunch flow showing one recovery prompt and no subsequent relaunch.

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

  • Resolve merge risk (P1) - The loop stop depends on macOS LaunchServices delivering the fixed argument through /usr/bin/open --args; no signed App Translocation after-fix observation is available in the supplied evidence.
  • Resolve merge risk (P1) - Production code grows by 25 net lines for a bug fix. A cross-process marker is required because no existing relocation state survives the LaunchServices boundary, but the added boundary should remain compact.
  • Resolve merge risk (P1) - Current-main blob hydration was incomplete in this checkout after a DNS failure, so source-level equivalence beyond the verified touched-path tree comparison was not independently inspected.
Agent review details

Security

None.

PR surface

Other +50. Total +50 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 52 2 +50
Total 2 52 2 +50

Review metrics

Metric Value Why it matters
Production versus test delta production +25 net, tests +25 The bug fix introduces a cross-process marker and guard; its production growth has a concrete lifecycle-boundary purpose but needs platform proof.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #134034
Summary: This PR explicitly targets the canonical macOS App Translocation relaunch-loop report and is its open candidate fix.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Prove the signed recovery path (recommended)
    Before merge, capture redacted macOS evidence that the marked transient relaunch stops after one attempt and leaves the user with the stated manual recovery path.
  2. Accept the platform-proof gap
    A maintainer may accept the focused source and CI evidence while explicitly owning the remaining LaunchServices forwarding uncertainty.

Technical review

Best 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.

Labels

Label justifications:

  • P1: This PR addresses a first-run macOS relaunch loop that can prevent onboarding from reaching a usable app state.
  • merge-risk: 🚨 availability: If the LaunchServices marker is not delivered on the signed App Translocation path, the original repeated-relaunch failure remains possible.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member/bot PR is exempt from the external-contributor proof gate, but the supplied evidence still lacks a signed macOS App Translocation after-fix observation; that remains a maintainer proof-sufficiency decision.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Provide redacted signed macOS evidence of the reported install-and-relaunch flow stopping after one marked transient attempt.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (8 earlier review cycles)
  • reviewed 2026-08-31T11:54:16.677Z sha 96edd3e :: needs maintainer review before merge. :: none
  • reviewed 2026-08-31T12:07:10.386Z sha ab3d8e9 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-31T12:22:10.277Z sha 885f4fe :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-31T13:30:27.843Z sha c504886 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-31T16:08:37.982Z sha c504886 :: needs real behavior proof before merge. :: [P1] Remove quarantine through the verified bundle reference
  • reviewed 2026-08-31T16:55:06.815Z sha 83fcdff :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-31T17:08:49.213Z sha a6bc696 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-31T18:26:19.566Z sha 35c5bce :: needs maintainer review before merge. :: none

roboclaw-bot and others added 2 commits August 31, 2026 11:59
Worked on by:
- @VACInc

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: 82d819ca-7ba8-4451-99e6-002e5ff00efe
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 31, 2026
roboclaw-bot and others added 4 commits August 31, 2026 12:16
Worked on by:
- @VACInc

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: 5c4146ef-04ca-4010-b05e-9bddcc558b2a
Worked on by:
- @VACInc

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: ec750425-0dd4-404c-823d-529244e31424
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

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

@clawsweeper

clawsweeper Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper assist is taking a look at your question.

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.

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper

clawsweeper Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

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: @clawsweeper review


Source: #134074 (comment)
Assist reasoning: high.

roboclaw-bot and others added 4 commits August 31, 2026 16:45
Worked on by:
- @VACInc

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: 15cacc5f-1b75-4075-9c65-9db17b83f204
Worked on by:
- @VACInc

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: 62888804-db86-497f-b9bd-3f13e11ab292
@roboclaw-bot
roboclaw-bot marked this pull request as draft August 31, 2026 17:01
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review August 31, 2026 17:01
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 31, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@roboclaw-bot

roboclaw-bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Collaborator Author

Maintainer proof decision for head 35c5bceff7ced212ebd30fc05eae291123a7755c: accept the unavailable signed macOS App Translocation observation for this bounded repair.

The cross-process marker is owned by ApplicationRelocator, stops both repeated relocation recommendations, and does not alter quarantine, Gatekeeper, signing, or installed-app trust checks. Exact-head CI is green, including macos-swift, macos-node, native-i18n, security-fast, and openclaw/ci-gate (run 33424325396). Fresh autoreview against current origin/main is scoped-clean with no accepted/actionable P0 findings or exposed credentials.

Native landing validation completed successfully:

  • .agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main
  • scripts/pr review-init 134074
  • scripts/pr review-artifacts-init 134074
  • scripts/pr review-validate-artifacts 134074
  • OPENCLAW_TESTBOX=1 scripts/pr prepare-run 134074

prepare-run reused the green exact-head hosted gate (hosted_exact_or_recent_parent) and confirmed the remote PR head remained unchanged; no rebase or push was needed.

ClawSweeper's sole Rank-up moves: item—signed after-fix evidence—is explicitly skipped because no signing-capable GUI Mac is available to this landing session. That limitation remains recorded; it is not being represented as live proof.

Non-blocking tooling follow-up discovered during landing: the trusted temporary scripts/pr anchor twice omitted its inventoried scripts/lib/record-shared.mjs dependency when invoked from the older PR checkout. Landing continued from a clean worktree at the exact origin/main wrapper revision; the anchor extraction-completeness bug should be repaired separately.

@roboclaw-bot
roboclaw-bot merged commit 43f76f3 into main Aug 31, 2026
100 of 103 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/openclaw-issue-134034 branch August 31, 2026 23:33
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 1, 2026
* 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]>
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 merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: macOS app relaunches from AppTranslocation after Install and Relaunch

2 participants