Skip to content

Commit df72781

Browse files
authored
fix(macos): make the whole AI candidate row clickable and clear stale exhausted verdicts (#121928)
* fix(macos): make the whole AI candidate row clickable and clear stale exhausted verdicts Live-testing pick-during-testing on 2026-08-11 showed clicks on a candidate row's blank stretch (between the title/subtitle texts or over the spacer) silently doing nothing: plain-style buttons only hit-test opaque label pixels. A user trying to pick Claude Code while Codex auto-tests can click the visually highlighted row and get no outcome. .contentShape(Rectangle()) makes the full row hit-test. Also, after auto-candidates exhaust, a user-picked retest left the stale "None of the found options worked" card up while the new test visibly ran; userSelect now clears exhaustedAutoCandidates when a fresh attempt begins. * test(tooling): drop stateless poll tests from stateful-helper fixtures Main went red when #121923 rewrote the outbound poll tests to be order-independent and removed their stateful helper import/file; this lane-config test hardcoded both as stateful-helper classification fixtures. Folded into this PR per red-main landing policy.
1 parent 00d65b6 commit df72781

5 files changed

Lines changed: 84 additions & 40 deletions

File tree

‎apps/.i18n/native-source.json‎

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -35171,303 +35171,303 @@
3517135171
},
3517235172
{
3517335173
"kind": "ui-named-argument",
35174-
"line": 390,
35174+
"line": 394,
3517535175
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3517635176
"source": "No key-based providers are available",
3517735177
"surface": "apple",
3517835178
"id": "native.apple.5f28927fe23c11cb"
3517935179
},
3518035180
{
3518135181
"kind": "ui-named-argument",
35182-
"line": 391,
35182+
"line": 395,
3518335183
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3518435184
"source": "Enable or install a text-inference provider plugin on this Gateway, then check again.",
3518535185
"surface": "apple",
3518635186
"id": "native.apple.aa4be25696c3f5fc"
3518735187
},
3518835188
{
3518935189
"kind": "ui-named-argument",
35190-
"line": 393,
35190+
"line": 397,
3519135191
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3519235192
"source": "Check again",
3519335193
"surface": "apple",
3519435194
"id": "native.apple.89790664bd5e0758"
3519535195
},
3519635196
{
3519735197
"kind": "ui-call",
35198-
"line": 407,
35198+
"line": 411,
3519935199
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3520035200
"source": "Set up a local model",
3520135201
"surface": "apple",
3520235202
"id": "native.apple.82148c7c60e4fb74"
3520335203
},
3520435204
{
3520535205
"kind": "ui-call",
35206-
"line": 409,
35206+
"line": 413,
3520735207
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3520835208
"source": "Connect a local model service, or prepare a model on this Gateway.",
3520935209
"surface": "apple",
3521035210
"id": "native.apple.780c1aa1c8868cc4"
3521135211
},
3521235212
{
3521335213
"kind": "ui-localized-call",
35214-
"line": 433,
35214+
"line": 437,
3521535215
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3521635216
"source": "Connect / Set up",
3521735217
"surface": "apple",
3521835218
"id": "native.apple.c218bd844ba8a0ac"
3521935219
},
3522035220
{
3522135221
"kind": "ui-call",
35222-
"line": 453,
35222+
"line": 457,
3522335223
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3522435224
"source": "Sign in with a provider",
3522535225
"surface": "apple",
3522635226
"id": "native.apple.7fc409b6aaa6d3b9"
3522735227
},
3522835228
{
3522935229
"kind": "ui-call-concatenated",
35230-
"line": 455,
35230+
"line": 459,
3523135231
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3523235232
"source": "Use an existing subscription or provider account. OpenClaw opens the provider’s own sign-in flow, then verifies it with a real reply.",
3523335233
"surface": "apple",
3523435234
"id": "native.apple.4a1e5a5600b907f4"
3523535235
},
3523635236
{
3523735237
"kind": "ui-call",
35238-
"line": 470,
35238+
"line": 474,
3523935239
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3524035240
"source": "More sign-in options",
3524135241
"surface": "apple",
3524235242
"id": "native.apple.14b23c357d7a9eff"
3524335243
},
3524435244
{
3524535245
"kind": "ui-call",
35246-
"line": 499,
35246+
"line": 503,
3524735247
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3524835248
"source": "API Keys",
3524935249
"surface": "apple",
3525035250
"id": "native.apple.634c5b2f1e8ec40f"
3525135251
},
3525235252
{
3525335253
"kind": "conditional-branch",
35254-
"line": 539,
35254+
"line": 543,
3525535255
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3525635256
"source": "Pair",
3525735257
"surface": "apple",
3525835258
"id": "native.apple.10971b41012d4f36"
3525935259
},
3526035260
{
3526135261
"kind": "conditional-branch",
35262-
"line": 539,
35262+
"line": 543,
3526335263
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3526435264
"source": "Sign in",
3526535265
"surface": "apple",
3526635266
"id": "native.apple.f431c2a7838e89d7"
3526735267
},
3526835268
{
3526935269
"kind": "conditional-branch",
35270-
"line": 556,
35270+
"line": 560,
3527135271
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3527235272
"source": "OpenClaw will detect and verify the prepared model before using it.",
3527335273
"surface": "apple",
3527435274
"id": "native.apple.97b24c854f768998"
3527535275
},
3527635276
{
3527735277
"kind": "conditional-branch",
35278-
"line": 557,
35278+
"line": 561,
3527935279
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3528035280
"source": "Credentials stay on this Gateway and are saved only after the live test succeeds.",
3528135281
"surface": "apple",
3528235282
"id": "native.apple.869fe436119bb8a6"
3528335283
},
3528435284
{
3528535285
"kind": "ui-call",
35286-
"line": 586,
35286+
"line": 590,
3528735287
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3528835288
"source": "Open sign-in page…",
3528935289
"surface": "apple",
3529035290
"id": "native.apple.3d5ffc1c8a803630"
3529135291
},
3529235292
{
3529335293
"kind": "conditional-branch",
35294-
"line": 594,
35294+
"line": 598,
3529535295
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3529635296
"source": "Starting local model setup…",
3529735297
"surface": "apple",
3529835298
"id": "native.apple.91cd595c858a6ea7"
3529935299
},
3530035300
{
3530135301
"kind": "conditional-branch",
35302-
"line": 595,
35302+
"line": 599,
3530335303
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3530435304
"source": "Starting secure sign-in…",
3530535305
"surface": "apple",
3530635306
"id": "native.apple.bb3352787887c424"
3530735307
},
3530835308
{
3530935309
"kind": "conditional-branch",
35310-
"line": 602,
35310+
"line": 606,
3531135311
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3531235312
"source": "Model setup didn’t complete",
3531335313
"surface": "apple",
3531435314
"id": "native.apple.ba9a46f1e6c4d477"
3531535315
},
3531635316
{
3531735317
"kind": "conditional-branch",
35318-
"line": 603,
35318+
"line": 607,
3531935319
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3532035320
"source": "Sign-in didn’t complete",
3532135321
"surface": "apple",
3532235322
"id": "native.apple.d7519516740bfc93"
3532335323
},
3532435324
{
3532535325
"kind": "ui-call",
35326-
"line": 613,
35326+
"line": 617,
3532735327
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3532835328
"source": "Cancel",
3532935329
"surface": "apple",
3533035330
"id": "native.apple.b72a34ae3707531f"
3533135331
},
3533235332
{
3533335333
"kind": "ui-call",
35334-
"line": 636,
35334+
"line": 640,
3533535335
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3533635336
"source": "Finish in your browser",
3533735337
"surface": "apple",
3533835338
"id": "native.apple.012f9f442abb9624"
3533935339
},
3534035340
{
3534135341
"kind": "ui-call",
35342-
"line": 652,
35342+
"line": 656,
3534335343
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3534435344
"source": "Copy",
3534535345
"surface": "apple",
3534635346
"id": "native.apple.d9f2c3523534fd83"
3534735347
},
3534835348
{
3534935349
"kind": "ui-call",
35350-
"line": 661,
35350+
"line": 665,
3535135351
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3535235352
"source": "Expires in \\(minutes) minutes",
3535335353
"surface": "apple",
3535435354
"id": "native.apple.acb7041e820bfb87"
3535535355
},
3535635356
{
3535735357
"kind": "ui-call",
35358-
"line": 668,
35358+
"line": 672,
3535935359
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3536035360
"source": "Open sign-in page",
3536135361
"surface": "apple",
3536235362
"id": "native.apple.3e537aee648f41a5"
3536335363
},
3536435364
{
3536535365
"kind": "ui-call",
35366-
"line": 696,
35366+
"line": 700,
3536735367
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3536835368
"source": "Option",
3536935369
"surface": "apple",
3537035370
"id": "native.apple.b83aa2f66237a802"
3537135371
},
3537235372
{
3537335373
"kind": "ui-call",
35374-
"line": 702,
35374+
"line": 706,
3537535375
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3537635376
"source": "Confirm",
3537735377
"surface": "apple",
3537835378
"id": "native.apple.675c1390266b5ccb"
3537935379
},
3538035380
{
3538135381
"kind": "ui-localized-call",
35382-
"line": 711,
35382+
"line": 715,
3538335383
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3538435384
"source": "I've signed in",
3538535385
"surface": "apple",
3538635386
"id": "native.apple.707648a54749ed5b"
3538735387
},
3538835388
{
3538935389
"kind": "conditional-branch",
35390-
"line": 713,
35390+
"line": 717,
3539135391
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3539235392
"source": "Continue",
3539335393
"surface": "apple",
3539435394
"id": "native.apple.b98630f560f6bada"
3539535395
},
3539635396
{
3539735397
"kind": "conditional-branch",
35398-
"line": 713,
35398+
"line": 717,
3539935399
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3540035400
"source": "Submit",
3540135401
"surface": "apple",
3540235402
"id": "native.apple.955e33c4ed4d5d3a"
3540335403
},
3540435404
{
3540535405
"kind": "ui-call",
35406-
"line": 718,
35406+
"line": 722,
3540735407
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3540835408
"source": "Connect with an API key or token",
3540935409
"surface": "apple",
3541035410
"id": "native.apple.c3e8449bcdd9b054"
3541135411
},
3541235412
{
3541335413
"kind": "ui-call",
35414-
"line": 727,
35414+
"line": 731,
3541535415
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3541635416
"source": "Provider",
3541735417
"surface": "apple",
3541835418
"id": "native.apple.a9c9e609d96ec001"
3541935419
},
3542035420
{
3542135421
"kind": "ui-call",
35422-
"line": 735,
35422+
"line": 739,
3542335423
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3542435424
"source": "API key or token",
3542535425
"surface": "apple",
3542635426
"id": "native.apple.2fb28e8b6b9e3918"
3542735427
},
3542835428
{
3542935429
"kind": "ui-call",
35430-
"line": 747,
35430+
"line": 751,
3543135431
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3543235432
"source": "Connect",
3543335433
"surface": "apple",
3543435434
"id": "native.apple.6621d46d9ebfefa6"
3543535435
},
3543635436
{
3543735437
"kind": "ui-named-argument",
35438-
"line": 763,
35438+
"line": 767,
3543935439
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3544035440
"source": "That key didn’t work",
3544135441
"surface": "apple",
3544235442
"id": "native.apple.953d477f3f3f2efa"
3544335443
},
3544435444
{
3544535445
"kind": "ui-call",
35446-
"line": 845,
35446+
"line": 849,
3544735447
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3544835448
"source": "Open help…",
3544935449
"surface": "apple",
3545035450
"id": "native.apple.f91347240d07008f"
3545135451
},
3545235452
{
3545335453
"kind": "conditional-branch",
35454-
"line": 884,
35454+
"line": 888,
3545535455
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3545635456
"source": "Hide details",
3545735457
"surface": "apple",
3545835458
"id": "native.apple.1af12c60f9a7c364"
3545935459
},
3546035460
{
3546135461
"kind": "conditional-branch",
35462-
"line": 884,
35462+
"line": 888,
3546335463
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3546435464
"source": "Show details",
3546535465
"surface": "apple",
3546635466
"id": "native.apple.5e7e4e9dbc9a3980"
3546735467
},
3546835468
{
3546935469
"kind": "ui-call",
35470-
"line": 907,
35470+
"line": 911,
3547135471
"path": "apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift",
3547235472
"source": "Copy error",
3547335473
"surface": "apple",

‎apps/macos/Sources/OpenClaw/OnboardingAISetup.swift‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,10 @@ extension OnboardingAISetupModel {
782782
guard let context = beginAttemptContext(
783783
supersededAttemptDeadline: supersededAttemptDeadline)
784784
else { return }
785+
// A fresh user-picked attempt owns the verdict; keeping the stale
786+
// "none of the found options worked" card up during its test would
787+
// contradict the visible Testing state.
788+
self.exhaustedAutoCandidates = false
785789
if let supersededKind {
786790
self.statuses[supersededKind] = .untried
787791
self.selectedKind = kind

‎apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,10 @@ struct OnboardingAISetupView: View {
312312
Spacer(minLength: 0)
313313
self.trailingIndicator(status: status, selected: selected)
314314
}
315+
// Plain buttons hit-test only opaque label pixels; without this the
316+
// row's blank stretch (between texts, over the Spacer) ignores clicks
317+
// and a mid-testing candidate pick silently does nothing.
318+
.contentShape(Rectangle())
315319
}
316320
.buttonStyle(.plain)
317321
.disabled(!self.model.canSelectCandidate(kind: candidate.kind))

0 commit comments

Comments
 (0)