Repository navigation
Conversation
On Windows, openclaw doctor fails to detect the Chrome version despite Chrome being installed at the expected path with correct ProductVersion metadata. The issue is that readBrowserVersion runs chrome --version which can fail due to process startup delays, GUI interference, or instance conflicts on Windows. Fix by adding a Windows-specific fallback that reads the file version info directly from the PE executable using PowerShell (Get-Item). This avoids launching Chrome entirely, making the check fast and reliable. If PowerShell fails, falls back to wmic as a secondary option.
|
Thanks for the contribution. This PR still needs the requested real-behavior proof, and the branch has been idle since that ask. Close: this external PR has a useful Windows Browser doctor fix idea, but the requested real Windows proof has been absent since the June 13 proof nudge and the head/check activity has been idle since June 20. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. So I’m closing this for now to keep the review queue honest. Please reopen or open a fresh PR with real-behavior proof (a live run, logs, or a reproducible validation transcript) and it will be reviewed again. Review detailsBest possible solution: Close this idle branch for now; if work resumes, land one canonical Browser-plugin fix with redacted Windows doctor proof, focused version-reader coverage, and a clear compatibility story. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: current main calls Is this the best way to solve the issue? Mostly yes on direction, but not merge-ready: reading Windows executable metadata before launching Chrome is owner-local and preserves the generic fallback when metadata is absent. The branch should not stay open without the requested real Windows proof and canonical-branch decision. Security review: Security review cleared: The diff adds local Windows metadata probes through existing process-execution patterns and does not change dependencies, workflows, lockfiles, secrets, permissions, or publishing surfaces. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 286d0b9fb340. |
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
|
@Jefsky thanks for the PR. ClawSweeper is still waiting on real behavior proof before this can move forward. Useful proof can be a screenshot, short video, terminal output, copied live output, linked artifact, or redacted logs that show the changed behavior after the fix. Please redact private tokens, phone numbers, private endpoints, customer data, and anything else sensitive. Once proof is added to the PR body or a comment, ClawSweeper or a maintainer can re-check it. |
|
ClawSweeper applied the proposed close for this PR.
|
Description
Fixes #87312
openclaw doctorreports "Could not determine the installed Chrome version" even when Chrome is installed at the expected path with correct version metadata (Chrome 148.x in this case).Root Cause
The
readBrowserVersionfunction on Windows runschrome.exe --versionto determine the installed version. Launching Chrome this way can fail on Windows because:--versionreturns immediatelyFix
Added a Windows-specific code path that reads file version metadata directly from the PE executable using PowerShell (Get-Item).VersionInfo.ProductVersion, which:
wmicif PowerShell is unavailableThe
chrome.exe --versionfallback remains as a last resort.Testing
openclaw doctornow correctly detects "Detected Chrome 148.0.7778.179"