You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
@openclaw/brave-plugin@2026.5.2 published without compiled dist/ — web search provider fails to load #76720
No dist/ directory is present. The installed plugin at ~/.openclaw/npm/node_modules/@openclaw/brave-plugin/ likewise contains only .ts files, so the runtime cannot load it.
Steps to reproduce
Upgrade to 2026.5.2 (brave plugin externalized from core bundle)
Run openclaw doctor --fix
Check ~/.openclaw/npm/node_modules/@openclaw/brave-plugin/ — no dist/
Set tools.web.search.provider: "brave" → Gateway reports provider unavailable
Expected
@openclaw/brave-plugin package includes a compiled dist/ with loadable JS.
Actual
Package contains only TypeScript source; dist/ is absent from the npm tarball (11 files, 51.1 kB unpacked).
Workaround
Switch to another provider (e.g. xai) in tools.web.search.provider until a fixed package is published.
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve.
Summary
Keep open: the report reproduces against the published @openclaw/brave-plugin@2026.5.2 package and npm latest still points to that broken version; current main has package-runtime hardening for the next publish, but no fixed Brave package is shipped yet.
Reproducibility: yes. for the shipped package: npm pack dry-run for @openclaw/brave-plugin@2026.5.2 lists no dist/ files. I did not establish a failing current-main source path because main now contains package-runtime build and publish guards.
Next step
The remaining action is a maintainer-controlled plugin npm release and package acceptance verification, not a narrow code fix PR.
Review details
Best possible solution:
Publish and verify a fixed @openclaw/brave-plugin package, then confirm doctor --fix can install a loadable Brave provider from npm.
Do we have a high-confidence way to reproduce the issue?
Yes for the shipped package: npm pack dry-run for @openclaw/brave-plugin@2026.5.2 lists no dist/ files. I did not establish a failing current-main source path because main now contains package-runtime build and publish guards.
Is this the best way to solve the issue?
No, closing now would be premature because the code hardening is on main but the public npm package remains broken. The narrow maintainable solution is to publish a fixed plugin package and verify its tarball contains compiled runtime output.
Run Package Acceptance or the plugin npm release workflow proof against the fixed package.
What I checked:
Published package lacks runtime output:npm pack --dry-run --json @openclaw/brave-plugin@2026.5.2 reported 11 files, all source/metadata files, with no dist/ entries.
No fixed package is published yet: npm reports 2026.5.2 as the current version and lists no 2026.5.3 release for @openclaw/brave-plugin.
Current main prepares the next Brave package version: The Brave plugin package on current main is version 2026.5.3 and remains marked for npm publishing. (extensions/brave/package.json:3, 103b6d50a5b6)
Packaging hardening includes dist files: The plugin npm runtime build plan adds dist/** to package files and derives runtime build outputs from TypeScript package entries. (scripts/lib/plugin-npm-runtime-build.mjs:112, f30dd51d5f7f)
Publish path now blocks missing runtime builds: The manifest overlay checks for missing package-local runtime outputs before publishing and reports the exact missing dist files. (scripts/lib/plugin-npm-package-manifest.mjs:34, 103b6d50a5b6)
Plugin npm publish builds before pack/publish: The plugin npm publish script runs the package-local runtime build before both pack dry-runs and real publishes. (scripts/plugin-npm-publish.sh:134, f30dd51d5f7f)
Likely related people:
steipete: Git blame ties the Brave package metadata and package-runtime publish hardening to Peter Steinberger, and the relevant commits are on current main after the release tag. (role: recent maintainer; confidence: high; commits: f30dd51d5f7f, 103b6d50a5b6; files: extensions/brave/package.json, scripts/lib/plugin-npm-runtime-build.mjs, scripts/plugin-npm-publish.sh)
PrinceOfEgypt: The changelog credits this handle on the earlier source-only npm plugin payload fix, which is the same package-output failure class seen here. (role: prior related reporter/contributor context; confidence: low; commits: f30dd51d5f7f; files: CHANGELOG.md, scripts/lib/plugin-npm-runtime-build.mjs)
vincentkoc: Multiple adjacent changelog entries in the same release area credit this handle for official plugin install and externalization behavior, which is relevant to Brave npm repair and update flow. (role: adjacent plugin externalization owner; confidence: low; commits: f30dd51d5f7f; files: CHANGELOG.md, scripts/plugin-npm-publish.sh)
Remaining risk / open question:
Users remain on the source-only 2026.5.2 npm package until a fixed Brave plugin version is published.
The current main packaging hardening still needs release-pipeline proof for the Brave tarball, not only source inspection.
Codex review notes: model gpt-5.5, reasoning high; reviewed against 103b6d50a5b6.
Thanks for the precise report. We traced this to the plugin npm publish path for 2026.5.2, not to local config or doctor --fix.
What happened: the CI publish workflow did publish @openclaw/brave-plugin@2026.5.2, but that version's publish script did not build package-local runtime JavaScript before npm publish. npm therefore packed the package's TypeScript source files and metadata only. The CI log even showed the bad tarball contents (index.ts, src/*.ts, 11 files total, no dist/), but the workflow did not yet assert that a published plugin package must contain loadable dist/*.js output. The publish succeeded, then a later dist-tag mirroring step failed, so the workflow ended red after the broken latest package had already been pushed.
What we changed on main: the plugin npm publish path now builds package-local runtime output before pack/publish, overlays package metadata so dist/** is included, and fails before publish if the expected runtime files are missing. A local dry-run for the next Brave package produces a tarball with dist/index.js and the Brave runtime/provider entrypoints.
The remaining action is publishing the fixed Brave plugin package and verifying the published npm tarball. I am leaving this open until @openclaw/brave-plugin@latest contains the fixed package, because 2026.5.2 itself cannot be repaired in place on npm.
Reacted by Mkdev5, Samuel-Agents, Ivan Ramadhan Arifin and pvi-digital-dev
Production confirmation from an OpenShell-hosted Atlas canary:
Host shape: Linux x64 OpenShell sandbox, OpenClaw 2026.5.2, Node 22.22.1, outbound network through an HTTP CONNECT proxy, Telegram-only user channel.
After upgrading, gateway startup rejected the existing web search config with tools.web.search.provider: web_search provider is not available: brave.
Installing/staging @openclaw/brave-plugin@2026.5.2 into top-level /sandbox/node_modules/@openclaw/brave-plugin did not make the provider visible to the 5.2 plugin loader.
Switching the config away from brave allowed the gateway to boot, but the only reliable production workaround was to disable tools.web.search and remove stale plugins.entries.brave / plugins.allow references.
This did not affect general egress: direct bundled tools.web_fetch and explicit Firecrawl web.fetch both fetched https://api.github.com/zen successfully, and a live openai/gpt-5.5 turn completed without fallback.
So this matches the issue as a Brave web_search packaging/loader failure, not a general OpenShell proxy or OpenAI connectivity problem.
Closing this now because the Brave plugin packaging/publish path has been fixed on main and the corrected package is going out with today's release.
The important user-facing bit: the broken public @openclaw/brave-plugin@2026.5.2 package is being superseded by the new publish. If anyone still sees a missing dist/ or Brave provider load failure after installing the new version from npm, please comment here with the exact openclaw and @openclaw/brave-plugin versions and we can reopen immediately.
Thanks for the loud reports here; this was exactly the right thing to surface before the next release.
Activity
clawsweeper commentedon May 3, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve.
Summary
Keep open: the report reproduces against the published
@openclaw/brave-plugin@2026.5.2package and npmlateststill points to that broken version; currentmainhas package-runtime hardening for the next publish, but no fixed Brave package is shipped yet.Reproducibility: yes. for the shipped package: npm pack dry-run for
@openclaw/brave-plugin@2026.5.2lists nodist/files. I did not establish a failing current-main source path because main now contains package-runtime build and publish guards.Next step
The remaining action is a maintainer-controlled plugin npm release and package acceptance verification, not a narrow code fix PR.
Review details
Best possible solution:
Publish and verify a fixed
@openclaw/brave-pluginpackage, then confirmdoctor --fixcan install a loadable Brave provider from npm.Do we have a high-confidence way to reproduce the issue?
Yes for the shipped package: npm pack dry-run for
@openclaw/brave-plugin@2026.5.2lists nodist/files. I did not establish a failing current-main source path because main now contains package-runtime build and publish guards.Is this the best way to solve the issue?
No, closing now would be premature because the code hardening is on main but the public npm package remains broken. The narrow maintainable solution is to publish a fixed plugin package and verify its tarball contains compiled runtime output.
Acceptance criteria:
What I checked:
npm pack --dry-run --json @openclaw/brave-plugin@2026.5.2reported 11 files, all source/metadata files, with nodist/entries.2026.5.2as the current version and lists no2026.5.3release for@openclaw/brave-plugin.2026.5.3and remains marked for npm publishing. (extensions/brave/package.json:3, 103b6d50a5b6)dist/**to package files and derives runtime build outputs from TypeScript package entries. (scripts/lib/plugin-npm-runtime-build.mjs:112, f30dd51d5f7f)distfiles. (scripts/lib/plugin-npm-package-manifest.mjs:34, 103b6d50a5b6)scripts/plugin-npm-publish.sh:134, f30dd51d5f7f)Likely related people:
extensions/brave/package.json,scripts/lib/plugin-npm-runtime-build.mjs,scripts/plugin-npm-publish.sh)CHANGELOG.md,scripts/lib/plugin-npm-runtime-build.mjs)CHANGELOG.md,scripts/plugin-npm-publish.sh)Remaining risk / open question:
2026.5.2npm package until a fixed Brave plugin version is published.Codex review notes: model gpt-5.5, reasoning high; reviewed against 103b6d50a5b6.
steipete commentedon May 3, 2026
Thanks for the precise report. We traced this to the plugin npm publish path for 2026.5.2, not to local config or
doctor --fix.What happened: the CI publish workflow did publish
@openclaw/brave-plugin@2026.5.2, but that version's publish script did not build package-local runtime JavaScript beforenpm publish. npm therefore packed the package's TypeScript source files and metadata only. The CI log even showed the bad tarball contents (index.ts,src/*.ts, 11 files total, nodist/), but the workflow did not yet assert that a published plugin package must contain loadabledist/*.jsoutput. The publish succeeded, then a later dist-tag mirroring step failed, so the workflow ended red after the brokenlatestpackage had already been pushed.What we changed on
main: the plugin npm publish path now builds package-local runtime output before pack/publish, overlays package metadata sodist/**is included, and fails before publish if the expected runtime files are missing. A local dry-run for the next Brave package produces a tarball withdist/index.jsand the Brave runtime/provider entrypoints.The remaining action is publishing the fixed Brave plugin package and verifying the published npm tarball. I am leaving this open until
@openclaw/brave-plugin@latestcontains the fixed package, because2026.5.2itself cannot be repaired in place on npm.mjamiv commentedon May 3, 2026
Production confirmation from an OpenShell-hosted Atlas canary:
2026.5.2, Node22.22.1, outbound network through an HTTP CONNECT proxy, Telegram-only user channel.tools.web.search.provider: web_search provider is not available: brave.@openclaw/brave-plugin@2026.5.2into top-level/sandbox/node_modules/@openclaw/brave-plugindid not make the provider visible to the 5.2 plugin loader.braveallowed the gateway to boot, but the only reliable production workaround was to disabletools.web.searchand remove staleplugins.entries.brave/plugins.allowreferences.tools.web_fetchand explicit Firecrawlweb.fetchboth fetchedhttps://api.github.com/zensuccessfully, and a liveopenai/gpt-5.5turn completed without fallback.So this matches the issue as a Brave web_search packaging/loader failure, not a general OpenShell proxy or OpenAI connectivity problem.
steipete commentedon May 3, 2026
Closing this now because the Brave plugin packaging/publish path has been fixed on main and the corrected package is going out with today's release.
The important user-facing bit: the broken public
@openclaw/brave-plugin@2026.5.2package is being superseded by the new publish. If anyone still sees a missingdist/or Brave provider load failure after installing the new version from npm, please comment here with the exactopenclawand@openclaw/brave-pluginversions and we can reopen immediately.Thanks for the loud reports here; this was exactly the right thing to surface before the next release.