File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ Docs: https://docs.openclaw.ai
3434
3535### Fixes
3636
37+ - **macOS AI setup:** show confirmed capability-review cancellation and retry guidance directly instead of a misleading Gateway failure headline. (#134573)
3738- **Doctor memory:** keep Matrix migration codecs separate from the live client and avoid loading the ACP runtime when no legacy session records need inspection.
3839- **Agent prompts:** keep model-identity guidance conditional so ordinary requests are not mistaken for questions about the current model.
3940
Original file line number Diff line number Diff line change @@ -913,10 +913,9 @@ extension OnboardingAISetupModel {
913913 }
914914 } catch {
915915 guard self . isCurrentAttempt ( context ) else { return }
916- // Cancellation, decoding, and transport failures after dispatch are
917- // ambiguous. Keep the marker; model-label detection is not proof that
918- // this activation and its credential mutation completed safely.
919- let failure = Self . transportFailure ( error . localizedDescription )
916+ // Confirmed wizard cancellation is an operator outcome; only other
917+ // errors need transport diagnostics and may require reconciliation.
918+ let failure = Self . activationFailure ( error )
920919 self . exposeActivationFailure ( failure , for : request )
921920 if Self . activationFailureIsDefinitive ( error ) {
922921 self . pendingActivationVerification = false
Original file line number Diff line number Diff line change @@ -459,6 +459,13 @@ extension OnboardingAISetupModel {
459459 : 150_000
460460 }
461461
462+ static func activationFailure ( _ error : Error ) -> Failure {
463+ if case OnboardingAISetupError . activationCancelled = error {
464+ return Failure ( summary : error . localizedDescription , detail : nil )
465+ }
466+ return self . transportFailure ( error . localizedDescription )
467+ }
468+
462469 static func activationFailureIsDefinitive ( _ error : Error ) -> Bool {
463470 if case OnboardingAISetupError . activationCancelled = error {
464471 return true
Original file line number Diff line number Diff line change @@ -1040,6 +1040,29 @@ struct OnboardingAISetupTests {
10401040 #expect ( model . connected == ( decision == " accept " ) )
10411041 #expect ( model . pendingActivationVerification == ( decision == " error " || decision == " retry-cancel " ) )
10421042 #expect ( model . activeAuthOption == nil )
1043+ if decision != " accept " {
1044+ let failure : OnboardingAISetupModel . Failure
1045+ if manual {
1046+ failure = try #require ( model . manualError )
1047+ } else {
1048+ guard case let . failed ( candidateFailure ) = model . statuses [ " codex-cli " ] else {
1049+ Issue . record ( " Expected a visible activation failure " )
1050+ return
1051+ }
1052+ failure = candidateFailure
1053+ }
1054+ if decision == " decline " || decision == " cancel " {
1055+ #expect ( failure . summary ==
1056+ " AI setup was cancelled. No inference route was selected. Choose a connection to try again. " )
1057+ #expect ( failure . detail == nil )
1058+ } else {
1059+ #expect ( failure . summary ==
1060+ " The Gateway setup request failed. Show details to inspect or copy the error. " )
1061+ #expect ( failure . detail == ( decision == " error "
1062+ ? " AI access was saved, but could not be applied. "
1063+ : " AI setup ended before its result was received. OpenClaw will verify the Gateway before trying again. " ) )
1064+ }
1065+ }
10431066 let requests = await recorder . snapshot ( )
10441067 #expect ( ! requests . methods . contains ( " openclaw.setup.activate " ) )
10451068 #expect ( requests . methods . filter { $0 == " openclaw.setup.activate.start " } . count == 1 )
You can’t perform that action at this time.
0 commit comments