Skip to content

@openclaw/brave-plugin@2026.5.2 published without compiled dist/ — web search provider fails to load #76720

Closed

Description

@samuelagents

After upgrading to 2026.5.2, the Brave web search provider fails to load with:

web_search provider is not available: brave
(install or enable plugin "brave", then run openclaw doctor --fix)

Running openclaw doctor --fix does not resolve the issue.

Root cause

The @openclaw/brave-plugin@2026.5.2 npm package was published with only TypeScript source files and no compiled output:

$ npm pack @openclaw/brave-plugin && tar -tzf openclaw-brave-plugin-2026.5.2.tgz
package/index.ts
package/src/brave-web-search-provider.runtime.ts
package/src/brave-web-search-provider.shared.ts
package/src/brave-web-search-provider.ts
package/src/brave-web-search-provider.test.ts
package/web-search-contract-api.ts
package/web-search-provider.ts
package/test-api.ts
package/tsconfig.json
package/openclaw.plugin.json
package/package.json

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

  1. Upgrade to 2026.5.2 (brave plugin externalized from core bundle)
  2. Run openclaw doctor --fix
  3. Check ~/.openclaw/npm/node_modules/@openclaw/brave-plugin/ — no dist/
  4. 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.

Environment

  • OpenClaw: 2026.5.2
  • @openclaw/brave-plugin: 2026.5.2 (published ~14h ago)
  • macOS, installed via Homebrew

Activity

  1. clawsweeper commented on May 3, 2026

    @clawsweeper
    Contributor

    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.

    Acceptance criteria:

    • bash scripts/plugin-npm-publish.sh --pack-dry-run extensions/brave
    • npm pack --dry-run --json @openclaw/brave-plugin@
    • 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.

  2. steipete commented on May 3, 2026

    @steipete
    Contributor

    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.

  3. mjamiv commented on May 3, 2026

    @mjamiv
    Contributor

    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.

  4. steipete commented on May 3, 2026

    @steipete
    Contributor

    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.

  5. locked as resolved and limited conversation to collaborators on May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions