Skip to content

docs: add hypervisorlaunchtype toggle recovery to WSL2+Windows remote CDP guide#53950

Open
Owlock wants to merge 2 commits intoopenclaw:mainfrom
Owlock:patch-2
Open

docs: add hypervisorlaunchtype toggle recovery to WSL2+Windows remote CDP guide#53950
Owlock wants to merge 2 commits intoopenclaw:mainfrom
Owlock:patch-2

Conversation

@Owlock
Copy link
Copy Markdown

@Owlock Owlock commented Mar 24, 2026

Summary

  • Adds a troubleshooting section for a real-world failure mode after toggling Windows hypervisor mode (bcdedit /set hypervisorlaunchtype off -> auto) and rebooting.
  • Documents the symptom split where Chrome CDP works on Windows localhost but fails from WSL2 host endpoint.
  • Adds a tested recovery sequence (iphlpsvc, portproxy recreation, firewall rule, endpoint validation).

Why

This pattern can make remote CDP appear broken even when Chrome itself is healthy, and it maps directly to layered diagnostics work already discussed in #41553.

Scope

  • Docs-only change
  • No code changes
  • No unrelated files modified

Relates to #41553

Removed outdated summary, title, and sections from the troubleshooting guide. Updated structure for clarity and streamlined content.
@openclaw-barnacle openclaw-barnacle bot added docs Improvements or additions to documentation size: XS labels Mar 24, 2026
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps bot commented Mar 24, 2026

Greptile Summary

This PR intends to add a hypervisorlaunchtype toggle recovery section to the WSL2 + Windows remote CDP troubleshooting guide, but the implementation replaces the entire existing guide rather than appending the new section to it. The resulting file loses all of the original documentation — the Mintlify frontmatter, the H1 page title, the architecture overview, all five layered validation steps, the common-errors reference, and the fast triage checklist — leaving only the 40-line recovery snippet.

Key issues:

  • Critical content deletion: The full original guide (211 lines) is replaced by only the new section (40 lines). All previously existing sections are gone.
  • Missing frontmatter: The Mintlify YAML front matter (title, summary, read_when) was removed, which will break the page's navigation entry and metadata on docs.openclaw.ai.
  • No H1 heading: The file now opens with a ## heading and no H1, which renders as a sub-section with no visible page title in Mintlify.

Confidence Score: 1/5

  • Not safe to merge — the PR accidentally deletes the entire existing troubleshooting guide and its Mintlify frontmatter.
  • The PR introduces a useful recovery section but inadvertently replaces the full original document. Merging as-is would wipe out all existing guide content and break the Mintlify page (missing title, nav metadata, and H1). The fix is straightforward — restore the original content and append the new section — but the PR needs revision before it can land.
  • docs/tools/browser-wsl2-windows-remote-cdp-troubleshooting.md — needs the original content restored and the new section appended rather than used as a replacement.
Prompt To Fix All With AI
This is a comment left during a code review.
Path: docs/tools/browser-wsl2-windows-remote-cdp-troubleshooting.md
Line: 3

Comment:
**Entire existing guide deleted, not appended to**

The PR description says it "adds a troubleshooting section," but the diff shows that the complete original 211-line document was deleted and replaced with only the 40-line `hypervisorlaunchtype` recovery snippet. This loses all of the following content that existed before this change:

- The YAML frontmatter (`title`, `summary`, `read_when`) required by Mintlify for navigation and page metadata
- The H1 page title (`# WSL2 + Windows + remote Chrome CDP troubleshooting`)
- "Choose the right browser mode first" (Options 1 & 2)
- "Working architecture" reference shape
- "Why this setup is confusing" overview
- "Critical rule for the Control UI"
- All five validation layers (Chrome serves CDP → WSL2 reachability → browser profile config → Control UI layer → end-to-end test)
- "Common misleading errors" quick-reference table
- "Fast triage checklist"
- "Practical takeaway"

