Skip to content

fix(onboarding): align setup surfaces and keep provider loading inline - #1562

Merged
karkarl merged 4 commits into
mainfrom
bkudiess-onboarding-redesign-follow-ups
Oct 1, 2026
Merged

karkarl merged 4 commits into
mainfrom
bkudiess-onboarding-redesign-follow-ups

Conversation

@bkudiess

@bkudiess bkudiess commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes inconsistent spacing, recommendation badges, oversized actions and loading-only popups left after #1531 (feat: guide Windows onboarding from setup to native AI tasks).

User Impact

Setup uses consistent compact actions and recommendation badges. Provider loading stays on Connect your AI; actual input, sign-in instructions and recovery decisions still open the provider dialog.

Why This Change Was Made

  • Inset both Fine-tune explanatory paragraphs and remove the redundant capability heading.
  • Share the Recommended badge across Gateway choices, Balanced and the final Chat choice, including disabled styling and localized labels.
  • Keep native installation Back, Cancel and Retry compact; retain the compact pairing padlock header while standardizing spacing, wrapping and text actions.
  • Show Local AI availability in its own informational card. Remove redundant native-support success copy and move the accent icon to native when available, otherwise WSL.
  • Preserve provider input during submission, disable Cancel until a cancellable session exists, and show errors during inline loading.

Pairing decisions, approval arming, permission scopes, capability selection and hardware eligibility remain unchanged. The migration onboarding redesign is queued separately and is not included. The separate CI-readiness patch is also not included.

Evidence

27 reviewed full-window screenshots are linked below. They show production controls using isolated synthetic fixtures, not live installation, provider authentication or Gateway pairing. Every screenshot comes from the final frozen source state committed as c14105d01530c64a72122bf6b51fe9d507f9891b.

Draft limitation: targeted native proof is 9 passed / 1 failed. Light Welcome OCR read Local AI as Local Al, stopping that light gallery before unavailable-Welcome and Capabilities. Dark Welcome and Capabilities passed and have complete captures. The rejected light image is not attached as passing proof.

Change Type

  • Bug fix
  • Feature
  • Refactor
  • Docs or instructions
  • Tests or validation
  • Security hardening
  • Chore or infrastructure

Scope

  • Tray or WinUI UX
  • Windows node capability
  • Local MCP or winnode
  • Gateway, connection, or pairing
  • Setup or onboarding
  • Permissions, privacy, or security
  • Tests, CI, or docs

Required proof pools

  • windows-winui-interactive: onboarding, provider loading and pairing-approval visuals. Partially fulfilled by the captures below; the light Welcome/Capabilities gallery gap remains explicit.

Validation

Command Result
.\build.ps1 Passed
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore 4,215 passed, 34 skipped, 0 failed
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore 3,614 passed, 0 failed
dotnet test .\tests\OpenClaw.SetupEngine.Tests\OpenClaw.SetupEngine.Tests.csproj --no-restore --filter "FullyQualifiedName~GatewayAiSetupControllerTests|FullyQualifiedName~GatewayAiSetupLifecycleContractTests" 57 passed before subsequent proof-fixture-only changes
dotnet build .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj --no-restore -p:Platform=x64 -r win-x64 Passed; one existing generated CS0618 warning
dotnet vstest <built UI DLL> --TestCaseFilter:"FullyQualifiedName~FollowupProof|FullyQualifiedName~VerifiedChooser_ShowsNativeChoicesWithoutIssuingOrFinalizing" in separate Light/Dark hosts Dark 5/5; Light 4 passed, 1 OCR failure
git diff --check Passed

The earlier Shared McpHttpServerTests.Dispose_DuringInFlightHandler_DoesNotSurfaceObjectDisposedException failure did not reproduce in its focused rerun or subsequent full suites.

Rubber-duck review found no remaining blocking issues after correcting provider cancel admission, retaining actionable prompts during submission and exposing inline errors. python .agents\skills\autoreview\scripts\autoreview --mode commit --commit HEAD constructed the complete normalized bundle, but the Codex engine exited 1 without a valid review result. No clean structured autoreview result is claimed.

Real Behavior Proof

  • Environment tested: isolated native Windows x64 WinUI testhosts, fresh process per application theme, three isolated tray roots. All owned processes exited; real roaming/local OpenClawTray metadata unchanged.
  • PR head or commit tested: c14105d01530c64a72122bf6b51fe9d507f9891b, captured before commit from the identical source state based on 3eed1f1bac56b1861aca9729fbbb42fe0efc1fa7.
  • Source/build freeze manifest SHA256: 51B60EF9E027B8A7FE5812C301871E5DCAA796041154777D5BD51AE504EB668B; zero source drift after capture.
  • Exact steps: native fixture methods FollowupProof_CapabilitiesAndWelcome, FollowupProof_NativeInstallCompactActions, FollowupProof_PairingCompactHeaderScopesAndArming, FollowupProof_ProviderInlineLoadingCancelAndInput, and VerifiedChooser_ShowsNativeChoicesWithoutIssuingOrFinalizing; screenshot sequences include all scrolled viewports.
  • Observed result: footer text padded, redundant heading absent, shared/disabled badges visible, compact actions rendered, pairing padlock retained with the 1500 ms arming guard, loading/error/cancel stays inline, actual provider input still opens a dialog.
  • Welcome caveat: available/unavailable screenshots inject production visual states, not live eligibility results. The selected/focused row can retain the host-probe state; these captures prove card/icon/badge appearance, not default-selection behavior. Disabled Chat is also a fixture-injected state.
  • Screenshot or artifact links verified?: Yes. All 27 GitHub attachment URLs returned HTTP 200 with image/png after publication.
  • Not verified / blocked: remaining light gallery due to OCR ambiguity; full CI-equivalent UI suite on this branch; live installation/authentication/pairing; migration redesign. No production settings or credentials were used.
Gateway choices: general Local AI card, native emphasis and WSL fallback

Synthetic available projection:

Native emphasis and independent Local AI card

Synthetic unavailable projection:

WSL emphasis and disabled native badge

PC capabilities: heading, Balanced badge and complete padded footer

Collapsed view, complete viewport sequence:

Capabilities viewport 1
Capabilities viewport 2

Expanded Fine-tune, complete viewport sequence:

Fine-tune viewport 1
Fine-tune viewport 2
Fine-tune padded footer viewport 3

Native installation: compact Back, Cancel and Retry in both themes

Light Cancel
Dark Cancel
Light Retry
Dark Retry

Pairing approval: padlock, compact actions and wrapped scopes

Complete top/bottom views in each theme. No pairing decision was sent.

Light pairing top
Light pairing bottom
Dark pairing top
Dark pairing bottom

Provider flow: inline loading/error/cancel, then real input dialog

Light:

Inline loading
Inline error
Cancelled and choices restored
Provider input dialog

Dark:

Dark inline loading
Dark inline error
Dark cancellation
Dark provider input dialog

Shared Chat recommendation badge: enabled and disabled

Light badge
Light disabled badge
Dark badge
Dark disabled badge

Security Impact

  • New permissions or capabilities? No
  • Secrets or tokens handling changed? No
  • New or changed network calls? No
  • Command or tool execution surface changed? No
  • Data access scope changed? No
  • Approval identity/scopes, 1500 ms arming and the existing decision owner remain unchanged.

Compatibility and Migration

  • Backward compatible? Yes
  • Config or environment changes? Test-only OPENCLAW_UI_TEST_APP_THEME selects a fresh fixture application's theme; no product configuration change.
  • Migration needed? No
  • Exact upgrade steps: N/A

Review Conversations

  • I replied to or resolved every bot review conversation addressed by this PR.
  • I left unresolved only conversations that still need maintainer judgment.

Standardize recommendation badges, capability spacing, native setup actions, pairing approval layout, and Gateway choice presentation. Keep provider loading and errors inline while preserving interactive prompts and cancellation safeguards.

Add isolated native screenshot fixtures and record proof limitations in the draft PR.

Co-authored-by: Copilot App <[email protected]>
@clawsweeper

clawsweeper Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review blocked

Automated review did not run, so no review verdict was produced.

Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here.

Automatic review is on hold, including after source changes. Request a fresh re-review after resolving the failure; maintainers can also release the hold through an intentional scanner-policy update.

Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it.

View the workflow run.

Restore the original pairing popup spacing and icon actions while retaining wrapped access descriptions. Cover normal and long-scope requests with isolated light/dark UI proof.

Co-authored-by: Copilot App <[email protected]>
@bkudiess
bkudiess marked this pull request as ready for review September 30, 2026 23:52
@karkarl karkarl added status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. and removed status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. labels Sep 30, 2026
Replace the incorrect disabled-Cancel expectation with assertions that closing cancels the exact preallocated session once, without verification or setup handoff.

Co-authored-by: Copilot App <[email protected]>
@karkarl karkarl added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 1, 2026
@karkarl

karkarl commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Hanselman review verdict: verified findings addressed

Update: both verified findings are addressed by the author's 9ef485ed cancellation-test fix and follow-up f7d6fabd (pushed). Current-fix validation and remaining proof limitations are below. The initial review is preserved here with its original revision.

Reviewed 183916b0a7b884227f1e5dee988eb35f0863dd98 against 3eed1f1bac56b1861aca9729fbbb42fe0efc1fa7 using independent Claude Opus 5.5 (claude-opus-5.5, high reasoning) and GPT-6 Astra (gpt-6-astra, high reasoning, long context) reviews.

No issues were independently identified by both reviewers. These were initially LOW consensus; Opus subsequently confirmed both after reconciliation, which is not an independent second discovery.

Finding Opus, independent review Astra Fix confidence
Pending-start cancellation assertion conflicts with the client-generated session ID and enabled Cancel action not flagged HIGH 95%
Submitting a provider answer dismisses the prompt because wizard.next changes the client phase to Uncertain before awaiting its response not flagged MEDIUM 90%
  1. tests/OpenClaw.Tray.UITests/OnboardingAiPageTests.cs:364 failed with Expected: False; Actual: True. Startup cancellation was pre-existing behavior; the introduced test assertion and documentation contradicted it.
  2. src/OpenClaw.SetupEngine/GatewayAiSetupPresentation.cs:29-35 retains a busy interactive prompt only during Running. A real asynchronous answer submission therefore closes the dialog and can reopen it for the next prompt or validation retry, contrary to the intended retained, disabled prompt. Confirmed by tracing the client, controller, and render path; delayed-response regression coverage is needed.

Validation at reviewed head

Check Result
Full repository build, native Windows ARM64 Passed
Shared tests 4,215 passed, 34 skipped
Tray tests 3,614 passed
SetupEngine tests 2,103 passed, 1 skipped
Focused onboarding UI tests 63 passed, 1 failed, matching finding 1

An isolated ARM64 app was launched and its responsive Setup window checked through UI Automation. This is not complete visual or gateway proof. Keyboard/Narrator focus and live-region risks remain unverified, as do live installation/authentication/pairing. Recheck/Activate popup transitions match the documented design and are not an additional confirmed defect.

Intervening author update: before this follow-up, the PR advanced to 9ef485ed9f7915c79db0c923c1f0392afe0fc3c4, which removed the contradictory assertion and strengthened cancellation-session coverage. The validation above belongs to 183916b0, not that newer commit. The follow-up preserves this author fix.

Fixes in f7d6fab

  • Preserve the author's cancellation-session test. Correct documentation: cancellation is available after the client allocates the owned wizard ID, including before the start response.
  • AiSetupPage owns answer-submission presentation for the current request generation. GatewayAiSetupClient still owns protocol state and continues marking pending answers Uncertain.
  • The same ProviderSetupDialog stays mounted with disabled input during pending answers. Submitted secrets are immediately cleared; non-sensitive input and selection remain until the reply. Recovery after a lost reply hides/clears the stale prompt instead of allowing replay.
  • Add six pure presentation cases and nine mounted UI cases covering text/secret/select/multiselect/consent/device-code prompts, validation retry, lost replies, cancellation, and page close.

Validation at fixed source state

All commands below ran on the source subsequently committed unchanged as f7d6fabd, on native Windows ARM64, with isolated test data.

Command Result
.\build.ps1 Passed
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore 4,215 passed, 34 skipped
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore 3,614 passed
dotnet test .\tests\OpenClaw.SetupEngine.Tests\OpenClaw.SetupEngine.Tests.csproj --no-restore 2,109 passed, 1 skipped
dotnet build .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -p:Platform=ARM64 -r win-arm64 Passed; existing generated CS0618 warning
`dotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj --no-build --no-restore -p:Platform=ARM64 -r win-arm64 --filter "(FullyQualifiedName~OnboardingAiPageTests FullyQualifiedName~AiReadyPageRenderingTests)&Category!=NativeOnboardingProof"`
Same UI command filtered to FullyQualifiedName~ProviderDialog_PendingAnswerKeepsDisabledPromptMounted, with an isolated OPENCLAW_UI_PROOF_DIR 7 passed; local rendered-element captures
git diff --check Passed

Four timing-sensitive SetupEngine tests failed in an earlier run overlapping the UI build. All 12 tests in the affected focused selection passed on retry without the concurrent build. The full repository build and required Shared, Tray, and SetupEngine suites were then rerun serially and passed as reported above. No unrelated test changes were made.

Narrow Opus 5.5 rubber-duck review of the complete fix delta found no blocking issues. The structured helper command python .agents\skills\autoreview\scripts\autoreview --mode local --prompt <scoped-fix-context> stopped before engine invocation because the generated local patch exceeded its 180,000-byte bundle limit (376,818 bytes). No clean structured autoreview result is claimed.

Required proof pools

  • windows-winui-interactive: still applicable. Mounted native WinUI behavior is exercised, but the complete compositor/accessibility proof pool is not claimed.

Real behavior proof

The new tests hold the actual page's wizard.next response pending through a scoped synthetic transport. They assert that the dialog remains loaded, no Closed event occurs, the prompt stays visible with inputs disabled, the inline loader is absent, device code remains visible, and the secret field is empty. Release, failure, cancellation, and close paths then run through the production page/controller/dialog.

Copied current-source diagnostic:

Pending select answer: dialog loaded, step visible, inputs disabled, no Closed event.

The same checks passed for text, secret input, multiselect, consent, and device-code acknowledgement. Rendered-element captures are local supplementary evidence, not full-window compositor proof.

Not verified / blocked: complete current-head native visual gallery, keyboard/Narrator announcements, real provider authentication, and live Gateway pairing/installation. Earlier PR screenshots predate these fixes and are not claimed as current-head evidence.

Keep disabled prompts mounted through asynchronous answer submissions without treating unrelated uncertain states as active input. Preserve early owned-session cancellation and correct its documentation. Add delayed-answer, recovery and cancellation UI regressions.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 8cc5709e-aa37-4d95-b372-439a7dd33a89
@karkarl karkarl removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 1, 2026
@karkarl

karkarl commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

Manually verified updated setup flow.

@karkarl
karkarl merged commit c3d622f into main Oct 1, 2026
53 of 57 checks passed
@karkarl
karkarl deleted the bkudiess-onboarding-redesign-follow-ups branch October 1, 2026 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants