Skip to content

fix(openclaw): reapply WeChat channel seed after config mutations#3843

Closed
hunglp6d wants to merge 1 commit into
mainfrom
fix/nightly-e2e-wechat-seed-after-doctor-2dc0942
Closed

fix(openclaw): reapply WeChat channel seed after config mutations#3843
hunglp6d wants to merge 1 commit into
mainfrom
fix/nightly-e2e-wechat-seed-after-doctor-2dc0942

Conversation

@hunglp6d

@hunglp6d hunglp6d commented May 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Re-run seed-wechat-accounts.py after openclaw doctor --fix and openclaw plugins install /opt/nemoclaw have rewritten openclaw.json in the Dockerfile.
  • Enhance the seed script to restore plugins.installs.openclaw-weixin and plugins.entries.openclaw-weixin.enabled before writing channels.openclaw-weixin, so the gateway recognizes the upstream channel id.
  • No-op when WeChat is not configured for the current build.

Root cause

The Dockerfile executes generate-openclaw-config.py (which calls seed-wechat-accounts.py to register channels.openclaw-weixin), then runs openclaw doctor --fix and openclaw plugins install /opt/nemoclaw. Both of those OpenClaw CLI commands rewrite openclaw.json and drop the channels.openclaw-weixin block that the seed script just added.

The final image's openclaw.json therefore lists only ['defaults', 'discord', 'slack', 'telegram', 'whatsapp'] — no openclaw-weixin — and the WeChat bridge never starts.

Nightly evidence: https://github.com/NVIDIA/NemoClaw/actions/runs/26133440454/job/76863300166

Validation

The equivalent fix was independently landed on main as PR #3839 (commit ce03b01). The GITHUB_TOKEN lacks workflow scope so a -custom-e2e validation branch could not be pushed; however the next scheduled nightly on main (which includes ce03b01) will validate the fix end-to-end.

Files changed

File Change
Dockerfile Add late seed-wechat-accounts.py call after openclaw plugins install
scripts/seed-wechat-accounts.py Restore plugins.installs and plugins.entries for openclaw-weixin before writing channel block

Signed-off-by: Hung Le hple@nvidia.com

Fixes #3844

Re-run seed-wechat-accounts.py after OpenClaw doctor/plugin-install has
had a chance to rewrite openclaw.json. During the late seed, restore
plugins.installs.openclaw-weixin and plugins.entries.openclaw-weixin.enabled
before writing channels.openclaw-weixin.

Without this, openclaw doctor --fix and openclaw plugins install rewrite
openclaw.json and drop the channels.openclaw-weixin block that was seeded
by generate-openclaw-config.py, causing the WeChat bridge to not start.

Nightly evidence:
https://github.com/NVIDIA/NemoClaw/actions/runs/26133440454/job/76863300166

Signed-off-by: Hung Le <hple@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented May 20, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@coderabbitai

coderabbitai Bot commented May 20, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: fc80ce0e-64ef-41ff-91ff-29d68d5cfec3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/nightly-e2e-wechat-seed-after-doctor-2dc0942

Comment @coderabbitai help to get the list of available commands and usage tips.

@sandl99 sandl99 closed this May 20, 2026
@cv cv added the integration: whatsapp WhatsApp integration or channel behavior label May 30, 2026
@wscurran wscurran added the bug-fix PR fixes a bug or regression label Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix PR fixes a bug or regression integration: whatsapp WhatsApp integration or channel behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[nightly-e2e] WeChat channel registration lost after OpenClaw config mutations

4 participants