Skip to content

fix(macos): replace misleading AI setup progress - #135041

Merged
steipete merged 14 commits into
mainfrom
steipete/design-improvement-options-04fd08
Sep 2, 2026
Merged

steipete merged 14 commits into
mainfrom
steipete/design-improvement-options-04fd08

Conversation

@steipete

@steipete steipete commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Closes #134800 (native AI setup presents synthetic installation progress in an oversized form).

Additional instructions

Maintainers can edit this same-repository branch.

What Problem This Solves

Fixes an issue where users connecting AI in the macOS app would see a large input form during background installation, including capability-review instructions, a disabled Submit button, and a terminal-style percentage bar that advanced with elapsed time rather than measured work. The last installation message could also remain visible while the actual AI connection was being tested.

Why This Change Was Made

The native client now renders Gateway-owned work as a compact task sheet, carries the selected provider’s existing name and artwork, and expands for interactive review, forms, or device codes. The shared installer no longer manufactures percentages or shortens useful activity messages; the activation owner emits explicit verification and finalization status through the existing wizard progress channel.

The existing consent, session/request generation, cancellation, and successful dashboard handoff remain authoritative. Pending cancellation is visible, unconfirmed cancellation remains retryable, and Gateway-owned steps cannot submit answers. There are no new dependencies, configuration options, protocol fields, or storage changes.

User Impact

AI setup shows what is happening without pretending to know how close installation is to completion. Background work has a native activity indicator instead of a disabled form action. Capability review remains complete and explicit, confirmation remains off until accepted, and cancellation feedback does not claim an operation stopped before the Gateway confirms it.

The shared installer improvement also reaches terminal and web wizard consumers. Provider-reported model-download counters are unchanged.

Evidence

Real native screenshots

Captured from signed builds in a macOS 26.5 QA guest, using a task-owned authenticated Gateway and isolated setup/CLI-auth state. Images contain only the app window and were inspected before upload; no operator configuration or conversations are shown. Baseline: 494f86248e70c46d28d3f1e0e3273450458f9c26; captured candidate corresponds to 9e3dd97b8118cca96e5b205e3d67e4ca104eb530. The subsequent localization/test-fixture repair preserves the pictured English copy and layout; these are not newly captured images of that follow-up.

Before: background installation After: installation completing
Before: oversized setup form with a text progress bar and disabled Submit After: compact native setup activity with provider context and no Submit
Before: capability review After: capability review
Before: generic capability-review sheet After: provider-context capability review with explicit continuation

The candidate’s real flow displayed the full review, advanced to an unchecked confirmation, accepted an explicit check and Submit, displayed gateway-owned activity without an answer button, and automatically opened the dashboard. The embedded dashboard’s separate device approval was completed and its setup-chat surface loaded. No mocked wizard responses or generated UI images were used.

Current integration and proof

Integrated candidate: 91b3f38570996ea0946e1d75c2f46757d8796a13, rebased once onto pinned main 77a24659740fdfaecee81ee14dad2b6af970d773 to resolve the actual native-source inventory conflict. All fourteen task commits and human credit were preserved. The four native setup source files and complete native test file are byte-identical to reviewed cda1f196; the source result matches the automatic merge, with only the conflicted inventory regenerated through its canonical owner. Inventory verification passed with 4,482 entries and every unrelated main source site preserved. Main's installer source-selection changes remain intact.

Integrated-head CI run33586763047, attempt2 completed GREEN, including release and the required openclaw/ci-gate. Native job100114104534 passed 1,911 app tests/197 suites, 1,571 shared tests/120 suites, all18 terminal-order cases, all6 replacement-generation cases and2+1 auxiliary tests, zero issues. The log identifies test-merge 353aa54804213c9a00dab295c6ea8a1a2ed00b84 containing the exact integrated PR head and base 5fe22a7d88919f260e7999fc775733feff3cb1fa; native log SHA256 is d4a7c90ddef8dc8c51978e8f5b3d2f443c72628226f6bc2715ef2d7ec685d186. The canonical watcher exited0/GREEN. Three separate non-required Periphery checks remain queued; they are not being described as passed.

The first attempt was recovered only after its two remaining Swift jobs were confirmed unassigned with zero steps and all other CI work terminal. Cancellation was confirmed terminal before one failed-job retry. Both retry runners then started in two seconds. No executing job was cancelled or coverage changed.

Fresh full-branch P0–P2 Codex autoreview on the integrated candidate completed cleanly, with no actionable findings; the reviewed tree matches the pushed tree. The focused integrated command exited 0 with 309 tests in five files (62.39 seconds), including guided onboarding, installer sources, activation, wizard sessions and the CLI prompter:

OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs src/commands/onboard-guided.test.ts src/commands/onboarding-plugin-install.test.ts src/system-agent/setup-inference.test.ts src/wizard/session.test.ts src/wizard/clack-prompter.test.ts

Changed-scope validation exited0, including core/test types, formatting, core lint, dead exports, import cycles and selected ownership guards:

node scripts/check-changed.mjs --base 77a24659740fdfaecee81ee14dad2b6af970d773 -- src/commands/onboard-guided-manual.ts src/commands/onboarding-plugin-install.ts apps/.i18n/native-source.json
pnpm native:i18n:verify

The conflict-driven rebase initially exposed a missing TypeBox module in the local installation. One pnpm install --frozen-lockfile succeeded in 2m25s and the generator retry passed. No tracked dependency change, manual node_modules edit, override, generated translation change or changelog edit was used. The earlier 272-test clean-exit proof remains historical; the older 27-test summary followed by a shutdown hang is not counted as a successful command. The separately owned test-wrapper fix #135439 is now merged and incorporated.

Cancellation boundary RED/GREEN

Test-first 4ef616664ea44860ba0adc0c6e10b3a58747f457 ran native job100060965756 / run33564757477 attempt2: 1,911 app tests, 46 issues. All eight terminal-first failure cases failed error preservation; two original-order cases separately exposed the action lookup. This is executed RED before the production retirement fix.

A terminal error previously cleared the server-session fields without retiring callback authority. A delayed Cancel could then overwrite or dismiss the visible error. One canonical retirement owner now revokes the auth generation, request/session, cancellation and input authority while preserving error presentation. Terminal-result application, settled request failure and dismissal share it. Unresolved sessions retain recovery authority; late admission, exact route/generation fences and successful committed handoff remain intact. The existing auth/prepare matrix covers both response orders. No consumer-only status guard, test-only production seam, new timeout or public contract was added.

The intermediate production fix passed every lifecycle assertion but still failed ten Show details lookups. The final test-only correction recognizes named enabled AXButton/AXLink actions and removes the unsuccessful descendant-name workaround without weakening assertions. Run33574051827 attempt2 then passed 1,911 app tests, all18 terminal-order cases, all6 replacement-generation cases, 1,561 shared tests and2+1 auxiliary tests, zero issues. Its native log identifies test-merge edeeef09f70a7387e9f444c036b141b8f2d00717 containing reviewed cda1f196 and base ab6726b5d8d27f2e7940f6fdbf3eacd2f20ccb72. This is historical exact-head proof, not a claim that the old run tested the later integration.

The earlier direct-auth/prepare presentation and start/next replacement-generation defects also have executed native RED/GREEN records. Installer npm/ClawHub/npm-pack progress and verification-status regressions failed before their owner repairs. Guided CLI activation now has one progress owner rather than overlapping spinners. Existing positive consent, copyable errors, enabled controls and successful dashboard handoff remain covered.

Signed build and explicitly approved live-proof gap

A final app was packaged from cda1f196 and independently verified with Developer ID Peter Steinberger (Y5PE65HELJ), deep/strict signature validation, matching native/embedded-worker source identity and executable SHA256 152aa454f2bed99a3d908bbfa00a2d95fe024399dcae4486f8b0df3240493144. This build predates the mechanical integration; it is not presented as a newly packaged integrated head. No native app or OpenClaw native test suite was launched on the operator host.

Explicit maintainer decision: the QA VM remained locked, and the maintainer selected Use existing proof, approving omission of only the additional signed real-Gateway Cancel/unconfirmed/retry drill. That drill was not executed. The four original screenshots above prove the earlier real signed visual/normal flow; they do not depict the new cancellation cases. Deterministic fault-injection native tests prove the cancellation response orders. This exception does not waive integration, CI, review or final merge authorization.

ClawSweeper reviewed this integrated head at2026-09-02 03:30UTC and found no actionable source issue. Its exact-head native/onboarding validation move is complete. The additional real cancellation trace is explicitly omitted under the maintainer decision above, not silently skipped or represented as executed. Native review artifacts validated as READY FOR /prepare-pr, and OPENCLAW_TESTBOX=1 scripts/pr prepare-run 135041 completed successfully at the same91b3f385 head. The native wrapper selected exact-head hosted CI (not pre-rebase proof reuse), verified the remote/prep trees match, and made no additional source change or push. Final parent exact-head merge authorization remains required; no merge or issue closure has occurred.

Scope and follow-up

Production: +374 / −415 (net −41). Tests/support: +638 / −176 (net +462). Docs: +12 / −3. Generated native inventory: +24 / −20. The terminal-retirement repair itself is production-neutral (+11/−11). The old oversized form, decorative timer/bar, lossy activity shortening, hidden cancellation dismissal and captured-context workaround were removed rather than retained as parallel paths.

The canonical setup-progress issue #134800 stays open until landing. Earlier typecheck and Gateway fixture blockers were repaired by #135407 and #135495 and incorporated; #135448 was superseded. The independent macOS artifact-timeout investigation, unauthenticated automatic-CLI recovery wait, and localization interpolation issue #135487 / PR #135511 remain separate follow-ups; no assertions or deadlines were loosened here.

Operator documentation: https://docs.openclaw.ai/start/onboarding

@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 docs Improvements or additions to documentation app: macos App: macos commands Command implementations size: L maintainer Maintainer-authored PR labels Sep 1, 2026
@steipete
steipete marked this pull request as ready for review September 1, 2026 09:04
@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 maintainer review before merge. Reviewed September 2, 2026, 12:03 AM ET / 04:03 UTC.

ClawSweeper review

What this changes

The PR replaces misleading macOS AI-setup timer progress with Gateway-backed progress, cancellation, and terminal-state handling, plus focused coverage.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open for final maintainer review: no introduced functional defect was found, but the recorded waiver for a final packaged live cancellation-to-retry trace needs an explicit proof-sufficiency decision.

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

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The owner-boundary implementation is well-covered, with one explicitly documented live-proof limitation.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: As a member-owned PR, the recorded exact-head CI and explicit waiver of a fresh signed cancellation trace are assessed by the maintainer; reviewed screenshots cover normal flow only.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: As a member-owned PR, the recorded exact-head CI and explicit waiver of a fresh signed cancellation trace are assessed by the maintainer; reviewed screenshots cover normal flow only.
Evidence reviewed 5 items Gateway-backed macOS activity UI: The setup sheet presents an activity indicator for Gateway-executed steps and suppresses input for that executor, rather than inventing a local progress timer.
Gateway lifecycle owner: The Gateway validates the exact wizard session, rejects answers after it stops running, waits for terminal settlement before next-response retirement, and schedules cancellation cleanup after settlement.
Exact review merge identity: The inspected test merge has the pinned base parent followed by the current PR-head parent, so the reviewed source is the PR introduction side rather than base-only drift.
Findings None None.
Security None None.

How this fits together

The macOS onboarding client starts provider setup through a Gateway wizard session, then displays installation and verification state before handing off to the dashboard. The changed sheet consumes that session state while the Gateway remains the owner of next, cancel, and session retirement.

flowchart LR
Operator[Operator selects AI setup] --> Sheet[macOS setup sheet]
Sheet --> Wizard[Gateway wizard session]
Wizard --> Setup[Plugin install and AI verification]
Setup --> State[Progress and terminal state]
State --> Dashboard[Dashboard handoff]
Loading

Decision needed

Question Recommendation
Should this member-owned PR merge with the documented waiver for a fresh signed real-Gateway cancellation-to-retry trace on the final packaged head? Accept the documented proof exception: Treat the exact-head CI and deterministic lifecycle coverage as sufficient for this merge decision.

Why: Exact-head automated coverage exercises the lifecycle ordering, but the retained live packaged cancellation drill was explicitly waived rather than rerun.

Before merge

  • Resolve merge risk (P1) - The final packaged head lacks a fresh signed real-Gateway cancellation-to-unconfirmed-result-to-retry trace; the omission is documented as a maintainer-approved proof waiver, while deterministic exact-head coverage exercises the ordering paths.
Agent review details

Security

None.

PR surface

Source -81, Tests +148, Docs +9, Other +358. Total +434 across 14 files.

View PR surface stats
Area Files Added Removed Net
Source 3 38 119 -81
Tests 4 170 22 +148
Docs 1 12 3 +9
Config 0 0 0 0
Generated 0 0 0 0
Other 6 828 470 +358
Total 14 1048 614 +434

Review metrics

Metric Value Why it matters
Production versus test delta production +374/-415 (net -41); tests/support +638/-176 (net +462); docs +12/-3; inventory +24/-20 Production code is net-negative while added test support targets progress, cancellation, and terminal-session ordering.

Merge-risk options

Maintainer options:

  1. Accept the recorded proof waiver (recommended)
    Merge on the documented exception because exact-head CI covers Gateway session ordering and terminal-state paths.
  2. Require the live cancellation drill
    Pause merge until the final packaged head has a signed real-Gateway cancellation, unconfirmed result, and retry trace.

Technical review

Best possible solution:

Keep the state-aware sheet and the single Gateway-owned terminal/cancellation retirement flow, then merge only if the maintainer accepts the documented proof exception.

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

Yes — source and native test fixtures define a high-confidence Gateway-backed progress and cancellation path, although this read-only review did not execute it.

Is this the best way to solve the issue?

Yes — the change removes misleading producer-side timer progress and consumes existing Gateway session state rather than adding a client-side approximation.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This is a bounded repair to first-run macOS setup behavior without evidence of data loss, a security bypass, or runtime unavailability.
  • merge-risk: 🚨 session-state: The PR changes wizard progress, cancellation, and terminal-session reconciliation while final packaged live cancellation proof is waived.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: As a member-owned PR, the recorded exact-head CI and explicit waiver of a fresh signed cancellation trace are assessed by the maintainer; reviewed screenshots cover normal flow only.

Evidence

What I checked:

  • Gateway-backed macOS activity UI: The setup sheet presents an activity indicator for Gateway-executed steps and suppresses input for that executor, rather than inventing a local progress timer. (apps/macos/Sources/OpenClaw/OnboardingAISetupSheet.swift:74, 91b3f3857099)
  • Gateway lifecycle owner: The Gateway validates the exact wizard session, rejects answers after it stops running, waits for terminal settlement before next-response retirement, and schedules cancellation cleanup after settlement. (src/gateway/server-methods/wizard.ts:154, 91b3f3857099)
  • Exact review merge identity: The inspected test merge has the pinned base parent followed by the current PR-head parent, so the reviewed source is the PR introduction side rather than base-only drift. (353aa5480421)
  • Existing macOS setup history: A prior merged macOS cancellation repair is an ancestor in the affected setup history, providing a routing signal for the same lifecycle area. (apps/macos/Sources/OpenClaw/OnboardingAISetup.swift, 7af3faf2321d)
  • Retained proof limitation: The PR discussion records exact-head automated coverage and a maintainer-approved omission of a fresh signed real-Gateway cancellation, unconfirmed-result, and retry trace at the final packaged head.

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.

  • Capture the waived signed real-Gateway cancellation-to-retry trace if the maintainer does not accept the current exception.

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 (19 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-01T18:19:04.934Z sha 1032015 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-01T19:52:41.261Z sha d99c47c :: needs maintainer review before merge. :: none
  • reviewed 2026-09-01T21:36:28.505Z sha d99c47c :: found issues before merge. :: [P2] Fence late cancellation replies after a terminal wizard error
  • reviewed 2026-09-01T22:17:50.207Z sha 4ef6166 :: needs changes before merge. :: [P2] Fence late cancellation replies after a terminal wizard error
  • reviewed 2026-09-01T23:59:00.124Z sha ffd0af3 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T00:15:45.477Z sha cda1f19 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T01:00:14.812Z sha cda1f19 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T03:30:17.532Z sha 91b3f38 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. and removed 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. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Sep 1, 2026
@steipete steipete self-assigned this Sep 1, 2026
@steipete steipete closed this Sep 1, 2026
@steipete steipete reopened this Sep 1, 2026
@clawsweeper clawsweeper Bot removed the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Sep 1, 2026
steipete added a commit that referenced this pull request Sep 1, 2026
Test-first checkpoint for PR #135041: require direct auth and local preparation to retain their exact wizard and expose cancellation retry. Production is intentionally unchanged so disposable macOS CI records the pre-fix failure before the owner repair.
@steipete

steipete commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor Author

Integrated head GREEN: 91b3f38570996ea0946e1d75c2f46757d8796a13, pinned main 77a24659740fdfaecee81ee14dad2b6af970d773. CI33586763047 attempt2 and required openclaw/ci-gate passed. Native100114104534 passed1911 app tests,1571 shared,18 terminal-order cases,6 replacement cases and2+1 auxiliary tests,zero issues. The log confirms test-merge 353aa54804213c9a00dab295c6ea8a1a2ed00b84 with this exact head and base 5fe22a7d88919f260e7999fc775733feff3cb1fa. Release passed; canonical watcher exited0. Three separate non-required Periphery checks remain queued.

The one conflict-driven rebase preserved14 commits and all native setup source/tests byte-for-byte from reviewedcda1f196. Canonical inventory regeneration preserved every unrelated main site. Fresh full-branch P0–P2 Codex review is scoped-clean;309 focused TS tests and changed-scope types/lint/guards exited0;4482 inventory entries verified. Production+374/-415 net−41; tests/support+638/-176; docs+12/-3; generated+24/-20.

Explicit human proof exception: the maintainer selected Use existing proof, approving omission only of the additional locked-VM live Cancel/unconfirmed/retry drill. It was NOT executed. All4 original real signed normal-flow screenshots remain; they are not captures of the later cancellation matrix. The signedcda1f196 app passed deep/strict Developer ID verification and executable identity checks without operator-host launch; it is not relabeled as integrated-head packaging.

ClawSweeper’s current-head source review has no actionable finding. Its native/onboarding validation move is complete, and the extra trace is explicitly skipped under the human decision. Native preparation completed: OPENCLAW_TESTBOX=1 scripts/pr prepare-run 135041 exited0 at the same91b3f385 head. The wrapper validated exact-head hosted CI, preserved source/tree identity and skipped the no-op push. Native artifacts are READY FOR /prepare-pr; final parent exact-head merge go remains required. No merge or issue closure has occurred. Full RED history, commands, recovery details, screenshots and release context remain in the PR body.

@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Sep 1, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. labels Sep 2, 2026
Show provider-aware native activity during gateway-owned work, retain explicit capability review, and expose honest cancellation state. Remove timer-based installation percentages at the shared producer and report the live verification/finalization stages.

Refs #134800. Includes installer, activation, and native-sheet regressions plus onboarding documentation.
Resolve app-owned strings before String-based rendering and regenerate the canonical native source inventory. Mount the sheet fixture in a window so accessibility assertions inspect rendered controls, retaining positive assertions and deterministic cleanup.
Initialize Cocoa once and query the exact owned window through the public AX client boundary. SwiftUI creates virtual nodes lazily and does not promise NSAccessibility protocol conformance. Preserve positive control/content checks and await inspection before window cleanup.
SwiftPM's default prohibited activation policy does not permit windows under the AppKit contract. Initialize accessory policy once before Cocoa startup, without activation, and report bounded owned-window discovery facts if AX selection fails.
macOS 26.3 exposes the owned windows but omits their AXIdentifier. Use the required AXTitle of a uniquely titled test window instead, preserving exact window ownership without a fallback selector.
Materialize the SwiftUI accessibility tree through one self-client request, then use public Objective-C getters on the exact retained view. Remove remote window rediscovery and its metadata selectors while preserving positive UI checks and lifecycle cleanup.
Test-first checkpoint for PR #135041: require direct auth and local preparation to retain their exact wizard and expose cancellation retry. Production is intentionally unchanged so disposable macOS CI records the pre-fix failure before the owner repair.
Keep auth and prepare sheets bound to their live wizard generation until
cancellation is confirmed or the pending terminal response is consumed.
Preserve late admission and purged-session results, remove the hidden-sheet
context path, and keep terminal failures dismissible.

Give interactive guided activation sole ownership of progress, retaining
caller progress only for quiet automatic attempts.

Native CI on the test-first predecessor reproduced nine intended failures
among 1,907 tests; retained-view accessibility checks passed. Expand the
same boundary tests for auth/prepare late admission and terminal outcomes.
The native app/test targets compile; repaired native execution remains a
CI gate. The guided progress owner probe fails before and passes after.
Move the unchanged tracker into the existing wizard prompter helper so the
guided test file stays within its line limit. Preserve all regression
assertions and simplify the two immediate mock progress lifecycles.
Extend the existing auth/prepare terminal-reply matrix with the reverse response order and settled request failures. Keep retirement production behavior unchanged for native CI red proof; adapt the error-card call to the current-main initializer.
Separate session retirement from presentation dismissal so delayed cancellation cannot replace or dismiss a terminal provider error. Share retirement with settled request failures and ordinary dismissal, preserving unresolved-session recovery and successful handoff. Retain enabled-control assertions for composed button labels in the native matrix.
Include named enabled AXLink actions alongside AXButton controls, keeping all terminal error and dismissal assertions. Remove the unsuccessful descendant-name workaround; the error-card actions use link styling.
@steipete
steipete force-pushed the steipete/design-improvement-options-04fd08 branch from cda1f19 to 91b3f38 Compare September 2, 2026 03:22
@clawsweeper clawsweeper Bot added merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 2, 2026
@steipete
steipete merged commit a8fdaea into main Sep 2, 2026
512 of 515 checks passed
@steipete
steipete deleted the steipete/design-improvement-options-04fd08 branch September 2, 2026 04:09
@steipete

steipete commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 2, 2026
* fix(macos): replace misleading AI setup progress

Show provider-aware native activity during gateway-owned work, retain explicit capability review, and expose honest cancellation state. Remove timer-based installation percentages at the shared producer and report the live verification/finalization stages.

Refs openclaw#134800. Includes installer, activation, and native-sheet regressions plus onboarding documentation.

* fix(macos): localize setup activity and mount sheet tests

Resolve app-owned strings before String-based rendering and regenerate the canonical native source inventory. Mount the sheet fixture in a window so accessibility assertions inspect rendered controls, retaining positive assertions and deterministic cleanup.

* test(macos): inspect setup sheets through accessibility client

Initialize Cocoa once and query the exact owned window through the public AX client boundary. SwiftUI creates virtual nodes lazily and does not promise NSAccessibility protocol conformance. Preserve positive control/content checks and await inspection before window cleanup.

* test(macos): initialize a window-capable setup test host

SwiftPM's default prohibited activation policy does not permit windows under the AppKit contract. Initialize accessory policy once before Cocoa startup, without activation, and report bounded owned-window discovery facts if AX selection fails.

* test(macos): select setup windows by visible title

macOS 26.3 exposes the owned windows but omits their AXIdentifier. Use the required AXTitle of a uniquely titled test window instead, preserving exact window ownership without a fallback selector.

* test(macos): inspect the retained setup view directly

Materialize the SwiftUI accessibility tree through one self-client request, then use public Objective-C getters on the exact retained view. Remove remote window rediscovery and its metadata selectors while preserving positive UI checks and lifecycle cleanup.

* test(macos): reproduce unresolved setup cancellation recovery

Test-first checkpoint for PR openclaw#135041: require direct auth and local preparation to retain their exact wizard and expose cancellation retry. Production is intentionally unchanged so disposable macOS CI records the pre-fix failure before the owner repair.

* fix(onboarding): retain visible cancellation recovery

Keep auth and prepare sheets bound to their live wizard generation until
cancellation is confirmed or the pending terminal response is consumed.
Preserve late admission and purged-session results, remove the hidden-sheet
context path, and keep terminal failures dismissible.

Give interactive guided activation sole ownership of progress, retaining
caller progress only for quiet automatic attempts.

Native CI on the test-first predecessor reproduced nine intended failures
among 1,907 tests; retained-view accessibility checks passed. Expand the
same boundary tests for auth/prepare late admission and terminal outcomes.
The native app/test targets compile; repaired native execution remains a
CI gate. The guided progress owner probe fails before and passes after.

* test(onboarding): share wizard progress ownership tracker

Move the unchanged tracker into the existing wizard prompter helper so the
guided test file stays within its line limit. Preserve all regression
assertions and simplify the two immediate mock progress lifecycles.

* test(macos): gate stale provider reconciliation replies

* fix(macos): fence retired provider reconciliation

* test(macos): reproduce late cancellation after terminal errors

Extend the existing auth/prepare terminal-reply matrix with the reverse response order and settled request failures. Keep retirement production behavior unchanged for native CI red proof; adapt the error-card call to the current-main initializer.

* fix(macos): retire settled provider auth callbacks

Separate session retirement from presentation dismissal so delayed cancellation cannot replace or dismiss a terminal provider error. Share retirement with settled request failures and ordinary dismissal, preserving unresolved-session recovery and successful handoff. Retain enabled-control assertions for composed button labels in the native matrix.

* test(macos): inspect link-styled setup error actions

Include named enabled AXLink actions alongside AXButton controls, keeping all terminal error and dismissal assertions. Remove the unsuccessful descendant-name workaround; the error-card actions use link styling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos commands Command implementations docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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.

[Bug]: Native AI setup shows synthetic progress in an oversized form

1 participant