Repository navigation
fix: native Gateways are treated as WSL in Settings and setup - #2017
Conversation
Use installation ownership for Settings, WSL keepalive and tray labels. Restrict WSL replacement reporting to the requested distro, including duplicate records, while preserving native and unrelated Gateways. Co-authored-by: Copilot App <[email protected]>
|
🦞👀 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 distinguishes native and managed WSL Gateways in Settings, keepalive, tray tooltips, and setup replacement. Example: A native Gateway at ws://127.0.0.1:18789 has the display name Local (OpenClawGateway).
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored draft fixes a current ownership-classification bug. The earlier proof blocker is addressed, and this review found no introduced correctness or security defect. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherCompanion and SetupEngine consume saved Gateway records, installation markers, and legacy settings to determine visible management actions, WSL process admission, replacement reporting, and identity cleanup. flowchart TD
A[Saved Gateway records] --> B[Existing ownership classifiers]
B --> C[Settings actions]
B --> D[WSL keepalive admission]
B --> E[Setup replacement and cleanup]
A --> F[Tray snapshot]
F --> G[Tooltip projection]
Technical reviewBest possible solution: Land the focused ownership correction through the existing classifiers and cleanup owners once the draft is ready. Do we have a high-confidence way to reproduce the issue? Current-main source shows native loopback records satisfying WSL admission and Settings checks; retained regressions and the maintainer's runtime observations support the path, without a new execution during this read-only review. Is this the best way to solve the issue? The smallest complete repair gives native ownership precedence in existing owners while retaining legacy WSL detection, coexistence management, requested-distro reporting, and Tailscale labels; the only new option is the test runner's StableAppPath. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 122bda71b221. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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 HistoryReviewed November 6, 2026, 1:29 AM ET / 06:29 UTC (Revision 3). |
Protect native records and identities from WSL replacement cleanup, preserve Tailscale tooltip labels, and retain Settings management for coexisting WSL records. Replace the source-expression assertion with behavioral coverage and use the shared ownership classifier for legacy-looking names. Co-authored-by: Copilot App <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Add isolated Settings and owned-tooltip evidence plus an actual stable portable profile comparison. Keep production behavior unchanged and final validation CI-only. Co-authored-by: Copilot App <[email protected]>
Preserve upstream keyboard-proof isolation alongside the released-profile lane. Resolve fixture documentation without changing the focused product repair. Validation remains CI-only. Co-authored-by: Copilot App <[email protected]>
CI exposed missing automation peers on Border containers. Preserve all ownership cases and capture the complete section using its actual heading and buttons. Keep final validation CI-only. Co-authored-by: Copilot App <[email protected]>
Use the trailing section heading instead of clipped UIA offset arithmetic, dismiss the app notification before capture, and bind tray visibility to the Shell process rather than an accessibility name. Retain Shell diagnostics for failures. CI-only validation. Co-authored-by: Copilot App <[email protected]>
CI diagnostics identify Show Hidden Icons and an unnamed placeholder hit for hidden icons. Match the chevron case-insensitively, require the accessible icon button, and reject partially clipped trailing headings. Preserve all proof assertions and CI-only execution. Co-authored-by: Copilot App <[email protected]>
One user-authorized diagnostic-only CI attempt. Capture Shell-owned taskbar and overflow metadata/pixels after invocation and on timeout. Keep interaction, timing budgets and proof assertions unchanged; diagnostic images are not passing proof. Co-authored-by: Copilot App <[email protected]>
Match the visible Shell button to the exact app-owned notification icon rectangle instead of relying on point-hit ancestry. Preserve tooltip assertions and existing wait budgets. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Locate the owned icon in any visible Shell window, hover with absolute SendInput, find the tooltip in Shell or app UIA subtrees, and capture its root window from the rendered bounds. Co-authored-by: Copilot App <[email protected]>
|
@clawsweeper re-review The PR body now includes verified evidence for current head 362c57f. CI run 42169860640, attempt 1 passed; the actual tested merge checkout is b37d51d. Retained TRX confirms 38 fixture profile/app tests, 74 fixture UI tests (including all three native-only/native-plus-WSL/WSL-only Settings and owned Shell-tooltip cases), and 1 actual latest-stable v2026.9.8-1 profile compatibility case, with zero failures/skips in those selections. All six Settings/tooltip PNGs were visually inspected and their SHA256 hashes match the capture receipts. Independent current-head rubber-duck review covered all 24 changed files and found no blocking issue. Its limits and the older unresolved local metadata-invariance failure remain explicit in the body. The helper review and final-candidate local closeout are not claimed passed. Please reassess the older proof blocker against this candidate and retained evidence. No source was changed in this follow-up. |
|
🦞👀 Re-review progress:
|
Related: #1623 (fix(settings): separate native and WSL gateway management). This replacement retains the focused ownership fixes. Selected-Gateway removal, broad credential cleanup and reopened-onboarding redesign remain out of scope.
What Problem This Solves
Fixes native Gateways being treated as WSL installations in Settings, keepalive and setup replacement, including native records with legacy-looking display names.
User Impact
Native-only profiles no longer expose WSL removal or onboarding merely because their URL is loopback. WSL removal remains available when a native Gateway is active and a managed WSL record coexists, even without
setup-state.json. Onboarding remains an active-WSL action.WSL keepalive and replacement cleanup reject native ownership, including records named
Local (<distro>). Replacement reporting selects the requested distro, honors an explicit recovery ID and identifies native, remote and other-distro records as preserved. Managed WSL loopback tooltips say WSL without overriding Tailscale labels. Active-native routing and setup consent are unchanged.Current status: hosted validation and the previously missing Settings/tooltip and released-profile scenarios passed for PR head
362c57f79c2aa4f999aff7b098fc0a820725cf50. This remains a draft pending a fresh source-review disposition. The previous shared-helper review was unavailable, and earlier real-profile metadata invariance remains unresolved; neither is reported as passed.Why This Change Was Made
Native and WSL Gateways can both use loopback. Existing owners now give the native-package marker precedence and reuse managed-WSL classification. Settings retains control application in the page; App supplies the active record to its existing tray snapshot. No new production service, command, persistence schema or removal pipeline is introduced.
The fixture exercises three mounted Settings/owned Shell-tooltip cases and actual latest-stable-portable-to-candidate profile persistence. This is profile compatibility, not signed-installer, Store or installed native/WSL runtime upgrade certification.
Evidence
Build and Test, run 42169860640, attempt 1 passed for PR head
362c57f79c2aa4f999aff7b098fc0a820725cf50. The actual tested CI merge checkout isb37d51d20f8ef2d1e9de9ed7c3150a5400766116, independently recorded instable-release.json.fixture-profile-app.trx: 38 passed, 0 failed/skipped.fixture-ui.trx: 74 passed, 0 failed/skipped, including all threeGatewayManagement_UsesSavedOwnershipWithoutSetupStatecases.fixture-released-profile.trx: 1 passed, 0 failed/skipped. Actual stablev2026.9.8-1persisted the profile before candidate startup; records, active selection, identity hashes and notification preferences survived.lastConnectedis excluded from field comparison.Verified downloadable UI evidence archive (
test-results-ui, not expired at verification) contains the six PNGs, ownership/capture receipts, all three TRX files,stable-release.json,stable-run.jsonandprofile-compatibility.json. No raw registry, settings or private-key files are offered as proof.Independent rubber-duck review on 2026-11-06 covered all 24 changed files at
362c57f..., spot-checked production owners at that ref and verified CI identity/counts. It found no blocking issue. Non-blocking limits: the compatibility assertion allowslastConnectedchanges on inactive records too, and the CI compatibility step depends on a valid latest release being available. This was the host'stasktool with therubber-duckrole; model identity was unverified. It is not a shared-helper result, frozen-input isolation guarantee or proof of real-profile invariance.ClawSweeper's previous source review applies to
4408a513..., reported zero code findings and requested the now-executed UI and released-profile evidence. Its older rating/verdict is not a current-head approval.Change Type
Scope
winnodeRequired proof pools
windows-winui-interactive: current-head hosted fixture scenarios passed; Settings and owned notification-icon tooltip captures visually inspected for native-only, native-plus-WSL and WSL-only profiles. This is the selected UI contract, not certification of every pool scenario.windows-wsl-gateway-e2e: current CI setup/connect and recovery jobs passed. Earlier selected real-WSL keepalive and cleanup-preservation observations below remain older-source evidence, not a complete current-head pool claim.No MXC, new node command, signed installer, Store updater or GPU implementation changes. The portable-profile comparison is not
windows-clean-installer-upgradecertification.Validation
Current results are hosted, not new local runs. Exact workflow invocations from run 42169860640, attempt 1:
.\scripts\test-gateway-fixture.ps1 -AppPath .\src\OpenClaw.Tray.WinUI\bin\Debug\net10.0-windows10.0.22621.0\win-x64\OpenClaw.Tray.WinUI.exe -ArtifactsDirectory .\TestResults\GatewayFixture -Screenshots.\scripts\test-gateway-fixture.ps1 -AppPath .\src\OpenClaw.Tray.WinUI\bin\Debug\net10.0-windows10.0.22621.0\win-x64\OpenClaw.Tray.WinUI.exe -StableAppPath $apps[0].FullName -ArtifactsDirectory $artifactsThe active hosted build/test checks are green. Mandatory local closeout commands (
.\build.ps1,dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore,dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore) were not rerun on this final candidate. The author previously selected review and CI-only validation after the metadata guard failed. This evidence-only update changes no source and launches no local app.Earlier validation, failures and isolation limits retained
Earlier product head
4408a513a95b65d9d316315c20b5893e8956b7b5had a passed CI run 42087794686. Local full-suite results were agent-reported without retained full stdout/TRX: build exit 0; Shared 4,850 passed/25 skipped; Tray 4,966 passed/0 skipped; SetupEngine 2,586 passed/4 skipped. These are not final-candidate executions.Focused retained regressions: 91 passed, 0 failed/skipped. Before removal of the native-admitting fallback: 89 passed, 2 failed. Controlled reversions produced 3 expected Tray failures and 1 expected cleanup failure. Earlier E2E build failed NETSDK1004 with
--no-restore; a normal-restoring project build subsequently passed. These failures are not erased by later results.Preliminary test-delta local checks passed: UI project build (0 warnings/errors), 26 pure fixture-profile tests, workflow contracts, docs (71 Markdown files) and
git diff --check. Later corrections were not covered by that invocation; current hosted runs above cover the candidate.Unresolved local isolation observation: a real tray log grew 9,178 bytes during a managed-validation batch despite no app being intentionally launched; settings/registry/identity metadata captured in that batch were unchanged. A separate earlier overlapping WSL/managed batch observed five changed real-profile files. Attribution remains unknown. The real-profile metadata-invariance guard failed. No real files were inspected or restored, and further local execution remains paused. Synthetic profile compatibility does not resolve or negate this concern.
Earlier shared autoreview helper: local mode, base
c89cf43419fd87cb0fc3520bd2e82342c3907ec2,--max-priority P3; failed authentication with HTTP 401,reviewer_unavailable, no report. In this follow-up the expected shared skill installation is absent. No installation, authentication bypass or clean helper result is claimed.Earlier Hanselman findings (native cleanup mismatch, Tailscale label regression and missing coexistence fallback) were repaired and covered. The new independent rubber-duck assessment is reported separately above.
Real Behavior Proof
v2026.9.8-1.362c57f79c2aa4f999aff7b098fc0a820725cf50; actual CI merge checkoutb37d51d20f8ef2d1e9de9ed7c3150a5400766116; run 42169860640, attempt 1.GatewayManagement_UsesSavedOwnershipWithoutSetupStateexecuted three cases, thenReleasedProfile_PreservesGatewayRecordsIdentitiesAndSettingsexecuted the actual stable-to-candidate restart.GatewayFixture, directoriesef532124949c4937939c9a4a465a597d,cb598b7e7b5549168cc1be2ddfb0db53and725711ba5c2f40c186de84af00a657adcontain native-only, coexistence and WSL-only captures respectively. Directory07ccddb6c86244f9b45ed8769fe50ffacontains passed compatibility receipt and stable/candidate runtime reports.Yes/No/N/A) Yes. Archive downloaded, TRX/provenance read and six images visually inspected on 2026-11-06 UTC. Artifact retention is finite; this is a downloadable Actions artifact, not permanently embedded GitHub media.Earlier real WSL observations, not current-head UI proof
Earlier frozen product source corresponds to
4408a513..., runpr2017-wsl-3a8ee6ec, Windows x64, WSL 2.7.14.0, disposable distroOpenClawE2E-d379ea7a, Gateway 2026.11.1. Direct scenario calls established operator/node connection, real WSL keepalive, requested-distro reporting and cleanup preserving a synthetic native record/identity sentinel while deleting duplicate WSL identities. These were direct executions, not a new xUnit run or installed-native lifecycle proof.Copied result:
{"setupConnected":true,"realWslKeepalive":true,"existingDistroDetected":true,"exactReplacementReporting":true,"nativeRecordAndIdentityPreserved":true,"duplicateWslIdentitiesRemoved":true,"cleanupVerified":true,"cleanupErrors":[]}cleanupVerifiedcovers owned-resource teardown, not shared-profile invariance. Five real-profile files changed during overlapping validation; attribution is unresolved.Receipt SHA256:
E9E7FBCD55ED4423FE1CEBE3B9995D93425BDD10B28F0AAF1B1AE87A9CE786FF. Loaded app DLL SHA256:887316D03575263D796BC19F0EE4619B0D2350ADE382A32F600111360EA59BB7.Security Impact
Yes/No) No.Yes/No) Yes, retention only: native token-bearing records and identities are excluded from WSL cleanup. Authentication and credential precedence are unchanged.Yes/No) Yes, CI only: resolve/download this repository's latest stable portable release and verify its published SHA256. Product calls are unchanged.Yes/No) Yes, narrowed: native records cannot admit automatic WSL keepalive. CI selects an explicit released executable through the existing isolation guard.Yes/No) Yes, narrowed: cleanup rejects native ownership.Yes, explain the risk and mitigation: remote/SSH/other-distro protections remain. UI ownership cases use credential-free synthetic profiles and assert no Gateway requests. Compatibility uses synthetic Gateway data, private roots and owned-process restart/cleanup. It does not install packages or launch WSL. Reports omit raw registry/settings/private keys. Historical local isolation failures remain disclosed above.Compatibility and Migration
Yes/No) Yes for the exercised released-profile boundary: actualv2026.9.8-1persisted data loaded successfully in the candidate with asserted records, active selection, identities and preferences preserved. Persistence contract is unchanged.Yes/No) No product configuration changes. Test runner accepts explicit-StableAppPath.Yes/No) No.C50955809AFDD07C0D2C17F30BF7C45CF06BED09D751A915BD92945BE27F2047was verified against release metadata. Stable executable SHA2561E10FA66F2F38B8521263D9F6080F9C6283F55B35474CBA6E2B60AC46370C462; candidate executable SHA25697C2CE5BC959FD0D8A8F122445F6CFE3973C949879B148E2EF9C6984360FE1AB. Inactive synthetic records reuse released-format identity bytes.lastConnectedis excluded from comparison for all records. This is not installer/Store upgrade certification or historical real-profile invariance proof.Review Conversations
No inline review threads exist at verification. ClawSweeper's older top-level proof request is addressed by the linked current-head results; a fresh bot source-review disposition is still needed. No bot rating or approval has been changed or inferred.