openclaw - 💡(How to fix) Fix [Bug]: Browser plugin fails with 'clampThinkingLevel' not exported from models.js (v2026.5.4) [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#78280Fetched 2026-05-07 03:38:52
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
2
Timeline (top)
closed ×1commented ×1mentioned ×1subscribed ×1

Error Message

GatewayClientRequestError: INVALID_REQUEST: SyntaxError: The requested module '../models.js' does not provide an export named 'clampThinkingLevel'

Root Cause

The browser plugin at dist/extensions/browser/index.js imports clampThinkingLevel from ../models.js (resolving to dist/models.js), but dist/models.js does not exist in the installed package.

clampThinkingLevel is defined in the bundled node_modules/@mariozechner/pi-ai/dist/models.js dependency, but it is not re-exported or included at the top-level dist/models.js path that the browser plugin expects.

Verified missing in both:

  • v2026.5.4 (current stable)
  • v2026.5.5-beta.1 (current beta)

Code Example

GatewayClientRequestError: INVALID_REQUEST: SyntaxError: The requested module '../models.js' does not provide an export named 'clampThinkingLevel'
RAW_BUFFERClick to expand / collapse

Bug Description

The browser plugin crashes on any call with the following error:

GatewayClientRequestError: INVALID_REQUEST: SyntaxError: The requested module '../models.js' does not provide an export named 'clampThinkingLevel'

This affects all browser tool actions (status, open, snapshot, act, etc.).

Root Cause

The browser plugin at dist/extensions/browser/index.js imports clampThinkingLevel from ../models.js (resolving to dist/models.js), but dist/models.js does not exist in the installed package.

clampThinkingLevel is defined in the bundled node_modules/@mariozechner/pi-ai/dist/models.js dependency, but it is not re-exported or included at the top-level dist/models.js path that the browser plugin expects.

Verified missing in both:

  • v2026.5.4 (current stable)
  • v2026.5.5-beta.1 (current beta)

Steps to Reproduce

  1. Install OpenClaw v2026.5.4
  2. Run any browser tool command: openclaw browser status
  3. Observe the error above

Expected Behavior

Browser plugin loads without errors and openclaw browser status returns browser availability.

Environment

  • OpenClaw: 2026.5.4 (325df3ef)
  • OS: macOS 15.1.1 (darwin x64)
  • Node: 25.9.0

Additional Notes

The dist/models.js file is completely absent from the npm package tarball. Either the browser plugin's import path is wrong, or dist/models.js needs to be created/included as a re-export of the relevant functions from @mariozechner/pi-ai.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug]: Browser plugin fails with 'clampThinkingLevel' not exported from models.js (v2026.5.4) [1 comments, 2 participants]