openclaw - ✅(Solved) Fix [Bug]: plugin service failed [2 pull requests, 2 comments, 3 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#72488Fetched 2026-04-27 05:29:46
View on GitHub
Comments
2
Participants
3
Timeline
5
Reactions
0
Timeline (top)
commented ×2labeled ×2cross-referenced ×1

更新至v2026.4.24后,出现

<img width="1709" height="422" alt="Image" src="https://github.com/user-attachments/assets/e2735691-76f8-4182-a280-c94ddab44ea5" />

Root Cause

更新至v2026.4.24后,出现

<img width="1709" height="422" alt="Image" src="https://github.com/user-attachments/assets/e2735691-76f8-4182-a280-c94ddab44ea5" />

PR fix notes

PR #72503: fix(plugins): force non-native jiti on Windows to avoid ERR_UNSUPPORTED_ESM_URL_SCHEME

Description (problem / solution / changelog)

Summary

Fixes #72488 and reopens the still-open Windows regression #71749.

On native Windows, OpenClaw 2026.4.24 crashes the first bundled plugin loaded with a built-JS entry on startup with:

ERR_UNSUPPORTED_ESM_URL_SCHEME: Only URLs with a scheme in: file, data,
and node are supported by the default ESM loader. On Windows, absolute
paths must be valid file:// URLs. Received protocol 'c:'

For @smeyer9 (#71749) that was the Telegram channel provider. For @xiao4d-lyf (#72488) it is the browser-control plugin (openclaw browser is the user-visible failure). Restarting the gateway doesn't fix it because the behavior is deterministic.

Regressing commit

9119ee6d75 ("fix(plugins): load mirrored runtime deps through ESM-safe aliases", v2026.4.24) dropped the existing win32 guard from supportsNativeJitiRuntime:

 function supportsNativeJitiRuntime(): boolean {
   const versions = process.versions as { bun?: string };
-  return typeof versions.bun !== "string" && process.platform !== "win32";
+  return typeof versions.bun !== "string";
 }

Without that guard, shouldPreferNativeJiti returns true for built JS on Windows, jiti's native import() fast-path forwards the raw absolute path (C:\Users\…\dist\extensions\browser\…) directly to Node's ESM loader, and Node's loader only accepts file:// URLs on Windows.

Fix

Single chokepoint: re-add the win32 short-circuit alongside the existing Bun exclusion in supportsNativeJitiRuntime, so both shouldPreferNativeJiti and resolvePluginLoaderJitiTryNative honor it consistently. Two Windows-specific tests in sdk-alias.test.ts that previously locked in the broken behavior are updated to assert the fixed behavior with comments pointing back to #71749.

Until jiti normalizes paths via pathToFileURL upstream, this is the right place to fix it. The reporter on #71749 independently confirmed this resolution end-to-end by patching their installed dist.

History

#71755 was the previous PR for this exact fix. It was auto-closed by the too-many-prs bot 1 minute after creation, before any human review. The bug never got fixed; #72488 is the same regression reproducing on a different bundled plugin.

Tests

pnpm test src/plugins/sdk-alias.test.ts
# 49 passed (49)

Behavior matrix

PlatformBuilt .js plugin entriesTS plugin entriesBundled dist/extensions/*
Linux/macOSnative (unchanged)transpile (unchanged)native (unchanged)
Buntranspile (unchanged)transpile (unchanged)transpile (unchanged)
Windowstranspile (fix)transpile (unchanged)transpile (fix)

Risk

Low. Slight cold-start cost on Windows for built-JS plugins, in exchange for not crashing on startup. This is what every Windows install was effectively forced into anyway via reporter-side hotfixes.

Out of scope

A follow-up could push the fix down into jiti itself (normalize paths via pathToFileURL before native import()). That belongs in unjs/jiti, not here.

Closes #72488. Closes #71749. Related: #61911, #49716.

Changed files

  • CHANGELOG.md (modified, +1/-0)
  • src/plugins/sdk-alias.test.ts (modified, +10/-2)
  • src/plugins/sdk-alias.ts (modified, +15/-1)
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

更新至v2026.4.24后,出现

<img width="1709" height="422" alt="Image" src="https://github.com/user-attachments/assets/e2735691-76f8-4182-a280-c94ddab44ea5" />

Steps to reproduce

重启网关/gateway后仍会出现

Expected behavior

.

Actual behavior

.

OpenClaw version

2026.4.24

Operating system

win11

Install method

npm

Model

.

Provider / routing chain

.

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

无法使用openclaw browser 命令

Additional information

No response

extent analysis

TL;DR

The issue might be resolved by checking the compatibility of the OpenClaw version 2026.4.24 with the win11 operating system and the npm install method.

Guidance

  • Verify that the OpenClaw version 2026.4.24 is compatible with the win11 operating system.
  • Check the npm install method for any potential issues or updates that may be required.
  • Investigate the error message or logs (if available) to determine the root cause of the issue.
  • Consider reaching out to the OpenClaw community or support team for further assistance.

Notes

The issue lacks detailed error messages or logs, making it challenging to provide a more specific solution. Additionally, the compatibility of OpenClaw with win11 and npm install method is uncertain.

Recommendation

Apply workaround: Check the OpenClaw documentation or community forums for any known issues or workarounds related to the 2026.4.24 version and win11 operating system.

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…

FAQ

Expected behavior

.

Still need to ship something?

×6

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

Back to top recommendations

TRENDING