-
-
Notifications
You must be signed in to change notification settings - Fork 52.6k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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
- Clone the repository fresh and checkout v2026.2.25 tag
- Run
node openclaw.mjs gatewaydirectly - Check logs - Mattermost channel fails to start
Temporary Solution
Rebuild the project:
pnpm buildAfter 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 locationextensions/mattermost/src/mattermost/monitor.ts:217- Function call locationsrc/config/dangerous-name-matching.ts- Function definition location
Suggested Fix
This is a build/compilation issue. Recommended:
- Check tsdown configuration to ensure all exported functions are properly compiled
- Add tests in CI/CD to verify critical plugin-sdk functions are correctly exported
- Or add post-build automation to verify necessary functions are exported
Steps to reproduce
- Clone the repository fresh and checkout v2026.2.25 tag
- Run
node openclaw.mjs gatewaydirectly - 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working