The intended change — adding a `hypervisorlaunchtype` recovery section — should be appended to the existing guide, not used to replace it. Please restore the original content and add the new section underneath it (e.g. as a new `## Troubleshooting specific scenarios` or directly appended before "Practical takeaway").

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: docs/tools/browser-wsl2-windows-remote-cdp-troubleshooting.md
Line: 1-3

Comment:
**Missing Mintlify frontmatter and H1 title**

The original file opened with a YAML frontmatter block and an H1 heading, both of which are required for this Mintlify-hosted docs site:

```yaml
---
summary: "Troubleshoot WSL2 Gateway + Windows Chrome remote CDP in layers"
read_when:
  - Running OpenClaw Gateway in WSL2 while Chrome lives on Windows
  - Seeing overlapping browser/control-ui errors across WSL2 and Windows
  - Deciding between host-local Chrome MCP and raw remote CDP in split-host setups
title: "WSL2 + Windows + remote Chrome CDP troubleshooting"
---

# WSL2 + Windows + remote Chrome CDP troubleshooting
```

Without the frontmatter the page will lose its nav title, `summary`, and `read_when` fields. Without the H1 the document also starts with a `##` heading, which renders incorrectly as a sub-section with no visible page title. Both should be restored.

How can I resolve this? If you propose a fix, please make it concise.

Reviews (1): Last reviewed commit: "Refactor WSL2 + Windows remote CDP troub..." | Re-trigger Greptile

# WSL2 + Windows + remote Chrome CDP troubleshooting

This guide covers the common split-host setup where:
## Recovery after toggling `hypervisorlaunchtype` (Windows gaming mode)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Entire existing guide deleted, not appended to

The PR description says it "adds a troubleshooting section," but the diff shows that the complete original 211-line document was deleted and replaced with only the 40-line hypervisorlaunchtype recovery snippet. This loses all of the following content that existed before this change:

  • The YAML frontmatter (title, summary, read_when) required by Mintlify for navigation and page metadata
  • The H1 page title (# WSL2 + Windows + remote Chrome CDP troubleshooting)
  • "Choose the right browser mode first" (Options 1 & 2)
  • "Working architecture" reference shape
  • "Why this setup is confusing" overview
  • "Critical rule for the Control UI"
  • All five validation layers (Chrome serves CDP → WSL2 reachability → browser profile config → Control UI layer → end-to-end test)
  • "Common misleading errors" quick-reference table
  • "Fast triage checklist"
  • "Practical takeaway"

The intended change — adding a hypervisorlaunchtype recovery section — should be appended to the existing guide, not used to replace it. Please restore the original content and add the new section underneath it (e.g. as a new ## Troubleshooting specific scenarios or directly appended before "Practical takeaway").

Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/tools/browser-wsl2-windows-remote-cdp-troubleshooting.md
Line: 3

Comment:
**Entire existing guide deleted, not appended to**

The PR description says it "adds a troubleshooting section," but the diff shows that the complete original 211-line document was deleted and replaced with only the 40-line `hypervisorlaunchtype` recovery snippet. This loses all of the following content that existed before this change:

- The YAML frontmatter (`title`, `summary`, `read_when`) required by Mintlify for navigation and page metadata
- The H1 page title (`# WSL2 + Windows + remote Chrome CDP troubleshooting`)
- "Choose the right browser mode first" (Options 1 & 2)
- "Working architecture" reference shape
- "Why this setup is confusing" overview
- "Critical rule for the Control UI"
- All five validation layers (Chrome serves CDP → WSL2 reachability → browser profile config → Control UI layer → end-to-end test)
- "Common misleading errors" quick-reference table
- "Fast triage checklist"
- "Practical takeaway"

The intended change — adding a `hypervisorlaunchtype` recovery section — should be appended to the existing guide, not used to replace it. Please restore the original content and add the new section underneath it (e.g. as a new `## Troubleshooting specific scenarios` or directly appended before "Practical takeaway").

How can I resolve this? If you propose a fix, please make it concise.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update: I pushed a follow-up commit that addresses the bot review concerns on this PR.

What was fixed:

  • Restored the full existing guide content (no full-file replacement).
  • Kept Mintlify frontmatter + top-level title structure.
  • Appended the new hypervisor-toggle recovery section instead of overwriting the page.
  • Added shell-specific notes for PowerShell vs WSL (curl.exe alias caveat, Admin requirement for netsh, dynamic WSL host IP handling).

The new section is focused on the real-world hypervisorlaunchtype off/auto reboot failure mode and includes a strict validation sequence for both Windows and WSL2.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed ✅

I pushed commit 7ee5e8a to this PR to resolve the review concerns:

  • Restored full original guide content (no full-file replacement)
  • Restored Mintlify frontmatter and H1
  • Appended the hypervisor-toggle recovery section instead of overwriting
  • Added shell-specific caveats (curl.exe in PowerShell, Admin requirement for netsh, dynamic WSL host IP notes)

If helpful, please re-review against latest head commit.

Comment on lines 1 to +3

# WSL2 + Windows + remote Chrome CDP troubleshooting

This guide covers the common split-host setup where:
## Recovery after toggling `hypervisorlaunchtype` (Windows gaming mode)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Missing Mintlify frontmatter and H1 title

The original file opened with a YAML frontmatter block and an H1 heading, both of which are required for this Mintlify-hosted docs site:

---
summary: "Troubleshoot WSL2 Gateway + Windows Chrome remote CDP in layers"
read_when:
  - Running OpenClaw Gateway in WSL2 while Chrome lives on Windows
  - Seeing overlapping browser/control-ui errors across WSL2 and Windows
  - Deciding between host-local Chrome MCP and raw remote CDP in split-host setups
title: "WSL2 + Windows + remote Chrome CDP troubleshooting"
---

# WSL2 + Windows + remote Chrome CDP troubleshooting

Without the frontmatter the page will lose its nav title, summary, and read_when fields. Without the H1 the document also starts with a ## heading, which renders incorrectly as a sub-section with no visible page title. Both should be restored.

Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/tools/browser-wsl2-windows-remote-cdp-troubleshooting.md
Line: 1-3

Comment:
**Missing Mintlify frontmatter and H1 title**

The original file opened with a YAML frontmatter block and an H1 heading, both of which are required for this Mintlify-hosted docs site:

```yaml
---
summary: "Troubleshoot WSL2 Gateway + Windows Chrome remote CDP in layers"
read_when:
  - Running OpenClaw Gateway in WSL2 while Chrome lives on Windows
  - Seeing overlapping browser/control-ui errors across WSL2 and Windows
  - Deciding between host-local Chrome MCP and raw remote CDP in split-host setups
title: "WSL2 + Windows + remote Chrome CDP troubleshooting"
---

# WSL2 + Windows + remote Chrome CDP troubleshooting
```

Without the frontmatter the page will lose its nav title, `summary`, and `read_when` fields. Without the H1 the document also starts with a `##` heading, which renders incorrectly as a sub-section with no visible page title. Both should be restored.

How can I resolve this? If you propose a fix, please make it concise.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 62ebef96d0

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines 1 to +3

# WSL2 + Windows + remote Chrome CDP troubleshooting

This guide covers the common split-host setup where:
## Recovery after toggling `hypervisorlaunchtype` (Windows gaming mode)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Re-add front matter to WSL2 CDP troubleshooting page

This file now starts directly with a section header, so it no longer provides the summary/read_when metadata expected by the docs tooling; for example, scripts/docs-list.js reports this page as [missing front matter] instead of indexing it normally. That regression makes the page harder to discover and weakens downstream doc maintenance flows that rely on front matter fields.

Useful? React with 👍 / 👎.

Expanded troubleshooting guide for WSL2 and Windows remote Chrome CDP, detailing architecture, validation layers, common errors, and recovery steps.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant