Skip to content

fix(macos): onboarding setup rows ignore clicks across their blank areas - #130273

Merged
steipete merged 1 commit into
mainfrom
codex/macos-onboarding-row-hit-targets-20260826
Aug 26, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/macos-onboarding-row-hit-targets-20260826

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where users setting up OpenClaw on macOS would see nothing happen when clicking the blank portion of a local-model setup, API-key, or provider-sign-in row during onboarding.

Why This Change Was Made

The shared selectable-row styling already provides the complete rounded hit target, but these three plain buttons applied it outside their labels. Move the existing styling inside each label, matching the healthy onboarding and Gateway-selection rows, so the actual button owns the complete visible hit target. Preserve existing actions, selected styling, disabled states, and the separately fixed model-selection row. Production change: +3/-3, net zero.

User Impact

The complete visible local-model, API-key, and provider-sign-in rows respond to clicks instead of silently ignoring clicks across their blank areas.

Evidence

  • Authentic Swift owner-invariant probe against the real onboarding source failed before the change for all three affected button labels while the existing model-selection row passed; after the change all four label-owned hit targets pass.
  • swift test --package-path apps/macos --skip-build --filter 'OnboardingAISetupTests|OnboardingViewSmokeTests': 125 tests passed across both complete native onboarding suites.
  • The native OpenClaw app and complete test bundle built successfully. An existing local SwiftPM cache omitted Sparkle from its test bundle runtime search path; restoring its framework link only inside ignored build output allowed the unchanged suites to run.
  • swiftformat --lint apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift --config config/swiftformat and git diff --check passed.
  • Independent owner/sibling review and the configured structured Codex review both reported no actionable findings.
  • Live screenshots or click recordings are unavailable because this task cannot launch or alter the operator's signed macOS app, Gateway, or TCC state; hidden AppKit-hosted synthetic clicks do not dispatch reliably, so no brittle or private-API test was added.

@clawsweeper

clawsweeper Bot commented Aug 26, 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 Aug 26, 2026
@steipete
steipete marked this pull request as ready for review August 26, 2026 17:50
@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 Aug 26, 2026
@clawsweeper

clawsweeper Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 1:58 PM ET / 17:58 UTC.

ClawSweeper review

What this changes

Moves existing selectable-row styling into three macOS onboarding button labels so clicks on each row’s blank area activate local-model setup, API-key entry, or provider sign-in.

Regression provenance

Possible regression — probable (reproduction; reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open for the maintainer landing decision: the narrow SwiftUI change correctly makes the full visible setup rows button-owned, while current main still leaves their selectable chrome outside plain buttons. No blocking correctness or security finding was identified.

Priority: P2
Reviewed head: aff3b5aa74debad4411b5b15d8721c755177a713
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-backed native UI repair with no correctness finding; the only remaining uncertainty is direct desktop observation.
Proof confidence 🌊 off-meta tidepool Not applicable: This is a member-authored PR; its body also gives a concrete signed-app/TCC reason why a native click recording was unavailable.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This is a member-authored PR; its body also gives a concrete signed-app/TCC reason why a native click recording was unavailable.
Evidence reviewed 6 items Current-main behavior: Current main still applies selectable-row chrome after each plain Button at the three affected locations, so the padded content shape is not part of the button label.
Changed owner boundary: The PR moves the same modifier into each label at lines 441, 514, and 547 without changing setup, manual-entry, authentication, or disabled-state actions.
Shared hit-target contract: The reusable modifier adds padding, a full-width frame, and a rounded content shape; applying it in the label makes that visible shape part of the button’s hit target.
Findings None None.
Security None None.

Live Verification

Command: swift test --package-path apps/macos --filter 'OnboardingAISetupTests|OnboardingViewSmokeTests'

Result: FAIL (failed) — step 1 run swift test --package-path apps/macos --filter 'OnboardingAISetupTests|OnboardingViewSmokeTests': previous terminal command was still running after 30 seconds: "swift test --package-path apps/macos --filter 'OnboardingAISetupTests|OnboardingViewSmokeTests'"

Fetching https://github.com/openclaw/Peekaboo.git
Fetched https://github.com/openclaw/Peekaboo.git from cache (18.87s)
Fetching https://github.com/mgriebling/SwiftMath
Fetching https://github.com/apple/swift-algorithms
Fetching https://github.com/swiftlang/swift-subprocess.git
Fetched https://github.com/swiftlang/swift-subprocess.git from cache (0.76s)
Fetching https://github.com/swiftlang/swift-cmark.git
Fetched https://github.com/apple/swift-algorithms from cache (0.85s)
Fetching https://github.com/sindresorhus/KeyboardShortcuts
Fetched https://github.com/mgriebling/SwiftMath from cache (0.86s)
Fetching https://github.com/steipete/Commander.git
Fetched https://github.com/steipete/Commander.git from cache (0.61s)
Fetching https://github.com/openclaw/AXorcist.git
Fetched https://github.com/swiftlang/swift-cmark.git from cache (1.23s)
Fetching https://github.com/apple/swift-system
Fetched https://github.com/sindresorhus/KeyboardShortcuts from cache (1.16s)
Fetching https://github.com/sparkle-project/Sparkle
Fetched https://github.com/openclaw/AXorcist.git from cache (0.77s)
Fetching https://github.com/pointfreeco/swift-concurrency-extras
Fetched https://github.com/apple/swift-system from cache (0.82s)
Fetching https://github.com/apple/swift-log.git
Fetched https://github.com/pointfreeco/swift-concurrency-extras from cache (0.62s)
Fetching https://github.com/groue/GRDB.swift.git
Fetched https://github.com/apple/swift-log.git from cache (0.86s)
Fetching https://github.com/apple/swift-numerics.git
Fetched https://github.com/sparkle-project/Sparkle from cache (2.66s)
Fetching https://github.com/steipete/ElevenLabsKit
Fetched https://github.com/apple/swift-numerics.git from cache (1.88s)
Fetching https://github.com/swiftlang/swift-markdown
Fetched https://github.com/steipete/ElevenLabsKit from cache (0.89s)
Fetched https://github.com/swiftlang/swift-markdown from cache (0.88s)
[113869/113869] Fetching grdb.swift

Assertions:

  • FAIL expect_output: Test run with

How this fits together

macOS onboarding renders provider setup choices from the detected Gateway catalog and sends the selected choice into local setup or provider authentication. The selectable-row modifier supplies the padded full-width visible shape, which must be owned by the SwiftUI button to receive clicks.

flowchart LR
A[Gateway provider catalog] --> B[macOS onboarding choices]
B --> C[SwiftUI button label]
C --> D[Full selectable row hit shape]
D --> E[Setup or provider sign-in]
E --> F[Onboarding verification]
Loading

Decision needed

Question Recommendation
Should this maintainer-authored macOS onboarding hit-target repair land once the exact head is validated against current main? Land after exact-head validation: Accept the source-backed repair and documented signed-app/TCC proof limitation once the merge result and required macOS checks are green.

Why: The code path is clean and the remaining judgment is whether the documented native desktop proof limitation is acceptable for this member-authored, protected-label PR.

Before merge

  • Resolve merge risk (P1) - There is no directly inspectable signed-macOS click recording; the PR documents the concrete signed-app and TCC limitation, so this remains a known native-UI proof gap rather than a source defect.
  • Resolve merge risk (P1) - The branch is behind main but GitHub reports it mergeable; final landing should recheck the exact merged head and macOS validation.
Agent review details

Security

None.

PR surface

Other 0. Total 0 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 3 3 0
Total 1 3 3 0

Review metrics

Metric Value Why it matters
Production versus test delta production +3/-3 (net 0, three modifier moves); tests +0/-0 The fix reshapes existing ownership without adding a new code path; no committed regression test was added for the native hit geometry.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land this net-neutral label-owned hit-target repair after exact-head macOS validation; capture a sanitized signed-app click recording later if that environment becomes available.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Land this net-neutral label-owned hit-target repair after exact-head macOS validation; capture a sanitized signed-app click recording later if that environment becomes available.

Do we have a high-confidence way to reproduce the issue?

Yes, at source level: current main places the padded rounded content shape outside plain button labels, while the PR and healthy sibling rows place it inside the label. A live signed-macOS click reproduction was not available in this review environment.

Is this the best way to solve the issue?

Yes: moving the existing shared modifier into the existing button labels is the narrow canonical repair and matches healthy onboarding and Gateway selection patterns without duplicating behavior.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This repairs a limited but user-visible first-run macOS onboarding interaction defect without evidence of wider runtime impact.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This is a member-authored PR; its body also gives a concrete signed-app/TCC reason why a native click recording was unavailable.

Label justifications:

  • P2: This repairs a limited but user-visible first-run macOS onboarding interaction defect without evidence of wider runtime impact.
  • 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 is a member-authored PR; its body also gives a concrete signed-app/TCC reason why a native click recording was unavailable.

Evidence

What I checked:

Likely related people:

  • steipete: Peter Steinberger authored the affected onboarding source, the current PR, and the earlier full-candidate-row hit-target repair. (role: recent onboarding source author and analogous-fix author; confidence: high; commits: c2e36eec94b5, df72781ed45f, aff3b5aa74de; files: apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift, apps/macos/Sources/OpenClaw/SelectableRow.swift)
  • Vincent Koc: Recent macOS/local-provider onboarding commits indicate adjacent familiarity, though not ownership of the exact changed lines. (role: historical adjacent onboarding contributor; confidence: medium; commits: 0e24d596c062, 66e1a4ad778d; files: apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Recheck the exact merged head with the macOS validation lane before landing.
  • Attach a redacted signed-app click recording if a suitable macOS/TCC environment becomes available.

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.

@steipete
steipete merged commit 4cfadd6 into main Aug 26, 2026
118 checks passed
@steipete
steipete deleted the codex/macos-onboarding-row-hit-targets-20260826 branch August 26, 2026 18:20
@steipete

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.

1 participant