Fix: plugin not loading at startup (missing activation.onStartup) — bump 1.2.4 - #39
Merged
Conversation
…tartup, bump to 1.2.4 Per OpenClaw plugin manifest semantics (docs/plugins/manifest.md): omitting `activation.onStartup` no longer implicitly startup-loads a plugin — explicit activation metadata is now required. Without it the gateway discovers clawflow (status: loaded) but never runs its register(), so it contributes zero tools (`toolNames: []`) and never starts the flow HTTP server (`serve`). HTTP triggers and webhook-to-flow dispatch were silently dead as a result. ClawFlow registers the flow_* tools, an approval hook, and (when configured) a long-lived flow server — all of which must run at startup, so onStartup: true. Also align manifest version (was 1.2.2) with package version.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
ClawFlow's
openclaw.plugin.jsonhas noactivationfield. Per current OpenClawplugin manifest semantics (
docs/plugins/manifest.md):So the gateway discovers clawflow (
status: loaded) but never runs itsregister(). Observable on a live gateway viaopenclaw plugins list --json:Consequences: the
flow_*tools are never registered, the approval hook neverwires up, and — when
config.serveis set — the flow HTTP server never starts.That silently breaks every inbound flow entry point (HTTP triggers,
webhook-to-flow dispatch): the flows tunnel origin has nothing listening, so calls
return
502.Fix
Add explicit
activation: { onStartup: true }to the manifest. ClawFlow registerstools, a hook, and a long-lived server — all of which must run at gateway startup.
Also aligns the manifest
version(was stale at 1.2.2) with the package version,and bumps both to 1.2.4.
Verification
On a live gateway, with the manifest patched and
config.serve.portset:Before the patch (no activation), the same gateway never bound the port and logged
no clawflow server line.