Repository navigation
Conversation
Add a "Run gateway doctor" action to the Diagnostics page (DebugPage). The card opens a terminal in the app-managed WSL gateway, runs `openclaw doctor`, and leaves an interactive shell open so the operator can read the report. - Shown only when the active gateway is an app-managed WSL distro (GatewayHostAccessPlan.CanControlWslGateway); hidden for SSH/remote/none. - Reuses the same launcher path as the Connection page's Open terminal (GatewayTerminalLauncher / GatewayHostAccessClassifier), opening a themed Windows Terminal tab with a direct wsl.exe fallback. - Keep-open uses `&& openclaw doctor || true && exec bash` (no `;`): Windows Terminal splits its command line on `;` even inside quotes, which caused 0x80070002. `|| true` absorbs doctor's frequent advisory non-zero exit so the shell always stays open. - Start() now uses UseShellExecute = !UsesWindowsTerminal so direct wsl/ssh launches get a visible console window. - Adds a Doctor glyph to FluentIconCatalog and resw keys across all 5 locales. Co-authored-by: Copilot <[email protected]>
Contributor
|
Closed as superseded by #780, which includes this change plus conflict-resolution, validation, localization, and review fixes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Run gateway doctor action to the Diagnostics page (
DebugPage). The card opens a terminal in the app-managed WSL gateway, runsopenclaw doctor, and leaves an interactive shell open so the operator can read the diagnostic report.Behavior
GatewayHostAccessPlan.CanControlWslGateway). Hidden for SSH/remote/none.GatewayTerminalLauncher/GatewayHostAccessClassifier): opens a themed Windows Terminal tab, with a directwsl.exefallback.Initialize()and onAppState/Settingschanges.Why the keep-open avoids
;The keep-open command is
<PATH prefix> && openclaw doctor || true && exec bash— deliberately no;. Windows Terminal treats;in its command line as a tab/pane delimiter and splits on it even inside a quoted argument, which causederror 0x80070002when launching.&&/||are not wt delimiters, so the command passes through intact (verified by reproducing the app'sProcessStartInfo.ArgumentListquoting).|| trueabsorbs doctor's frequent advisory non-zero exit soexec bashalways runs.Start()now usesUseShellExecute = !command.UsesWindowsTerminalso the directwsl.exe/ssh.exepaths get a visible console window.UX rationale
openclaw doctoris a rich terminal TUI (banner, box-drawing, step spinners, ANSI color) that exits non-zero for advisory findings. Capturing it headless produces mojibake and an unreliable pass/fail signal, so the action is terminal-first (the operator reads the report directly).Changes
GatewayTerminalLauncher.cs—BuildGatewayDoctor+OpenGatewayDoctor;Start()shell-execute tweak.FluentIconCatalog.cs— newDoctorglyph (U+E95E).DebugPage.xaml/.cs— Gateway section, card, gating + handler.Resources.resw(en-us + 4 locales) — 3 new keys.Validation
./build.ps1✅dotnet test OpenClaw.Tray.Tests— 962 passed ✅dotnet test OpenClaw.Shared.Tests— 2049 passed ✅OpenClawGatewayWSL distro: card appears, opens the themed terminal tab, runs doctor, drops to an interactive shell.Co-authored-by: Copilot [email protected]