Repository navigation
fix: allow assistive tools to invoke onboarding actions - #1797
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR lets assistive tools invoke onboarding action cards through native UI Automation while retaining existing page guards. Example: Invoke the LM Studio provider card during onboarding.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR supplies a useful accessibility repair absent from main, and inspection found no introduced correctness or security defect. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherCompanion onboarding renders Gateway-provided AI choices and verified completion destinations; card activation enters existing setup or navigation owners. flowchart TD
A[Assistive tool] --> C[SetupActionCard]
B[Mouse or keyboard] --> C
C --> D[Guarded page handler]
D --> E[Gateway AI setup]
D --> F[Verified completion coordinator]
Technical reviewBest possible solution: Land the focused automation adapter with the existing page and completion owners preserved once the draft hold and current checks are settled. Do we have a high-confidence way to reproduce the issue? Main still wires the affected Toolkit cards directly to click handlers; the documented missing Invoke provider and native UIA coverage establish the failing boundary, although this review executed no reproduction. Is this the best way to solve the issue? The adapter is the smallest complete repair: it retains Toolkit presentation and forwards both activation paths into existing guarded actions without creating another setup owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4cbbe51c45a7. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (3 earlier review cycles)
Reviewed October 29, 2026, 7:54 PM ET / 23:54 UTC (Revision 4). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Native Windows validation of #1797 Windows validation report (roboclaw/validate-pr-1797-20261027)1. Identity
2. Host
3. Commands and results (evidence
|
| Lane | Command | Exit | TRX total / executed / passed / failed / not run |
|---|---|---|---|
| prereq diag | setup-dev.ps1 -CheckOnly |
1 | "Repository is not trusted for GitVersion": a fresh guest before build.ps1 adds the exact safe.directory. Environmental. |
| build | .\build.ps1 |
0 | n/a |
| Shared | dotnet test ...Shared.Tests --no-restore |
1 | 4674 / 4649 / 4648 / 1 / 25 |
| Tray | dotnet test ...Tray.Tests --no-restore |
1 | 4567 / 4567 / 4566 / 1 / 0 |
| docs | validate-docs.ps1 |
0 | n/a |
| mounted onboarding UIA | run-proof-tests.ps1 UITests, handoff filter, -RuntimeIdentifier win-x64 |
0 | 26 / 26 / 26 / 0 / 0 |
| WizardPage control | see section 4 | 1 (expected) | 2 / 2 / 1 / 1 / 0 |
| historical 9b3d632, focused overlap | Invoke-CiTest.ps1 filter NativeFallback_GatewayMoreRejectsAnOverlappingContinue |
0 | 1 / 1 / 1 / 0 / 0 |
| historical 9b3d632, hosted Tray UI lane shape | Invoke-CiTest.ps1 ... -Filter "Category!=Accessibility&Category!=NativeOnboardingProof" -HangTimeoutSeconds 300 |
1, twice | 0 results: blame inactivity hang at start (section 6) |
| historical, same lane minus the 2 hung tests (documented deviation) | same plus FullyQualifiedName!~ for both |
0 | 543 / 511 / 511 / 0 / 32; overlap test passed |
| candidate FunctionalUI | Invoke-CiTest.ps1 tests/OpenClawTray.FunctionalUI.Tests |
0 | 19 / 19 / 19 / 0 / 0 |
| candidate Tray UI lane, run 1 | hosted lane shape | 1 | 225 recorded / 223 passed / 2 not run, then host crash (section 6) |
| candidate Tray UI lane, rerun | same | 0 | 598 / 565 / 565 / 0 / 33 (overlap and pre-mount tests pass) |
| candidate Accessibility | dotnet test ... --filter Category=Accessibility |
1 | 23 / 23 / 22 / 1 / 0 (base failure, section 6) |
| BoundedProcessWait isolation | 3 serial reruns of BoundedProcessWaitTests |
0 ×3 | 8/8 each (late-output case 0.37 s) |
| proposed repair | disposable clone + diff, dotnet test ...Tray.Tests |
0 | 4566 / 4566 / 4566 / 0 / 0 |
4. Controls
- WizardPage negative control. Disposable clone of the candidate, with only
WizardPage.xamlandWizardPage.xaml.csrestored from48cb8a18and the candidate's tests kept:WizardOptions_BuiltBeforeMountRetainMoreAndResetRemovesItfails:Assert.IsType<Button>gets null, so More is discarded when options are built before mount.NativeFallback_GatewayMoreRejectsAnOverlappingContinuepasses.- At the candidate both pass (mounted lane, both CI-lane runs).
- What this proves: the pre-mount defect is real in main's WizardPage, and the candidate's declared-input-panel fix closes it.
- What it does not prove: that this defect caused the historical hosted timeout. With old WizardPage, the overlap test passes here.
- Historical reproduction. Under the hosted lane shape on 9b3d632, the overlap test passed both focused and in the 511-test run. The historical More
IsLoadedtimeout did not reproduce in this guest. Its root cause is still unproven; the pre-mount defect is a plausible, unproven contributor.
5. Visual/UIA/protocol evidence: running Companion (ordinary entry path)
- The candidate's normal Companion exe (release identity) ran on the guest desktop.
- Path that reached the provider cards:
- Native Store Gateway (OpenClawFoundation.OpenClawGateway 2026.10.600.0, installed by Companion via WinGet).
- Companion launched from the Explorer shell, guest's normal profile.
- Flow: Welcome → native gateway (Recommended; isolation probe passed) → Balanced → Set up gateway → all four steps complete → Set up your AI (step 5 of 6).
- Screenshots:
running\17-native-shell-launch.png,21-cards-ready.png.
- Earlier attempts (retained):
- Task Scheduler launch, isolated tray roots. Prepare-profile failed every time with
SessionException ... Unable to start ...\agent-node\node-v24.22.1-win-x64\node.exe: Unable to open the invocation job. That held with and without nested virtualization.- The Gateway log shows the boot-started isolated Gateway runs fine; only Companion-initiated invocations fail.
- The Explorer launch succeeded on the same guest, so I classify this as my harness's launch context, not fix: allow assistive tools to invoke onboarding actions #1797.
- Product observation: if Companion is ever started from a scheduled task, native isolated-Gateway setup can't invoke the session.
- WSL route (after enabling nested virtualization and WSL): preflight stopped because port 18789 was held by the auto-started isolated native Gateway. No WSL distro was created.
- One transient WinGet
0x80072EE7(DNS) right after a VM restart.
- Task Scheduler launch, isolated tray roots. Prepare-profile failed every time with
- Cards and actions observed (UIA tree,
running\uia-32-ai.txt):- Provider choices are
SetupActionCardcontrols (id=ChoiceActionCard) exposingInvoke: LM Studio, Ollama, Codex login (device code), OpenRouter OAuth, xAI OAuth, Anthropic Claude CLI, More sign-in options (ExpandCollapse), API Keys (ApiKeysButton, Invoke). ApiKeyConnectButtonisenabled=Falsewith an empty key.
- Provider choices are
- UIA Invoke reaches the guarded action:
InvokePattern.Invoke()on the LM Studio card opened the Gateway-driven "LM Studio base URL" wizard dialog (18-after-uia-invoke-lmstudio.png). - Ordinary click reaches the same kind of action: a real mouse click on the Ollama card opened the "Ollama mode" wizard dialog (
20-after-click-ollama.png). - Busy rejection at the provider boundary:
- While a wizard was active, every provider card reported
IsEnabled=False. - UIA Invoke on the disabled Ollama card was rejected ("The element is not enabled").
- Gateway log: exactly two wizard lanes in the window, both
WizardCancelledError(00:40:56 after 270.8 s; 00:47:01 after 210.6 s). Nothing was dispatched for the rejected invoke. - Cancel by mouse and by UIA both returned to enabled cards with "Setup was cancelled...".
- While a wizard was active, every provider card reported
- Pre-existing a11y defect (not fix: allow assistive tools to invoke onboarding actions #1797): the provider wizard dialog's option ListItems expose UIA names like
GatewayAiSetupWizardOption { Value = cloud-local, Label = Cloud + Local, ... }(recordToString()).ProviderSetupDialogis unchanged versus main. - Redaction: the evidence zip excludes
settings.json,gateways.jsonand device keys. Gateway log copies drop token/secret/key/authorization lines. No credentials were entered or read.
6. Failures retained and classified
- CANDIDATE-CAUSED: Tray
AppRefactorContractTests.WizardResetInputs_RemovesOverflowMoreButton.- It's a source-inspection test from Refine gateway setup wizard UX and fix accessibility gaps #940 asserting
morePanel.Children.Remove(_moreOptionsButton)inResetInputs. - Both parents contain that text and pass. The candidate's merge-commit More fix replaced it with
StepInputs.Children.Remove(moreButton), so hosted fast validation would fail too. - The behavior is right: the candidate's
ResetInputsstill removes More and nulls the field, and the mounted test proves it. The stale source-text test is wrong.
- It's a source-inspection test from Refine gateway setup wizard UX and fix accessibility gaps #940 asserting
- Shared
BoundedProcessWaitTests.WaitAsync_PreservesOutputWrittenLateWithinDeadlinehit the 3000 ms drain deadline once (3.05 s). It passed 3/3 isolated reruns (0.37 s) and passes at 1773/1795. Unresolved transient timing on a freshly provisioned guest; not candidate-proven. - Candidate Tray UI run 1: host crash
COMException 0x80073B17 NamedResource Not FoundduringOnboardingWindowsFlowTests.CustomChoices_SurviveNodeAndMcpGatesAndGatewayAvailabilityChanges(sequence position 226). That test passed alone at the candidate, main and original, and the full lane rerun passed (565/565). Unresolved intermittent; not reproduced. - Accessibility
SandboxPageNameNotNull (Expander with no name) fails identically at main48cb8a18. Proven base failure. - Historical lane hang (twice):
AudioPipelineFirstAudioTimeoutTests.FirstNonemptyAudio_CancelsTimeoutandWorkspaceSessionLayoutTests.LongTitlesLeaveRoomForBusyOrUnreadStatuswere both incomplete at the 5 min blame inactivity limit. That's specific to the 9b3d632 tree in this guest; the candidate tree runs those classes fine. - Class-level run of
OnboardingWindowsFlowTests: 4HeroViewport_*failures, "Native proof requires OPENCLAW_UI_PROOF_DIR". These areNativeOnboardingProoftests excluded from the hosted lane, failing closed without proof prerequisites. Harness artifact. - Environmental: lease 1 clone (DNS outage), setup-dev CheckOnly trust ordering, WinGet DNS blip, Task Scheduler launch context for native Gateway setup.
7. Proposed repair (not applied, not pushed)
files\proposed-1797\proposed-1797-remove-source-text-more-test.diff: deleteWizardResetInputs_RemovesOverflowMoreButton(14 lines) fromtests/OpenClaw.Tray.Tests/AppRefactorContractTests.cs.- Rationale: source-inspection test; behavioral replacement already in the candidate (
NativeSharedFlowTests.WizardOptions_BuiltBeforeMountRetainMoreAndResetRemovesIt, mounted, pre- and post-mount, asserts reset removes More and clears the field). - Validated in a disposable clone: Tray 4566/4566. It would need a new commit (new SHA) and a rerun of the closeout plus mounted lane on that SHA.
8. Provider-connect lanes (formerly PENDING-PAUL): executed 2026-10-29, see section 11
Paul completed the provider sign-in through the normal UI on the staged guest. Results are in section 11. The original split is kept below for traceability.
Already proven without a key (2026-10-27):
- Provider cards advertise and honor UIA Invoke.
- UIA Invoke and an ordinary click enter the same guarded provider wizard action.
- Disabled/busy provider cards reject UIA Invoke, and no extra Gateway operation is dispatched.
- Cancel works from both paths.
- API-key Connect is disabled when empty.
Needed the provider connect (now covered in section 11, except where noted there):
- Model choice cards after verification (UIA Invoke on a model card reaching the guarded select/verify action, current-model availability states).
- A real completion choice after verification/admission, landing on the Chat, Channels or Skills destination.
- Absence of duplicate verification/start/stop effects.
- Disabled/busy rejection at the completion boundary.
- Current-head screenshots/UIA of those active states.
Also unrun: NativeOnboardingProof compositor/gallery categories (need the reviewed freeze/proof-dir prerequisites), ARM64.
10. Addendum 2026-10-29: restaged at the provider cards
- New lease
cbx_1d4148781221, VMcrabbox-63a4-cand1797c-449ecada. Plain template guest, with no nested virtualization or WSL changes. - Fresh clone of the branch (still at 8e5e942 / 4b1f4dc6);
build.ps1exit 0; source clean. - App exe sha256
4B20EA9EC8437C2BF717ADF9823B823112E69FBF4F96741E0A0EFAF229848AAA, version2026.10.9-...Sha.8e5e9426. The hash differs from section 2 only because GitVersion picked up newer remote tags. - Companion launched from the Explorer shell (parent explorer.exe, session 1). UIA walk: Welcome → native gateway → Balanced → Set up gateway. All four native steps completed, ending at "Set up your AI", step 5 of 6.
- This confirms the earlier "Unable to open the invocation job" failure came from the Task Scheduler launch context; nested virtualization was not needed.
- Evidence:
files\evidence\1797\stage2\(stage.log, screenshots, UIA dumps). - The lease was held for Paul's credential step and released at 13:52 PT (section 9).
11. Provider-connect results (2026-10-29, lease cbx_1d4148781221)
Boundary: the candidate's normal Companion (release identity, sha256 4B20EA9E…8AAA), launched from the Explorer shell, with the Store native Gateway (OpenClawFoundation.OpenClawGateway 2026.10.600.0) on a throwaway Insider 29683 guest. A real provider and model were used: no fixtures, no credential bypass. I never read, printed or copied credentials; every log copy is secret-filtered, and a scan of the evidence found no credential-shaped strings.
Provider (read from the guest, not stated by Paul): GitHub Copilot, by device-code sign-in.
- The Ready page shows "Verified model:
github-copilot/claude-sonnet-5". - The Gateway reload applied
auth.profilesandagents.main.model, and loaded thegithub-copilotplugin. - Edge was open on a github.com device-login page.
- The provider wizard ran 3
wizard.nextsteps (12:41:48 to 12:42:46).
Flow Paul's sign-in drove (ordinary path, before my actions):
- Two
openclaw.setup.verifycalls (12:43:01, 12:43:13), then "Finishing your Windows setup choices" (Windows finalization before Ready). - A single Gateway restart at 12:44:00 (listener pid 3392 and session-host 11768 created then).
- The post-setup Companion restart at 12:45:37: a preparation handoff receipt was issued, then 2 verifies (12:45:36 old process, 12:45:57 new process).
- The post-restart Ready owner: a "Finishing setup" window showing "Your AI is ready".
- The 3 choices Talk to my agent (Recommended,
ChatChoice), Connect channels (ChannelsChoice) and Explore skills (SkillsChoice), each aSetupActionCardexposing Invoke. Progress "Step 2 of 2", no footer buttons.
Paul stopped there, as asked.
Completion boundary: UIA Invoke, busy rejection, destination, no duplicates (stage2\completion-race.txt, baseline-pre.txt/baseline-post.txt, choice-window.txt, 12-destination.png):
- 12:59:38.287: UIA
InvokePattern.Invoke()on Talk to my agent was accepted. - By 12:59:38.307 (20 ms later) all three cards were
IsEnabled=False. - Immediate UIA invokes on Explore skills, Connect channels and a second Talk to my agent were all rejected (
ElementNotEnabledException). A later invoke on Channels, after the window closed, also failed ("Unsupported Pattern"). - 12:59:41.6: the setup window closed and the main OpenClaw window opened on native Chat: main agent, Home, composer and suggestions (
12-destination.png). The destination is correct, and nothing from Channels or Skills opened. - No duplicate effects:
- Companion sent no
openclaw.setup.verifyafter the choice (tray log). - The Gateway log after the choice shows only Chat page reads (
projects.list,environments.list,users.self); no setup, wizard, verify or finalize calls. - The Gateway listener and session-host pids and creation times are unchanged (3392 and 11768, 12:44:00). There's no new "Starting the gateway" in the package runtime log, and the Companion pid is unchanged (7488).
- Verify count stays 4 before and after.
- Companion sent no
- Observation outside fix: allow assistive tools to invoke onboarding actions #1797:
users.selfreturns FORBIDDEN on the operator connection, and Workspace uses the owner fallback.
Model-card boundary: UIA Invoke, ordinary click parity, busy rejection (stage2\model-race.txt, act-log.txt, 18-…png to 20-…png):
- Re-entry used Settings → Open setup (
OpenLocalGatewaySetupButton), the documented "re-run provider and model setup" entry, in the same Explorer-launched process.- To reach Settings I forwarded the
openclaw://settingsdeep link. - An elevated forwarder was correctly refused by the single-instance pipe's owner check ("pipe was not owned by the current user"). A non-elevated forwarder launched from Explorer succeeded.
- To reach Settings I forwarded the
- Native setup re-ran without restarting the Gateway (same pids).
- The AI page showed Detected AI choices → Current model:
github-copilot/claude-sonnet-5— already configured → Use this model (aSetupActionCardexposing Invoke). This is the card fix: allow assistive tools to invoke onboarding actions #1797 changes. - 13:40:44.761: UIA Invoke on Current model was accepted. Within 35 ms the Current model, LM Studio and Ollama cards were all disabled. Immediate UIA invokes on LM Studio, Ollama and Current model were rejected (
ElementNotEnabledException), as was one more at +1.5 s. - The activation produced exactly one Gateway
setup-inferenceincognito probe (13:40:54). It failed, the page showed "The provider could not activate this model. Refresh to choose again…" with secret values redacted, and the cards re-enabled at ~13:40:56. - An ordinary mouse click on the same card disabled it immediately, produced exactly one more probe (13:43:37), and ended in the identical error state.
- Conclusion: UIA Invoke and click enter the same guarded activation, busy invokes dispatch nothing, and recovery restores the cards.
New finding, not caused by #1797 (Gateway/runtime side):
- Existing-model activation ("Use this model") fails for this device-login GitHub Copilot model. The incognito
setup-inferenceprobe reports the secret owned by the main agent account as "configured but unavailable (not materialized by the active runtime)". Ordinary setup verification of the same model succeeded 4 times earlier. - Owner is likely the Gateway's setup-inference/secret materialization path (openclaw core), not Companion UI.
- Impact: re-running provider/model setup from Settings can't reuse a device-login GitHub Copilot model.
Not exercised:
- A click-path completion choice. The completion was made via UIA; returning to Ready again was blocked by the activation finding above. Click-vs-UIA parity is proven at the provider (2026-10-27) and model (above) boundaries.
- Channels and Skills destinations.
- Fresh-onboarding model selection inside the provider wizard (Paul did that by hand; not instrumented).
- NativeOnboardingProof compositor/gallery categories and ARM64 remain unrun.
Evidence: files\evidence\1797\stage2\, plus files\evidence\1797\evidence-1797-stage2.zip (sha256 FACCD87AC484049426A79DC0403EAC0F43CC353EF05B70D80F0B6D85E0E1F5E5).
9. Cleanup
- All three 1797 leases released through
crabbox stop --provider hyperv:cbx_a39d861ec15a,cbx_80cf7ceda51e(2026-10-28), andcbx_1d4148781221(2026-10-29 13:52 PT, before its 14:43 expiry).crabbox list --provider hypervno longer lists anycrabbox-63a4-*VM and no claims remain in the local claim directory. Unrelated VMs on the host were never touched. - Evidence:
files\evidence\1797\evidence-1797-lanes.zip(sha256 B0E1670BB7D15F2A64FA19E0DD3C1A2EFCC66CE0606FAA3CAFF0E1951A4F1361)files\evidence\1797\evidence-1797-running.zip(sha256 E589EDECE9F01DD2F4BD81E388C89B7564C08E02E25A85F4ACEC8FA9E559E0EA)files\evidence\1797\running\(screenshots and UIA dumps)closeout-failures.txt,isocases.txt,uifail-1797.txt,uilog-1797.txt,negctl-1797.txt
Proposed repair from section 7 (not applied or pushed): delete the source-inspection test the candidate's More fix breaks
The candidate's mounted test already covers the behavior. With this deletion Tray passed 4566/4566 in a disposable clone.
diff --git a/tests/OpenClaw.Tray.Tests/AppRefactorContractTests.cs b/tests/OpenClaw.Tray.Tests/AppRefactorContractTests.cs
index feb86ad..79c3966 100644
--- a/tests/OpenClaw.Tray.Tests/AppRefactorContractTests.cs
+++ b/tests/OpenClaw.Tray.Tests/AppRefactorContractTests.cs
@@ -1672,20 +1672,6 @@ public sealed class AppRefactorContractTests
Assert.Contains("WizardTimeouts.ForStep(title, message, _stepId)", source);
}
- [Fact]
- public void WizardResetInputs_RemovesOverflowMoreButton()
- {
- var root = TestRepositoryPaths.GetRepositoryRoot();
- var source = File.ReadAllText(Path.Combine(root, "src", "OpenClaw.SetupEngine.UI", "Pages", "WizardPage.xaml.cs"));
- var reset = ExtractMethod(source, "ResetInputs");
-
- // The "More ▾" overflow button is a sibling of SelectOptions in the shared
- // StackPanel, so ResetInputs must remove it between steps or it leaks forward.
- Assert.Contains("_moreOptionsButton", reset);
- Assert.Contains("morePanel.Children.Remove(_moreOptionsButton)", reset);
- Assert.Contains("_moreOptionsButton = null", reset);
- }
-
[Fact]
public void WizardBack_IsUnavailableWithoutDedicatedGatewayBackRpc()
{Extract the independently reviewed reliability seam without the held native timeout consumer. No change to executor releases, package pins or sandbox enforcement.
09fb062 to
ebec1d7
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
What Problem This Solves
Fixes: assistive tools cannot invoke some visible onboarding action cards through their native automation contract.
User Impact
User impact: Accessible automation can invoke the same visible onboarding choices as a user, without private completion flags or bypassing normal consent.
DRAFT. Final standalone source passed full build, Shared/private Tray closeout and 24/24 mounted/native-UIA behavior cases. These use synthetic provider/native-runtime dependencies, not live model/package operations or native pixels. Genuine installed onboarding in combined integration63a remains separately attributed historical evidence.
Why This Change Was Made
Expose the existing action-card invocation through the native UI Automation peer and keep normal busy, ownership, verification and completion gates. Preserve the existing setup and composition owners.
The two lost coverage contracts are now protected behaviorally: mounted Local AI/hosted-provider grouping, manual-input placement, selection versus activation and bound-candidate invocation; and verified completion re-verification, all three destinations, no footer bypass and error-only recovery through the owning AI page. Normal Gateway review also hides competing Local AI setup. The compound Local AI card is unchanged; API-key and recommended-template cards reuse the guarded action adapter.
Typed test friend access replaces implementation reflection. A named test-project reference alias resolves the existing linked FluentIconCatalog ambiguity without a production namespace change.
Landing coordination: the independent onboarding drafts share the canonical
MountedControlCapture.cshelper path. Neither requires the other to build; whichever lands second must rebase and retain the other split's reviewed helper changes, including requested-capture geometry diagnostics.Continuity and onboarding automation remove different, non-overlapping old cases in
NativeCompletionPresentationTests.cs. Rebase whichever lands second before final review.Evidence
Rebase on main (current head)
Current head
ebec1d71aab61b49b8dda60fad201fdc2f55e7e4is a rebase of09fb0621ontomainat4cbbe51c; it adds no new behavior. Conflicts and resolutions:AiReadyPage.xaml: keeps the PR'sSetupActionCardchoices and main's (fix(onboarding): finish setup before showing AI as ready #1626) initially collapsedChoicespanel, whichAdmitChoicesreveals after setup is committed.MountedControlCapture.cs(add/add with main): main's canonical helper is kept; it has the sameOptionalAsync(Window, string)API the PR's callers use.NativeSharedFlowTests: main rewrote the native flow so Windows finalization runs onAiCompletionPagebefore Ready. Main's version is kept with the PR's UIAInvokePatternchoice invocation and its Ready-page invariants (AssertNoCompletionFooterActions, no Skip/Finish, closedErrorBar,RecoveryButtonas its action). The PR'sCompletionFailure_ExposesOnlyErrorRecoveryAndReturnsThroughTheOwningSetupFlowwas dropped. It induced a startup-registration failure after choosing on Ready, which can no longer happen there because main applies startup before Ready. Main'sNativeStartupUsesVisibleChoiceAndRetainsItAcrossRegistrationRetryandNativeRecovery_ErrorOnlyAndHiddenAgainAfterSuccessfulRefreshcover that failure and error-only recovery.ChooserHasThreeNativeActions_RecommendationAndErrorOnlyRecovery_NoFooterButtonsandAiGroups_KeepManualInputInlineAndMoreLimitedToAuthenticationstay deleted, as in the original change.On this head:
./build.ps1passed;OpenClaw.Tray.UITestscompiles;OpenClaw.Shared.Tests4807 passed, 25 skipped, 0 failed;OpenClaw.Tray.Tests4760 passed, 0 failed, includingAppRefactorContractTests.WizardResetInputs_RemovesOverflowMoreButton, so the proposed deletion of that test was not needed. The mounted/UIA onboarding cases are windowed and were not rerun locally (no desktop windows); CI runs them.Real-Companion proof (validation candidate
8e5e9426, not the rebased head)This addresses the missing real-behavior proof. The roboclaw validation candidate
8e5e94260dadd11fb79c31353ba5d46b2e128340(parents: this PR's09fb0621and main48cb8a18, which already includes #1626's finalize-before-Ready flow) was validated Oct 27-29. The candidate's normal release-identity Companion ran in a throwaway Windows guest, launched from Explorer, with the Store native Gateway (2026.10.600.0). Report: #1797 (comment) (sections 5, 8, 10 and 11).8e5e9426wizard.nextsteps. The Gateway reload appliedauth.profiles/agents.main.model, and Ready showed "Verified model:github-copilot/claude-sonnet-5". There were no fixtures and no credential bypass (section 11).ChatChoice/ChannelsChoice/SkillsChoiceasSetupActionCards exposing Invoke, "Step 2 of 2" and no footer buttons.InvokePattern.Invoke()on Talk to my agent was accepted. All cards disabled within 20 ms, and immediate invokes on the other cards and a second Chat invoke were rejected. Native Chat opened. There was no extra verify/setup/wizard call, no Gateway or Companion restart, and the verify count stayed at 4.Not exercised: an ordinary click path for the completion choice, the Channels and Skills destinations, ARM64, and any live run on rebased head
ebec1d71. The rebased head also includes main changes after48cb8a18. Apart from theAiReadyPage.xamlmerge above, the PR's own product changes are unchanged.Actual running-Companion attempt and remaining credential constraint
The published branch is independent and remains DRAFT. No real provider/model or completion-card invocation pass is claimed. The existing mounted/native-UIA tests and the additional running-app evidence below are distinct.
Private-desktop dependency: the independent current head cannot reach its normal app entrypoint on the private desktop without #1783 (fix: open the Hub when private desktop shell services are unavailable). Exact current-head startup output:
No Default-desktop slot was available. The explicitly approved proof-only composition is COMBINED #1797 + #1783:
09fb0621a56f864717ff714e1b3cd547fa8e3ba1.e16d2f9f4070f91aa1da4958c712c0c0ab80436b.d02d3bd3b7b7d1cdf1d285b4cd7ae3f6ecb9cd7c, never pushed.The COMBINED tree passed
./build.ps1, Shared4,635passed/25configuredskips, private-desktop Tray4,440passed/zero skipped, and focused mounted/native-UIA plus startup28/28passed. An earlier runtime-only composition had4,440Traypasses/one obsolete source-inspection assertion failure. That failure is preserved; the complete composition includes #1783's already-published deletion and real native startup tests, not a patched marker assertion or relaxed budget.The real normal COMBINED Companion executable, using the normal installed profile and credential-owning app/CLI paths, then reached authenticated schema2Ready. It was not a preview or synthetic Gateway. The installed packaged Gateway remained OpenClaw2026.10.5 at its existing endpoint; hosting SDK1.0.1 is distinct from this branch's Windows-node SDK1.0.0.
Two normal UI entry paths were actually exercised and stopped before the changed action-card behavior:
Cached device-token reconnect Ready is not fresh credential validation. The verified installed packaging owner has only
clawctl companion prepare; even--checkreturns credential-bearing data. There is no supported opaque Companion connect/open/pipe handoff in that owner.clawctl opentargets the authenticated browser Control UI and was not repurposed. Normal app/CLI owners performed authentication; the automation did not manually read or copy credentials, print token values, put them in arguments or use the clipboard.The noncredential native-draft descriptor was checked against redacted saved-gateway metadata: its port is the existing18789 and its logical ID is already the active published record. Re-entering the Native Gateway install/setup choice would make this source's
CreateDraftAsyncselect another available port, so that route was deliberately not run. No second Gateway, reset, install, model change or port change was used to bypass this constraint.After each actual run, the exact source process was cleaned up and installed Hub403 was restored through its normal packaged activation. Redacted excerpt from the actual lifecycle receipt (not an illustrative MCP response schema):
{ "ProofKind": "COMBINED #1797 + #1783. Not standalone private-desktop entrypoint proof.", "TargetHead": "09fb0621a56f864717ff714e1b3cd547fa8e3ba1", "StartupHead": "e16d2f9f4070f91aa1da4958c712c0c0ab80436b", "RuntimeProofHead": "d02d3bd3b7b7d1cdf1d285b4cd7ae3f6ecb9cd7c", "Before": { "Schema": 2, "State": "Ready", "McpRunning": true, "Node": "Connected", "Operator": "Connected", "Paired": true }, "After": { "Schema": 2, "State": "Ready", "McpRunning": true, "Node": "Connected", "Operator": "Connected", "Paired": true }, "GatewayIdAndEndpointUnchanged": true, "ProviderAndModelUnchanged": true, "GatewayRestartOrInstallRequested": false, "ManualSecretReads": false, "ClipboardUsed": false, "CleanupIssues": [] }Still required: a permitted normal entry/credential-delivery route to this running Companion's AI setup, followed by real provider/model and completion Invoke plus disabled/busy rejection. The present constraints do not permit manual setup-secret handling, a new credential transport or changing the shared Gateway's port. No screenshots were fabricated and the28testcases or Ready readback are not presented as that missing runtime behavior.
Pre-rebase head:
09fb0621a56f864717ff714e1b3cd547fa8e3ba1, based on public main2b7cfce17bb496ec5d8f0c563fb71ebb46e015fa. Published SDK1.0.0 pins unchanged. No unpublished native dependency.Pre-rebase head (
09fb0621) CI: 17 successful checks, UI and its gate red. Actual failed UI job: unchangedNativeFallback_GatewayMoreRejectsAnOverlappingContinuetimes out waiting for Gateway More IsLoaded. Identical failure occurs on independent 1665 and 1750, neither changing the implicated wizard/fixture owners. Exact main2b passes the case in841ms. This is a confirmed pre-existing cross-PR failure; no exact red-main case or identical underlying timing cause is asserted. Authorized rerun was denied for missing repository-admin permission; attempt1unchanged.The lost LocalAI/provider-group/manual-input and completion-recovery/footer coverage was replaced behaviorally, not restored as source markers. Actual mounted cases invoke native UIA/disabled controls, bind repeated choices to their own candidate, distinguish selection from activation, reverify completion for all three destinations and keep error-only recovery through the owning AI page. API/recommended cards reuse the guarded adapter; compound LocalAI is unchanged. Typed friend access and an explicit test assembly alias avoid production namespace changes.
Actual focused standalone mounted/nativeUIA24/24passed with synthetic provider/native-runtime replies. Final local review snapshotbbd1f5e787c79380f296bc5dd6b11ebac9d5bda7found no blocking code finding. That is local review, not hosted current-head review. Genuine installed combined63a UIA onboarding is historical supporting evidence only.
Change Type
Scope
winnodeRequired proof pools
windows-winui-interactive: mounted action-card UIA invocation, disabled/busy behavior and visible normal onboarding completion.Validation
Source frozen before commit, exact changed bytes verified unchanged afterward. Tray/native tests used owned private desktops and isolated state; quiet/WER/original-native-handle completion checks passed.
.\build.ps1dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restoredotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore.\scripts\validate-docs.ps1;.\scripts\validate-agent-skills.ps1;git diff --checkAfter UI build with
-r win-x64 -p:Platform=x64 -p:DevBuild=false, the following actual private native/mounted selection passed24/24with zero skips:Earlier duplicate-catalog compilation, stale exact-type expectations and unrelated cancellation-fixture failures remain retained. They were repaired at the actual owner/seam, not by deleting coverage or loosening assertions. Pixel proof was not requested in this functional invocation.
Real Behavior Proof
09fb0621a56f864717ff714e1b3cd547fa8e3ba1; real Companion/provider proof on validation candidate8e5e9426(see "Real-Companion proof"). The current head is a rebase on main and was not rerun live.{"Total":24,"Executed":24,"Passed":24,"Failed":0,"Unexecuted":0,"ExitCode":0,"DesktopCreatorRetainedUntilNativeExit":true,"NativeExitReceiptVerified":true}N/Afor local private TRX/ownership receipts; public current-head CI and independent failure links above. No private capture is represented as public visual proof.8e5e9426(see "Real-Companion proof"). Full hosted UI remains red on the inherited Gateway More timeout; the affected24case proof is separate.Security Impact
NoNoNoNoNoYes, explain the risk and mitigation: No new permissions, credential handling, remote endpoint or product execution surface. UIA invokes the same existing visible action; busy/disabled, ownership and verification checks still govern it.Compatibility and Migration
Yes. Existing authenticated connection, consent and ownership contracts remain authoritative.Nopersistent source-contract change.NoReview Conversations
This remains DRAFT pending current-head hosted review and required proof. No merge is authorized.