Skip to content

[Bug]: Mattermost channel fails to connect after updating to v2026.2.25 #27569

@simplify1016-del

Description

@simplify1016-del

Summary

Bug Report: Mattermost channel fails to connect after updating to v2026.2.25

Issue Description

After updating to v2026.2.25, the Mattermost channel fails to connect. Logs show:

error gateway/channels/mattermost [default] channel exited: fetch failed
error gateway/channels/mattermost [instance2] channel exited: fetch failed

Impact

  • Both Mattermost accounts (default and instance2) fail to connect
  • Unable to receive or send Mattermost messages

Root Cause

The compiled dist/plugin-sdk/index.js is missing the isDangerousNameMatchingEnabled function export.

The export exists in src/plugin-sdk/index.ts:94:

export { isDangerousNameMatchingEnabled } from "../config/dangerous-name-matching.js";

However, this function was not properly exported in the compiled file, causing the Mattermost plugin to throw:

TypeError: (0 , _pluginSdk.isDangerousNameMatchingEnabled) is not a function

Reproduction Steps

  1. Clone the repository fresh and checkout v2026.2.25 tag
  2. Run node openclaw.mjs gateway directly
  3. Check logs - Mattermost channel fails to start

Temporary Solution

Rebuild the project:

pnpm build

After building, restart the gateway.

Test Environment

  • OS: Windows 10.0.22621 (x64)
  • Node.js: 24.13.0
  • OpenClaw: v2026.2.25 (tag: 4b5d4a4)

Related Files

  • src/plugin-sdk/index.ts - Function export location
  • extensions/mattermost/src/mattermost/monitor.ts:217 - Function call location
  • src/config/dangerous-name-matching.ts - Function definition location

Suggested Fix

This is a build/compilation issue. Recommended:

  1. Check tsdown configuration to ensure all exported functions are properly compiled
  2. Add tests in CI/CD to verify critical plugin-sdk functions are correctly exported
  3. Or add post-build automation to verify necessary functions are exported

Steps to reproduce

  1. Clone the repository fresh and checkout v2026.2.25 tag
  2. Run node openclaw.mjs gateway directly
  3. Check logs - Mattermost channel fails to start

Expected behavior

Mattermost channel should connect successfully and be able to:

  • Connect to the Mattermost server using the configured bot token
  • Receive and process messages from Mattermost
  • Send replies back to Mattermost channels

Actual behavior

  • Both Mattermost accounts (default and instance2) fail to connect
  • Channel exits immediately with "fetch failed" error
  • Auto-restart attempts continue but all fail
  • Unable to receive or send Mattermost messages

OpenClaw version

v2026.2.25 (tag: 4b5d4a4)

Operating system

Windows11 ver 10.0.22621 (x64)

Install method

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions