mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-21 01:51:39 -06:00
a2fe7c395d
The browser doctor computed BROWSER_PLUGIN_ROOT by walking one directory up from the source file. In a source checkout the file lives in extensions/browser/src/ and chrome-extension assets are at extensions/browser/chrome-extension, so this worked. In a built package the compiled artifact lives at the package root (dist/extensions/browser/) and assets are at dist/extensions/browser/chrome-extension, so the old heuristic looked for dist/extensions/chrome-extension and failed with ENOENT. Resolve the package root by searching for package.json, which exists in both layouts, and fall back to the previous heuristic only when it is absent. Fixes the doctor report: 'Chrome extension bootstrap status could not be inspected: ENOENT ... realpath /dist/extensions/chrome-extension'.