Skip to content

[Bug]: Docker image 2026.5.3-1 ships metadata-only Discord and WhatsApp extensions; channels do not register #80692

Closed

Description

@mattharvill

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

After upgrading the Docker image from 2026.4.20 to 2026.5.3-1, the Discord and WhatsApp channel plugins no longer register. Inspection of /app/dist/extensions/ inside the running gateway shows both directories contain only openclaw.plugin.json and package.json with no runtime JavaScript, while dist/extensions/telegram/ and other unaffected channels contain full runtime files (index.js, setup-entry.js, etc.). LINE and QQBot show the same metadata-only pattern; Feishu (already tracked in #77424) does as well.

Steps to reproduce

  1. Pull ghcr.io/openclaw/openclaw:2026.5.3-1 and start the gateway via Docker
    Compose with channels.discord.enabled = true and channels.whatsapp.enabled = true
    in openclaw.json, and a valid DISCORD_BOT_TOKEN in the environment.
  2. From inside the running gateway container, run:
    ls /app/dist/extensions/discord
    ls /app/dist/extensions/whatsapp
    ls /app/dist/extensions/telegram
  3. Run openclaw gateway call channels.status from inside the container.

Expected behavior

On 2026.4.20, the same configuration produced active Discord and WhatsApp channels
in channels.status, with messages routed end-to-end. The expectation is that
dist/extensions/discord/ and dist/extensions/whatsapp/ ship the same runtime JS
shape (index.js, setup-entry.js, *-api.js) that dist/extensions/telegram/ ships,
and that the plugin registry loads and registers them.

Actual behavior

  1. Pull ghcr.io/openclaw/openclaw:2026.5.3-1 and start the gateway via Docker
    Compose with channels.discord.enabled = true and channels.whatsapp.enabled = true
    in openclaw.json, and a valid DISCORD_BOT_TOKEN in the environment.
  2. From inside the running gateway container, run:
    ls /app/dist/extensions/discord
    ls /app/dist/extensions/whatsapp
    ls /app/dist/extensions/telegram
  3. Run openclaw gateway call channels.status from inside the container.

OpenClaw version

2026.5.3-1 (image), Node v24.14.0 inside container

Operating system

Ubuntu 24.04.4 LTS (host)

Install method

Docker (image ghcr.io/openclaw/openclaw:2026.5.3-1 via Docker Compose)

Model

NOT_ENOUGH_INFO — packaging-time defect, model-independent

Provider / routing chain

NOT_ENOUGH_INFO — packaging-time defect; affected channels never register, so no provider chain is exercised

Additional provider/model setup details

No response

Logs, screenshots, and evidence

$ docker inspect <gateway> --format '{{.Config.Image}}'
  openclaw-gateway:tools   # locally re-tagged from
  ghcr.io/openclaw/openclaw:2026.5.3-1
  
  $ docker exec <gateway> sh -c 'cat /app/package.json | grep version'
  "version": "2026.5.3-1",
  
  $ for ext in discord whatsapp feishu telegram slack signal line imessage matrix
  irc qqbot; do
      files=$(docker exec <gateway> ls /app/dist/extensions/$ext 2>/dev/null | wc
  -l)
      idx=$(docker exec <gateway> test -f /app/dist/extensions/$ext/index.js && echo
   yes || echo no)
      printf '%-12s files=%-3s index.js=%s\n' "$ext" "$files" "$idx"
    done
  discord      files=2   index.js=no
  whatsapp     files=2   index.js=no
  feishu       files=3   index.js=no
  telegram     files=22  index.js=yes
  slack        files=24  index.js=yes
  signal       files=12  index.js=yes
  line         files=2   index.js=no
  imessage     files=13  index.js=yes
  matrix       files=21  index.js=yes
  irc          files=11  index.js=yes
  qqbot        files=3   index.js=no

Impact and severity

  • Affected: any user running the ghcr.io/openclaw/openclaw:2026.5.3-1 Docker image
    with Discord, WhatsApp, LINE, QQBot, or Feishu channels enabled.
  • Severity: High — affected channels do not register; agents cannot send or
    receive messages on those surfaces.
  • Frequency: Deterministic — observed on every gateway start with this image.
  • Consequence: Complete message-routing outage for the affected channels until the
    image is rolled back or the missing plugin packages are installed manually.

Additional information

Last known good version: 2026.4.20 (same Compose configuration, Discord and
WhatsApp routed normally).

Activity

  1. clawsweeper commented on May 11, 2026

    @clawsweeper
    Contributor

    Thanks for the context here. I did a careful shell check against current main, and this is already implemented.

    Close as implemented on main: current Docker packaging prunes package-excluded external plugin dist directories, and the fix shipped in v2026.5.4 before this report was filed. The existing discussion correctly linked the merged Docker fix and related external-plugin install-hint work.

    I found the merged PR that appears to have closed this: #77547: fix(docker): prune external plugin dist.

    So I’m closing this as already implemented rather than keeping a duplicate issue open.

    Review details

    Best possible solution:

    Keep the v2026.5.4+ packaging contract: Docker images should not expose partial external plugin runtime directories, and official external channels should be installed through the plugin install flow with clear diagnostics.

    Do we have a high-confidence way to reproduce the issue?

    Yes for the historical 2026.5.3-1 image, based on the reporter’s deterministic container inventory. I did not reproduce a current-main failure because current source now prunes the package-excluded dist directories during Docker image assembly.

    Is this the best way to solve the issue?

    Yes. Pruning misleading metadata-only runtime dirs while keeping externalized official channel plugins install-on-demand is the narrow maintainable fix, and the separate install-hint work addresses the operator guidance part.

    Security review:

    Security review: No PR diff is under review; this is ordinary issue triage for a Docker/plugin packaging regression report.

    What I checked:

    • Live issue state: The issue is open, authored by a non-member account, and only has bug/regression labels, so no protected-label or maintainer-author rule blocks cleanup.
    • Current Docker runtime hook: The runtime-assets stage runs the Docker plugin prune script after bundled plugin postinstall and before final runtime asset checks. (Dockerfile:133, 8c4c7280c7f9)
    • Current prune implementation: pruneDockerPluginDist reads OPENCLAW_EXTENSIONS, collects package-excluded extension ids, and removes matching dist/extensions/<id> and dist-runtime/extensions/<id> directories unless explicitly kept. (scripts/prune-docker-plugin-dist.mjs:23, 8c4c7280c7f9)
    • Affected plugin ids are package-excluded: The root package file list excludes the reported affected external channel plugin dirs, including Discord, Feishu, LINE, QQBot, and WhatsApp. (package.json:42, 8c4c7280c7f9)
    • Regression coverage: The prune test verifies that package-excluded plugin dist/runtime directories are removed while explicitly kept and ordinary bundled plugins remain. (src/plugins/prune-docker-plugin-dist.test.ts:35, 8c4c7280c7f9)
    • Dockerfile coverage: The Dockerfile test asserts the runtime-assets stage invokes scripts/prune-docker-plugin-dist.mjs. (src/dockerfile.test.ts:151, 8c4c7280c7f9)

    Likely related people:

    • vincentkoc: Authored and merged the Docker prune fix that removes package-excluded external plugin dist directories from runtime images, directly matching the metadata-only Docker regression. (role: Docker/plugin packaging fix author; confidence: high; commits: 7e229f0d3d63; files: Dockerfile, scripts/prune-docker-plugin-dist.mjs, src/dockerfile.test.ts)
    • hclsys: Authored the merged config-validation fix that changes missing official external plugin warnings to actionable openclaw plugins install guidance for upgraded/externalized channel configs. (role: externalized-plugin diagnostics contributor; confidence: high; commits: b3e42bf32792; files: src/config/validation.ts, src/config/config.plugin-validation.test.ts)

    Codex review notes: model gpt-5.5, reasoning high; reviewed against 8c4c7280c7f9; fix evidence: merged PR #77547, release v2026.5.4, commit 7e229f0d3d63.

  2. locked as resolved and limited conversation to collaborators on May 14, 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

    bugSomething isn't workingregressionBehavior that previously worked and now fails

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions