openclaw - 💡(How to fix) Fix [Bug]: Mattermost plugin fails to load after upgrading to 2026.4.2 — createSetupInputPresenceValidator is not a function [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#59814Fetched 2026-04-08 02:40:13
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
commented ×1mentioned ×1renamed ×1subscribed ×1

After upgrading OpenClaw from 2026.4.1 (working) to 2026.4.2, the Mattermost plugin fails to load with TypeError: createSetupInputPresenceValidator is not a function, preventing all Mattermost communication.

Error Message

[plugins] mattermost failed to load from /home/luna/openclaw/extensions/mattermost/index.ts: TypeError: (0 , _setupRuntime.createSetupInputPresenceValidator) is not a function at maybeThrowOnPluginLoadError (file:///home/luna/openclaw/dist/pi-embedded-Bt2cc94B.js:3422:8) at loadOpenClawPlugins (file:///home/luna/openclaw/dist/pi-embedded-Bt2cc94B.js:3987:2)

Root Cause

This is a regression caused by a SDK change that removed createSetupInputPresenceValidator from the compiled plugin-sdk output while the Mattermost plugin still depends on it.

Fix Action

Fix / Workaround

Steps to reproduce

  1. Have Mattermost plugin configured and working on OpenClaw 2026.4.1-beta.1
  2. Run openclaw update to upgrade to 2026.4.2 (git commit 65c1716ad4)
  3. Observe gateway startup failure with the error below

Additional information

Temporary workaround: set plugins.entries.mattermost.enabled = false in openclaw.json to allow gateway to start without the broken plugin.

Code Example

[plugins] mattermost failed to load from /home/luna/openclaw/extensions/mattermost/index.ts: TypeError: (0 , _setupRuntime.createSetupInputPresenceValidator) is not a function
  at maybeThrowOnPluginLoadError (file:///home/luna/openclaw/dist/pi-embedded-Bt2cc94B.js:3422:8)
  at loadOpenClawPlugins (file:///home/luna/openclaw/dist/pi-embedded-Bt2cc94B.js:3987:2)

---

"plugins": {
  "entries": {
    "mattermost": { "enabled": true }
  }
}

---

import { createSetupInputPresenceValidator } from "openclaw/plugin-sdk/setup-runtime";
// ...
validateInput: createSetupInputPresenceValidator({ ... })
RAW_BUFFERClick to expand / collapse

Bug type

plugin

Beta release blocker

Yes

Summary

After upgrading OpenClaw from 2026.4.1 (working) to 2026.4.2, the Mattermost plugin fails to load with TypeError: createSetupInputPresenceValidator is not a function, preventing all Mattermost communication.

Steps to reproduce

  1. Have Mattermost plugin configured and working on OpenClaw 2026.4.1-beta.1
  2. Run openclaw update to upgrade to 2026.4.2 (git commit 65c1716ad4)
  3. Observe gateway startup failure with the error below

Expected behavior

Mattermost plugin loads and functions normally after upgrading OpenClaw, as it did on 2026.4.1-beta.1.

Actual behavior

Gateway fails to start the Mattermost plugin. Error in logs:

[plugins] mattermost failed to load from /home/luna/openclaw/extensions/mattermost/index.ts: TypeError: (0 , _setupRuntime.createSetupInputPresenceValidator) is not a function
  at maybeThrowOnPluginLoadError (file:///home/luna/openclaw/dist/pi-embedded-Bt2cc94B.js:3422:8)
  at loadOpenClawPlugins (file:///home/luna/openclaw/dist/pi-embedded-Bt2cc94B.js:3987:2)

OpenClaw version

2026.4.2 (git commit 65c1716ad4)

Operating system

Linux 6.12.74+deb13+1-amd64 (x64)

Install method

pnpm dev / git clone

Model

minimax/m2.7

Provider / routing chain

openclaw (local gateway) -> Mattermost server

Relevant config

"plugins": {
  "entries": {
    "mattermost": { "enabled": true }
  }
}

Logs, screenshots, and evidence

The error originates in /extensions/mattermost/src/setup-core.ts:

import { createSetupInputPresenceValidator } from "openclaw/plugin-sdk/setup-runtime";
// ...
validateInput: createSetupInputPresenceValidator({ ... })

Analysis:

  • createSetupInputPresenceValidator is exported from src/channels/plugins/setup-helpers.ts line 245
  • It is re-exported from src/plugin-sdk/setup-runtime.ts line 16
  • However it does NOT appear in the compiled output at dist/plugin-sdk/setup-runtime.js (appears to be tree-shaken out during build)
  • This function was present and working in OpenClaw 2026.4.1-beta.1

Impact and severity

  • Affected: Mattermost channel users on OpenClaw 2026.4.2
  • Severity: High — completely blocks Mattermost communication
  • Frequency: 100% — every startup
  • Consequence: Cannot use Mattermost as a channel; must fall back to webchat only

Additional information

Temporary workaround: set plugins.entries.mattermost.enabled = false in openclaw.json to allow gateway to start without the broken plugin.

Last known good: OpenClaw 2026.4.1-beta.1 First known bad: OpenClaw 2026.4.2

This is a regression caused by a SDK change that removed createSetupInputPresenceValidator from the compiled plugin-sdk output while the Mattermost plugin still depends on it.

extent analysis

TL;DR

The most likely fix is to update the Mattermost plugin to not depend on the removed createSetupInputPresenceValidator function or to revert the change in OpenClaw that removed this function.

Guidance

  • Verify that the createSetupInputPresenceValidator function is indeed missing from the compiled setup-runtime.js file in OpenClaw 2026.4.2.
  • Check the OpenClaw plugin SDK documentation to see if there is a replacement or alternative for the removed function.
  • Consider updating the Mattermost plugin to use a different validation mechanism that does not rely on the removed function.
  • As a temporary workaround, set plugins.entries.mattermost.enabled = false in openclaw.json to allow the gateway to start without the broken plugin.

Example

No code snippet is provided as the issue is related to a missing function in the compiled output, and the exact replacement or fix is not clear from the provided information.

Notes

The issue seems to be a regression caused by a change in the OpenClaw plugin SDK, and the Mattermost plugin needs to be updated to be compatible with the new version. The temporary workaround can be used to allow the gateway to start, but it disables the Mattermost plugin.

Recommendation

Apply the temporary workaround by setting plugins.entries.mattermost.enabled = false in openclaw.json to allow the gateway to start, and then update the Mattermost plugin to not depend on the removed createSetupInputPresenceValidator function. This is because the workaround allows for temporary functionality, and updating the plugin will provide a long-term solution.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Mattermost plugin loads and functions normally after upgrading OpenClaw, as it did on 2026.4.1-beta.1.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING