Repository navigation
fix(macos): show confirmed setup cancellation clearly - #134654
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs changes before merge. Reviewed August 31, 2026, 10:57 PM ET / September 1, 2026, 02:57 UTC. ClawSweeper reviewWhat this changesThe PR changes macOS AI setup to show confirmed activation cancellation and retry guidance directly instead of a generic Gateway request failure. Merge readinessKeep this maintainer-owned PR open. Current main still converts a confirmed activation cancellation into the generic Gateway failure headline; the branch preserves the typed cancellation at the shared presentation boundary. One previously raised low-priority release-owned changelog edit remains. Priority: P2 Review scores
Verification
How this fits togethermacOS onboarding activates a selected AI connection through a Gateway-hosted wizard, then shows the result in a detected connection row or manual setup form. The changed boundary converts the typed activation result into operator-facing retry guidance or diagnostics. flowchart LR
A[macOS onboarding] --> B[Selected AI connection]
B --> C[Activation wizard]
C --> D[Typed activation result]
D --> E[Shared failure presentation]
E --> F[Connection row or manual form]
F --> G[Retry guidance or diagnostics]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceDocs +1, Other +29. Total +30 across 4 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 shared typed cancellation presentation helper and its matrix coverage, while removing the release-owned changelog bullet and keeping release context in the PR body or squash message. Do we have a high-confidence way to reproduce the issue? Yes. Current main converts the typed activationCancelled outcome into transportFailure at the shared catch boundary; the supplied PR context also records a real signed-app reproduction. Is this the best way to solve the issue? Yes. Classifying the exact typed error at the common activation presentation boundary avoids fragile string matching and applies uniformly to detected and manual setup. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9aa82b18253b. LabelsLabel justifications:
EvidenceAcceptance criteria:
What 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 (1 earlier review cycle)
|
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where macOS users declining runtime plugin capability review or cancelling AI activation saw “The Gateway setup request failed” even though cancellation had been confirmed. The actual cancellation and retry guidance was hidden under details.
Fixes #134573.
Why This Change Was Made
Preserve the typed confirmed-cancellation outcome at the shared activation presentation boundary. Both detected connections and manual API-key setup now show the existing cancellation message directly. Genuine transport errors and unknown activation outcomes retain their original diagnostic presentation, receipt ownership, reconciliation, and retry behavior. No protocol, configuration, persistence, consent, or provider-auth dismissal policy changes.
The UI renderer cannot recover a type that has already been reduced to a string, and string-matching in the generic transport formatter would misclassify arbitrary Gateway errors. The activation owner is the narrow shared boundary. Production changes are +10/-4 lines (net +6), including one small formatter in the existing support module to keep the lifecycle function within its complexity limit; tests add 23 lines to the existing matrix, with no new fixture or production test seam.
User Impact
Confirmed cancellation visibly says that AI setup was cancelled and invites choosing a connection to retry. It no longer implies a broken Gateway.
Evidence
7a04eca510749a966fe6f3e15505a5675b146b77: unchecked Submit and the Cancel button both show the cancellation/retry sentence directly, retry returns to review, and configuration remains byte-identical with no Codex install or model route. Developer ID signing and the 42,829-file artifact name scan passed. This was an arm64 debug proof build, not a published release.artifact_upload_unavailable; no uploaded image URL is claimed. Sanitized before/after captures were inspected and retained locally; the upload limitation remains.ClawSweeper disposition (reviewed 2026-09-01 02:21 UTC): the runtime design is accepted as the correct owner boundary. Retaining the one-line changelog entry under the active maintainer instructions for user-visible fixes; this is maintainer release-note bookkeeping, not a contributor requirement. The six production lines preserve the typed presentation contract without duplicating the lifecycle or widening the generic transport formatter. Its other rank-up request is complete: signed after-fix GUI proof and exact-head native CI both pass.
Maintainer closeout: this is the follow-up to the release-verification defect in #133793/#134573. Native preparation used the documented
OPENCLAW_ALLOW_ROOT_CHANGELOG_PR=1closeout mode while retaining exact-head hosted CI and all review gates. No release artifacts are published by this PR.Non-blocking environment follow-up: after this GUI proof, the isolated Gateway reported clean shutdown and closed its listener, but Node 24.19.0 lingered in
CompileCacheHandler::Persist→ synchronous filesystem rename during process exit. The exact task process was terminated after the prolonged cache flush; the stack sample is retained for a separate Node compile-cache shutdown-latency investigation. This does not change the cancellation or configuration evidence above, and no operator Gateway was stopped.