惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
M
MIT News - Artificial intelligence
D
Docker
S
SegmentFault 最新的问题
B
Blog
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
博客园 - 【当耐特】
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
腾讯CDC
阮一峰的网络日志
阮一峰的网络日志
U
Unit 42
C
Check Point Blog
GbyAI
GbyAI
美团技术团队
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
量子位
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Visual Studio Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
G
Google Developers Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
docs: clarify plugin discovery loading · openclaw/opencla...
gumadeiras · 2026-04-25 · via Recent Commits to openclaw:main

@@ -127,6 +127,10 @@ export default defineChannelPluginEntry({

127127

Use it as the canonical place for channel-owned CLI descriptors so root help

128128

stays non-activating, discovery snapshots include static command metadata, and

129129

normal CLI command registration remains compatible with full plugin loads.

130+

- Discovery registration is non-activating, not import-free. OpenClaw may

131+

evaluate the trusted plugin entry and channel plugin module to build the

132+

snapshot, so keep top-level imports side-effect-free and put sockets,

133+

clients, workers, and services behind `"full"`-only paths.

130134

- `registerFull` only runs when `api.registrationMode === "full"`. It is skipped

131135

during setup-only loading.

132136

- Like `definePluginEntry`, `configSchema` can be a lazy factory and OpenClaw

@@ -198,13 +202,13 @@ setter before the full channel entry loads.

198202199203

`api.registrationMode` tells your plugin how it was loaded:

200204201-

| Mode | When | What to register |

202-

| ----------------- | --------------------------------- | ---------------------------------------------------------------------------------------------- |

203-

| `"full"` | Normal gateway startup | Everything |

204-

| `"discovery"` | Read-only capability discovery | Channel registration plus static CLI descriptors; skip sockets, workers, clients, and services |

205-

| `"setup-only"` | Disabled/unconfigured channel | Channel registration only |

206-

| `"setup-runtime"` | Setup flow with runtime available | Channel registration plus only the lightweight runtime needed before the full entry loads |

207-

| `"cli-metadata"` | Root help / CLI metadata capture | CLI descriptors only |

205+

| Mode | When | What to register |

206+

| ----------------- | --------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |

207+

| `"full"` | Normal gateway startup | Everything |

208+

| `"discovery"` | Read-only capability discovery | Channel registration plus static CLI descriptors; entry code may load, but skip sockets, workers, clients, and services |

209+

| `"setup-only"` | Disabled/unconfigured channel | Channel registration only |

210+

| `"setup-runtime"` | Setup flow with runtime available | Channel registration plus only the lightweight runtime needed before the full entry loads |

211+

| `"cli-metadata"` | Root help / CLI metadata capture | CLI descriptors only |

208212209213

`defineChannelPluginEntry` handles this split automatically. If you use

210214

`definePluginEntry` directly for a channel, check mode yourself:

@@ -228,6 +232,13 @@ register(api) {

228232

}

229233

```

230234235+

Discovery mode builds a non-activating registry snapshot. It may still evaluate

236+

the plugin entry and the channel plugin object so OpenClaw can register channel

237+

capabilities and static CLI descriptors. Treat module evaluation in discovery as

238+

trusted but lightweight: no network clients, subprocesses, listeners, database

239+

connections, background workers, credential reads, or other live runtime side

240+

effects at top level.

241+231242

Treat `"setup-runtime"` as the window where setup-only startup surfaces must

232243

exist without re-entering the full bundled channel runtime. Good fits are

233244

channel registration, setup-safe HTTP routes, setup-safe gateway methods, and