Skip to content

Hide reconfigure for setup-managed WSL gateways - #634

Merged
ranjeshj merged 1 commit into
openclaw:masterfrom
ranjeshj:user/ranjeshj/removereconfigure
Jun 2, 2026
Merged

ranjeshj merged 1 commit into
openclaw:masterfrom
ranjeshj:user/ranjeshj/removereconfigure

Conversation

@ranjeshj

@ranjeshj ranjeshj commented Jun 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Hide the tray setup/reconfigure entry when a setup-managed local WSL gateway already exists.
  • Gate the Connections page Local WSL setup affordances with the same setup-managed gateway predicate.
  • Preserve legacy setup-managed local gateway detection and add behavioral coverage.

Behavior proof

  • Local visual check captured the requested proof screenshots, but they are intentionally not committed to the repository.
  • Setup-managed WSL gateway exists: tray setup/reconfigure entry is hidden.
  • Setup-managed WSL gateway exists: Connections page shows gateway management, not Local WSL install.
  • No setup-managed WSL gateway record: Connections page shows the local WSL install affordance.

Reset / reinstall route

  • Existing setup-managed WSL users should manage the gateway from Connections (Terminal, Start, Stop, Restart).
  • To reinstall/reset the setup-managed WSL gateway, use the existing Settings removal/reset flow to remove the local gateway; once the setup-managed gateway record is absent, the Connections local WSL install affordance is shown again.
  • The openclaw://setup deep link remains available as an explicit setup entry point; this PR only removes the redundant tray setup/reconfigure affordance when setup has already created a WSL gateway.

Validation

  • ./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

Review

  • Hanselman dual-model review completed; no high-consensus blocking issues found.

@clawsweeper

clawsweeper Bot commented Jun 2, 2026 •

Copy link
Copy Markdown

Codex review: needs maintainer review before merge. Reviewed June 2, 2026, 11:33 AM ET / 15:33 UTC.

Summary
This PR hides tray and Connections-page Local WSL setup/reconfigure affordances when a setup-managed local WSL gateway record already exists, while adding WSL policy coverage and docs updates.

Reproducibility: not applicable. as a bug reproduction; this is a PR for a visible UX behavior change. Source inspection confirms current main still shows the entry points while the PR gates them.

Review metrics: 2 noteworthy metrics.

  • Visible entry points gated: 2 UI surfaces. The patch changes both the tray setup/reconfigure menu item and the Connections Local WSL setup affordances, so maintainers should review both user paths.
  • Changed surface: 7 files, 168 additions, 18 deletions. The diff spans tray UI state, Connections UI, WSL setup detection, docs, and tests rather than a single isolated method.

Merge readiness
Overall: 🦪 silver shellfish
Proof: 🦪 silver shellfish
Patch quality: 🐚 platinum hermit
Result: blocked until stronger real behavior proof is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Attach or link screenshots or a short recording showing the tray entry hidden, Connections Local WSL setup hidden with a setup-managed gateway, and visible again after the local gateway record is absent.
  • Confirm in the PR body that Settings removal/reset and the setup deep link are the supported reset or reinstall path for setup-managed WSL users.

Proof guidance:

  • [P1] Needs stronger real behavior proof before merge: The PR body contains textual claims that screenshots were captured but does not include actual screenshots, a recording, logs, terminal output, or a linked artifact that can be inspected for the visible UI change. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Mantis proof suggestion
A short desktop proof would directly show the changed tray and Connections UI states that the patch affects. A maintainer can ask Mantis to capture proof by posting a new PR comment that starts with the OpenClaw Mantis account mention, followed by:

visual task: verify that a setup-managed local WSL gateway hides the tray setup/reconfigure entry and Connections Local WSL setup affordances, then that removing the local gateway makes the Connections Local WSL setup affordance visible again.

Risk before merge

  • [P1] The PR intentionally removes an existing setup/reconfigure entry point for setup-managed WSL users, so maintainers should confirm that Settings removal/reset and the setup deep link are the supported reset or reinstall route.
  • [P1] The PR body says screenshots were captured but does not attach or link them, so the visible tray and Connections behavior still lacks inspectable after-fix proof in this review.
  • [P1] The PR lists the required build and test commands, but this read-only review did not run them because repository policy for this task forbids build/test artifact writes.

Maintainer options:

  1. Confirm the Reset Path Before Merge (recommended)
    Require maintainer confirmation that Settings removal/reset or the setup deep link is the supported way to reinstall a setup-managed local WSL gateway after the tray reconfigure entry is hidden.
  2. Keep an In-App Manage Fallback
    If maintainers want an always-visible fallback, revise the entry point to route users to the existing local gateway management or removal flow instead of removing it entirely.
  3. Pause if Reconfigure Remains Supported
    If tray reconfigure is still an intended repair path for setup-managed WSL gateways, pause or close this branch rather than landing the hidden-entry behavior.

Next step before merge

  • [P2] The remaining action is maintainer review of the intentional UX compatibility change plus public real-behavior proof, not an automated code repair.

Security
Cleared: The diff does not add dependencies, downloaded code, credential handling, broader permissions, or other concrete security or supply-chain concerns.

Review details

Best possible solution:

Merge only after maintainers accept the hidden reconfigure UX and the PR includes inspectable proof of the tray and Connections states before and after the setup-managed gateway record is present.

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

Not applicable as a bug reproduction; this is a PR for a visible UX behavior change. Source inspection confirms current main still shows the entry points while the PR gates them.

Is this the best way to solve the issue?

Yes, conditionally: reusing WslKeepAlivePolicy for both tray and Connections visibility is narrow and maintainable, but the UX compatibility decision and replacement reset path need maintainer acceptance.

AGENTS.md: found and applied where relevant.

Codex review notes: model gpt-5.5, reasoning high; reviewed against e0ce52d2f16c.

Label changes

Label justifications:

  • P3: This is a low-risk tray/onboarding UX polish PR rather than an urgent runtime, data-loss, or security fix.
  • merge-risk: 🚨 compatibility: Merging changes an existing user's visible setup/reconfigure path for setup-managed WSL gateways and relies on alternate reset or reinstall routes.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The PR body contains textual claims that screenshots were captured but does not include actual screenshots, a recording, logs, terminal output, or a linked artifact that can be inspected for the visible UI change. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed

What I checked:

Likely related people:

  • RBrid: Current-main blame attributes the WSL keepalive policy, Connections local setup visibility block, tray menu builder, and WSL policy tests to the v0.6.0 baseline commit. (role: recent area contributor; confidence: medium; commits: 7d9152f427a3; files: src/OpenClaw.Tray.WinUI/Services/WslKeepAlivePolicy.cs, src/OpenClaw.Tray.WinUI/Pages/ConnectionPage.xaml.cs, src/OpenClaw.Tray.WinUI/Services/TrayMenuStateBuilder.cs)
  • ranjeshj: Current-main history shows recent WSL gateway documentation work touching onboarding docs immediately before this PR, and API metadata ties that commit to this GitHub handle. (role: recent adjacent contributor; confidence: medium; commits: e0ce52d2f16c; files: docs/ONBOARDING_WIZARD.md, docs/WSL_GATEWAY_ADMIN.md)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. labels Jun 2, 2026
@clawsweeper

clawsweeper Bot commented Jun 2, 2026 •

Copy link
Copy Markdown

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@clawsweeper

clawsweeper Bot commented Jun 2, 2026 •

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

Re-review progress:

@ranjeshj
ranjeshj force-pushed the user/ranjeshj/removereconfigure branch from e35e73d to ab2aa39 Compare June 2, 2026 15:27
@ranjeshj

ranjeshj commented Jun 2, 2026

Copy link
Copy Markdown
Contributor Author
Screenshot 2026-06-02 082024 Screenshot 2026-06-02 082002 Screenshot 2026-06-02 081929

@ranjeshj
ranjeshj merged commit f4d4793 into openclaw:master Jun 2, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant