Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here
demo-channel-plugin logo

demo-channel-plugin

PerfectPan/openclaw-repro-plugin-registry-subagent

Otheropenclawby PerfectPan

Summary

OpenClaw plugin exposing 0 skills.

Install to Claude Code

openclaw plugin add PerfectPan/openclaw-repro-plugin-registry-subagent

Run in Claude Code. Add the marketplace first with /plugin marketplace add PerfectPan/openclaw-repro-plugin-registry-subagent if you haven't already.

README.md

OpenClaw Repro: plugin registry overwrite during subagent-style tool resolution

This repository reproduces an OpenClaw bug where plugin tool resolution can replace the process-global active plugin registry when:

  • OPENCLAW_STATE_DIR is relative
  • the first plugin load happens under one cwd
  • a later tool-resolution load happens under a different cwd
  • the later load uses a different workspaceDir, so the loader cache key changes

The repro uses a tiny local plugin channel called demo-feishu instead of the real feishu plugin. The bug mechanism is the same: a plugin-backed message channel is initially valid, then becomes unknown after resolvePluginTools() reloads plugins and overwrites the active registry with an empty one.

Requirements

  • Node.js 22+
  • pnpm
  • git

Usage

Install this repo's tiny dependency first:

pnpm install

Then run the broken-path repro:

pnpm repro

Expected output:

  • before.isDemoFeishuChannelKnown is true
  • after.isDemoFeishuChannelKnown is false
  • the script prints Reproduced: resolvePluginTools() replaced the active plugin registry.

You can also run the non-broken comparison with an absolute state dir:

pnpm repro:absolute-state-dir

Expected output:

  • before.isDemoFeishuChannelKnown is true
  • after.isDemoFeishuChannelKnown is true
  • the script prints As expected: absolute OPENCLAW_STATE_DIR avoids the repro.

Optional local source override

If you already have an OpenClaw checkout with dependencies installed, you can skip the vendored clone and point the script at that tree:

OPENCLAW_REPO_DIR=/path/to/openclaw pnpm repro

What the script does

1. Clones openclaw/openclaw into .vendor/openclaw 2. Checks out commit ff6541f69d2e6cd88424953b13a43a20fa7aefb9 3. Installs OpenClaw dependencies once 4. Builds OpenClaw once if dist/plugin-sdk/* is missing 5. Creates a tiny auto-discovered plugin under a synthetic state dir 6. Loads plugins once from the main workspace 7. Changes cwd to a sub-workspace and triggers resolvePluginTools() 8. Shows that the plugin channel disappears only in the relative-state-dir case

Why this matters

In the unfixed implementation, resolvePluginTools() calls loadOpenClawPlugins() with the default activating behavior. When the second load sees a different plugin root set, it can replace the active registry and make plugin channels fail later message-channel validation.

Related plugins

Browse all →