Repository navigation
fix(macos): recover onboarding and prove packaged bootstrap - #119850
Patrick-Erichsen wants to merge 3 commits into
Conversation
|
Codex review: found issues before merge. Reviewed August 21, 2026, 5:40 AM ET / 09:40 UTC. ClawSweeper reviewWhat this changesThe PR separates macOS CLI-install and Gateway-readiness outcomes, adjusts readiness recovery, and adds packaged macOS bootstrap CI coverage. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked by patch quality or review findings - 7 items remain Keep open, but block merge: the branch drops current main’s profile-scoped Keychain identity, mixing credentials and activation bindings between named macOS profiles. It also needs a rebase because GitHub reports a dirty merge state. Priority: P1 Review scores
Verification
How this fits togethermacOS onboarding installs a local CLI, starts the Gateway LaunchAgent, and reflects the resulting readiness state in the setup UI. Named profiles isolate Gateway credentials and activation binding through profile-specific Keychain service names. flowchart LR
A[macOS onboarding] --> B[CLI installation]
B --> C[Gateway startup]
C --> D[Readiness owner]
D --> E[Setup UI]
F[Named app profile] --> G[Profile Keychain service]
G --> C
H[Packaged macOS CI] --> A
Before merge
Findings
Agent review detailsSecurityNeeds attention: The Keychain namespace change weakens the existing named-profile credential and activation-binding isolation boundary. PR surfaceTests +265, Config +34, Other +1225. Total +1524 across 24 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase onto current main, retain the active-profile suffix after applying DEBUG bundle isolation in both Keychain stores, then reapply only lifecycle changes still needed by the current readiness owner and prove the exact head on macOS. Do we have a high-confidence way to reproduce the issue? Yes: run two named profiles in one app bundle; current main gives them distinct Keychain services, while this branch resolves both to the same service. Is this the best way to solve the issue? No: bundle isolation is useful, but it must compose with current main’s profile suffix rather than replace it. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e17c858bae06. LabelsLabel justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (14 earlier review cycles; latest 8 shown)
|
2b3f3d3 to
206712c
Compare
80e80d2 to
e166235
Compare
27b08ed to
7d25c71
Compare
|
Closing this as superseded by the focused repairs that landed after this branch was prepared. #119831 and #121012 addressed the earlier onboarding/readiness pieces. #128350 then explicitly extracted the remaining checklist-state repair from this PR, proved the packaged macOS behavior, landed as cfa802d73e54, and closed #120050. This 24-file branch is now conflict-stale and its latest reviewed head also regresses named-profile Keychain isolation. It is no longer the canonical path for the reported onboarding defect. Thanks @Patrick-Erichsen for the investigation and proof work. |
Fixes #120050
Related: #119759
Related: #119770
Follow-up to #119831 and #121012
What Problem This Solves
#121012 fixed the confirmed short first-run timeout, but macOS onboarding could still report the wrong result after delayed Gateway startup:
The migration-lease conflict reported in #120050 was observed, but its causal role is still unproven. This change fixes the lifecycle/readiness failures without adding lease-specific policy to the app.
Why This Change Was Made
openclaw/ci-gateand routes changes to its complete harness dependency graph onto macOS CI.User Impact
A completed CLI install remains visibly successful if the later Gateway step fails. Delayed Gateway startup can recover to the correct success state, including when multiple readiness checks overlap. The packaged first-launch path is now guarded in CI.
Evidence
main.git diff --checkpassed.macos-swiftmacos-app-bootstrapopenclaw/ci-gateReproduction Boundary
The E2E deterministically reproduces delayed first-launch readiness by holding the installed launchd Gateway beyond the former onboarding timeout, then releasing it and requiring the UI lifecycle to recover. It does not fabricate a migration-lease conflict because the issue does not yet prove that conflict caused the stale UI state.