Repository navigation
fix(browser): avoid cold mac chrome version timeouts - #85460
giodl73-repo merged 1 commit into
Conversation
|
Codex review: needs real behavior proof before merge. Latest ClawSweeper review: 2026-05-24 01:21 UTC / May 23, 2026, 9:21 PM ET. Workflow note: Future ClawSweeper reviews update this same comment in place. How this review workflow works
PR Surface View PR surface stats
Summary Reproducibility: yes. source-level: current main turns a Chrome PR rating Rank-up moves:
What the crustacean ranks mean
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. Real behavior proof Risk before merge
Maintainer options:
Next step before merge Security Review detailsBest possible solution: Land the plist-first browser plugin fix after redacted real macOS proof and explicit maintainer acceptance of the public browser-host-inspection helper timing and return-shape change; otherwise narrow the behavior to the doctor path or preserve the SDK helper shape. Do we have a high-confidence way to reproduce the issue? Yes, source-level: current main turns a Chrome Is this the best way to solve the issue? Yes, mostly: reading macOS bundle metadata before spawning Chrome is the narrowest durable mitigation for the reported doctor false warning. The remaining solution-fit questions are merge proof and whether maintainers accept the exported helper's timing and output-shape change. Label changes:
Label justifications:
What I checked:
Likely related people:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 9a73ddc39485. |
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
3f894dc to
a68f25d
Compare
Summary
Contents/Info.plistbefore spawning the browser--versionprobe timeout so cold Gatekeeper/amfid verification has room to finishFixes #85418.
Verification
2026-05-23 update after rebasing onto
origin/main(32f91503be), heada68f25d386:node scripts/run-vitest.mjs extensions/browser/src/browser/chrome.version.test.ts --reporter=verbose(1 file, 3 tests passed)./node_modules/.bin/oxfmt --check --threads=1 CHANGELOG.md extensions/browser/src/browser/chrome.executables.ts extensions/browser/src/browser/chrome.version.test.ts./node_modules/.bin/oxlint extensions/browser/src/browser/chrome.executables.ts extensions/browser/src/browser/chrome.version.test.tsgit diff --check origin/main...HEADEarlier verification before the rebase:
OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs extensions/browser/src/browser/chrome.version.test.ts extensions/browser/src/browser/chrome.test.ts extensions/browser/src/doctor-browser.test.ts -- --reporter=verbosepnpm exec oxlint --tsconfig config/tsconfig/oxlint.extensions.json extensions/browser/src/browser/chrome.executables.ts extensions/browser/src/browser/chrome.version.test.ts extensions/browser/src/browser/chrome.test.ts extensions/browser/src/doctor-browser.test.tsgit diff --checkcodex review --uncommittedReal behavior proof
Behavior addressed:
openclaw doctor --deepno longer has to spawn/Applications/Google Chrome.app/Contents/MacOS/Google Chrome --versionto determine the Chrome version on macOS app-bundle installs, so a cold Gatekeeper/amfid spawn delay does not collapse into the misleading unknown-version warning.Real environment tested: WSL Ubuntu-24.04 checkout at
/root/src/openclaw-85460, Node/Vitest via repo wrapper.Exact steps or command run after this patch:
node scripts/run-vitest.mjs extensions/browser/src/browser/chrome.version.test.ts --reporter=verboseEvidence after fix: the regression test
reads macOS app bundle versions from Info.plist before spawning Chromestubsprocess.platform=darwin, calls productionreadBrowserVersion('/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'), returns148.0.7778.179, and asserts only/usr/libexec/PlistBuddy -c 'Print :CFBundleShortVersionString' /Applications/Google Chrome.app/Contents/Info.plistran with an 800 ms timeout. The fallback test proves the executable--versionprobe uses a 6000 ms timeout when plist metadata is unavailable.Observed result after fix: focused browser version test passed 3 tests; focused static checks were clean.
What was not tested: I did not reproduce a real macOS Gatekeeper cold-cache delay in this Linux/WSL checkout; the issue report provides the live macOS timing, and this patch proves the production path avoids that spawn before falling back.