Skip to content

fix(macos): show confirmed setup cancellation clearly - #134654

Merged
steipete merged 1 commit into
mainfrom
codex/macos-cancellation-headline
Sep 1, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/macos-cancellation-headline

Conversation

@steipete

@steipete steipete commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Before: personally reproduced through Computer Use in the real signed macOS app and an isolated real Gateway while verifying [Bug]: required Codex runtime dead-ends on capability consent #133793. Declining review preserved configuration, installed no runtime plugin, and allowed retry; the row incorrectly showed the generic Gateway headline. See [Bug]: required Codex runtime dead-ends on capability consent #133793 (comment).
  • Extended the existing shared-wizard matrix to check actual candidate/manual failure presentation for decline, cancel, accepted activation, terminal failure, and unresolved cancellation. Existing transport and ownership-race coverage remains intact.
  • Independent source inspection and managed Codex autoreview found no accepted/actionable findings in the requested scope. The owner still consumes the authoritative wizard result; Codex turn-interrupt semantics are unchanged.
  • Exact-head CI 33461866326 passed, including all 10 consent cases, 1,906 app tests, 1,546 shared-kit tests, and named-profile coverage. The actual changed gate passed with pinned Swift tools and all seven selected Mac tooling shards. Signed after-fix GUI proof passed through Computer Use on exact app/worker revision 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.
  • Sanitized before screenshot is retained locally. GitHub's attachment endpoint returned HTTP 403 and the repository artifact broker reported 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=1 closeout 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.

@clawsweeper

clawsweeper Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added app: macos App: macos size: XS maintainer Maintainer-authored PR labels Sep 1, 2026
@steipete steipete self-assigned this Sep 1, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 1, 2026
@clawsweeper

clawsweeper Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed August 31, 2026, 10:57 PM ET / September 1, 2026, 02:57 UTC.

ClawSweeper review

What this changes

The PR changes macOS AI setup to show confirmed activation cancellation and retry guidance directly instead of a generic Gateway request failure.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep 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
Reviewed head: 7a04eca510749a966fe6f3e15505a5675b146b77

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The focused owner-boundary repair and regression matrix are solid; remove the release-owned metadata edit before merge.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its body nevertheless records exact-head signed macOS GUI verification of the cancellation and retry path.
Patch quality 🐚 platinum hermit (4/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its body nevertheless records exact-head signed macOS GUI verification of the cancellation and retry path.
Evidence reviewed 6 items Current-main defect: Current main catches the activation error and always passes its text to the generic transport formatter, although the wizard can already emit a typed cancellation.
Typed cancellation contract: A terminal cancelled wizard result becomes activationCancelled, whose localized message contains the existing retry guidance.
Owner-boundary repair: The introduced helper preserves only the exact activationCancelled case and delegates all other errors to the established transport formatter.
Findings 1 actionable finding [P3] Remove the release-owned changelog entry
Security None None.

How this fits together

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

Before merge

  • Remove the release-owned changelog entry (P3) - This previously raised P3 remains on the same branch head. CHANGELOG.md is release-owned for this repository, so keep the user-visible release context in the PR body or squash message and remove this introduced line before merge.
  • Resolve merge risk (P1) - The branch still edits release-owned CHANGELOG.md; release generation should derive this entry from merged work rather than carry it in a normal PR.
  • Resolve merge risk (P1) - The bug fix has a net production increase of six lines; the small helper is justified because the existing transport formatter accepts only reduced error text and cannot preserve the typed cancellation distinction.
  • Complete next step (P2) - A narrow mechanical repair can remove the remaining release-owned file edit without altering the validated macOS behavior.

Findings

  • [P3] Remove the release-owned changelog entry — CHANGELOG.md:37
Agent review details

Security

None.

PR surface

Docs +1, Other +29. Total +30 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 1 1 0 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 3 33 4 +29
Total 4 34 4 +30

Review metrics

Metric Value Why it matters
Production versus test delta production +6, tests +23, release metadata +1 The production growth is a localized typed-outcome formatter; the test expansion exercises both detected and manual wizard presentations.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #134573
Summary: This PR is the candidate fix for the open macOS cancellation-presentation report.

Members:

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

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    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.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

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

  • [P3] Remove the release-owned changelog entry — CHANGELOG.md:37
    This previously raised P3 remains on the same branch head. CHANGELOG.md is release-owned for this repository, so keep the user-visible release context in the PR body or squash message and remove this introduced line before merge.
    Confidence: 0.99

Overall correctness: patch is correct
Overall confidence: 0.95

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 9aa82b18253b.

Labels

Label justifications:

  • P2: This corrects misleading but nonblocking feedback in a macOS onboarding flow.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its body nevertheless records exact-head signed macOS GUI verification of the cancellation and retry path.

Evidence

Acceptance criteria:

  • [P1] git diff --check.
  • [P1] git diff --no-ext-diff --stat bacc134...HEAD.

What I checked:

Likely related people:

  • steipete: 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.

  • Remove the CHANGELOG.md entry and retain release context in the PR body or squash message.

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 (1 earlier review cycle)
  • reviewed 2026-09-01T02:21:21.201Z sha 7a04eca :: found issues before merge. :: [P3] Remove the release-owned changelog entry

@steipete
steipete merged commit 7af3faf into main Sep 1, 2026
78 checks passed
@steipete
steipete deleted the codex/macos-cancellation-headline branch September 1, 2026 03:01
@steipete

steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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 P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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.

macOS: show confirmed setup cancellation instead of a Gateway failure

1 participant