Skip to content

fix(openclaw): revert update openclaw version#944

Merged
hazeone merged 3 commits intomainfrom
fix/revert_update_openclaw_version
Apr 30, 2026
Merged

fix(openclaw): revert update openclaw version#944
hazeone merged 3 commits intomainfrom
fix/revert_update_openclaw_version

Conversation

@hazeone
Copy link
Copy Markdown
Contributor

@hazeone hazeone commented Apr 30, 2026

Summary

Change openclaw version to 2026.4.23

Type of Change

  • Bug fix
  • New feature
  • Documentation
  • Refactor
  • Other

Validation

Checklist

  • I ran relevant checks/tests locally.
  • I updated docs if behavior or interfaces changed.
  • I verified there are no unrelated changes in this PR.

hazeone added 3 commits April 30, 2026 16:15
Roll back to a known-good openclaw release after reverting the 4.26
upgrade. Updates pnpm-lock.yaml accordingly.

Made-with: Cursor
openclaw 2026.4.20+ split out channel/runtime deps (qrcode-terminal,
@homebridge/ciao, @grammyjs/*, @larksuiteoapi/node-sdk, etc.) into
external packages. ClawX's wechat-login / whatsapp-login resolve them
via createRequire(openclaw/package.json), which only works if those
packages are reachable from the workspace root node_modules.

The previous revert removed all of these as direct devDependencies, so
on openclaw 2026.4.23 (slim) electron startup failed with:

  Cannot find module 'qrcode-terminal/vendor/QRCode/index.js'

Re-add the workspace devDependencies needed by slim openclaw without
re-introducing the 4.26 upgrade itself.

Made-with: Cursor
@hazeone hazeone merged commit f88d6bc into main Apr 30, 2026
6 checks passed
@hazeone hazeone deleted the fix/revert_update_openclaw_version branch April 30, 2026 09:54
Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f4d568e0e4

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +1335 to +1337
if (!allowedOrigins.includes('file://')) {
controlUi.allowedOrigins = [...allowedOrigins, 'file://'];
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Allowlist null origin for packaged control UI

This now only appends file:// to gateway.controlUi.allowedOrigins, but renderer WebSocket handshakes from packaged file:// pages commonly present Origin: null; on fresh configs that means the gateway can reject the chat/control socket even though packaged mode is enabled. The previous helper added both values, so this change reintroduces packaged-only connection failures unless users already had null persisted.

Useful? React with 👍 / 👎.

Comment on lines 189 to 191
const EXTRA_BUNDLED_PACKAGES = [
'@whiskeysockets/baileys', // WhatsApp channel (was a dep of old clawdbot, not openclaw)
'@larksuiteoapi/node-sdk', // Fallback for Feishu plugin setup/doctor module resolution
'qrcode-terminal', // QR rendering used by WhatsApp/WeChat login helpers
];

const BUNDLED_EXTENSION_RUNTIME_DEP_PLUGIN_IDS = [
'acpx',
'bonjour',
'browser',
'discord',
'memory-core',
'qqbot',
'telegram',
];
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep QR renderer package in bundled OpenClaw deps

EXTRA_BUNDLED_PACKAGES no longer includes qrcode-terminal, but the login managers still resolve qrcode-terminal/vendor/QRCode/... from the OpenClaw runtime context. With this commit also pinning OpenClaw to 2026.4.23 (which uses @vincentkoc/qrcode-tui rather than shipping qrcode-terminal), packaged builds can miss that module and fail module resolution when WhatsApp/WeChat login paths initialize.

Useful? React with 👍 / 👎.

Comment on lines +249 to 250
symlinkSync(join(scopeDir, sub.name), dest);
linkedCount++;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Use junction symlinks when linking extension deps on Windows

These symlink calls dropped the explicit Windows junction type and now rely on the default symlink mode. On Windows, default directory symlinks often require elevated symlink privileges, so non-admin installs can silently skip these links (errors are swallowed), leaving extension deps unlinked in top-level node_modules and causing runtime channel/module resolution failures.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant