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

推荐订阅源

WordPress大学
WordPress大学
The Cloudflare Blog
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
V
Visual Studio Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 司徒正美
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
酷 壳 – CoolShell
酷 壳 – CoolShell
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
The GitHub Blog
The GitHub Blog
L
LangChain Blog
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
F
Fortinet All Blogs
博客园 - Franky
阮一峰的网络日志
阮一峰的网络日志
GbyAI
GbyAI
Apple Machine Learning Research
Apple Machine Learning Research
宝玉的分享
宝玉的分享
Engineering at Meta
Engineering at Meta
V
V2EX
MyScale Blog
MyScale 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: MCP + cron + plugin lifecycle plus channel env-bloc...
vincentkoc · 2026-04-23 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -90,6 +90,8 @@ This fires ~5–6 times per month instead of 0–1 times per month. OpenClaw use

9090
9191

For isolated jobs, runtime teardown now includes best-effort browser cleanup for that cron session. Cleanup failures are ignored so the actual cron result still wins.

9292
93+

Isolated cron runs also dispose any bundled MCP runtime instances created for the job through the shared runtime-cleanup path. This matches how main-session and custom-session MCP clients are torn down, so isolated cron jobs do not leak stdio child processes or long-lived MCP connections across runs.

94+
9395

When isolated cron runs orchestrate subagents, delivery also prefers the final

9496

descendant output over stale parent interim text. If descendants are still

9597

running, OpenClaw suppresses that partial parent update instead of announcing it.

Original file line numberDiff line numberDiff line change

@@ -237,6 +237,14 @@ Default account supports:

237237

- `IRC_NICKSERV_PASSWORD`

238238

- `IRC_NICKSERV_REGISTER_EMAIL`

239239
240+

<Note>

241+

`IRC_HOST` is on the endpoint-block list and cannot be set from a workspace

242+

`.env` file. It must come from shell environment or the gateway process

243+

environment so that untrusted workspaces cannot redirect IRC traffic to a

244+

different server. See [Workspace `.env` files](/gateway/security) for the full

245+

list.

246+

</Note>

247+
240248

## Troubleshooting

241249
242250

- If the bot connects but never replies in channels, verify `channels.irc.groups` **and** whether mention-gating is dropping messages (`missing-mention`). If you want it to reply without pings, set `requireMention:false` for the channel.

Original file line numberDiff line numberDiff line change

@@ -179,6 +179,14 @@ For example, `-` becomes `_X2D_`, so `ops-prod` maps to `MATRIX_OPS_X2D_PROD_*`.

179179
180180

The interactive wizard only offers the env-var shortcut when those auth env vars are already present and the selected account does not already have Matrix auth saved in config.

181181
182+

<Note>

183+

`MATRIX_HOMESERVER` is on the endpoint-block list and cannot be set from a

184+

workspace `.env` file. It must come from shell environment or the gateway

185+

process environment so that untrusted workspaces cannot redirect Matrix

186+

traffic to a different homeserver. See

187+

[Workspace `.env` files](/gateway/security) for the full list.

188+

</Note>

189+
182190

## Configuration example

183191
184192

This is a practical baseline config with DM pairing, room allowlist, and E2EE enabled:

Original file line numberDiff line numberDiff line change

@@ -109,6 +109,14 @@ Set these on the gateway host if you prefer env vars:

109109
110110

Env vars apply only to the **default** account (`default`). Other accounts must use config values.

111111
112+

<Note>

113+

`MATTERMOST_URL` is on the endpoint-block list and cannot be set from a

114+

workspace `.env` file. It must come from shell environment or the gateway

115+

process environment so that untrusted workspaces cannot redirect Mattermost

116+

traffic to a different server. See

117+

[Workspace `.env` files](/gateway/security) for the full list.

118+

</Note>

119+
112120

## Chat modes

113121
114122

Mattermost responds to DMs automatically. Channel behavior is controlled by `chatmode`:

Original file line numberDiff line numberDiff line change

@@ -89,6 +89,14 @@ For the default account, you can use env vars:

8989
9090

Config values override env vars.

9191
92+

<Note>

93+

`SYNOLOGY_CHAT_INCOMING_URL` is on the endpoint-block list and cannot be set

94+

from a workspace `.env` file. It must come from shell environment or the

95+

gateway process environment so that untrusted workspaces cannot redirect

96+

Synology Chat traffic to a different webhook. See

97+

[Workspace `.env` files](/gateway/security) for the full list.

98+

</Note>

99+
92100

## DM policy and access control

93101
94102

- `dmPolicy: "allowlist"` is the recommended default.

Original file line numberDiff line numberDiff line change

@@ -63,6 +63,12 @@ Important behavior:

6363

- older transcript history is read with `messages_read`

6464

- Claude push notifications only exist while the MCP session is alive

6565

- when the client disconnects, the bridge exits and the live queue is gone

66+

- stdio MCP servers launched by OpenClaw (bundled or user-configured) are torn

67+

down as a process tree on shutdown, so child subprocesses started by the

68+

server do not survive after the parent stdio client exits

69+

- deleting or resetting a session disposes that session's MCP clients through

70+

the shared runtime cleanup path, so there are no lingering stdio connections

71+

tied to a removed session

6672
6773

## Choose a client mode

6874
Original file line numberDiff line numberDiff line change

@@ -478,6 +478,10 @@ Important trust note:

478478

- A workspace plugin with the same id as a bundled plugin intentionally shadows

479479

the bundled copy when that workspace plugin is enabled/allowlisted.

480480

- This is normal and useful for local development, patch testing, and hotfixes.

481+

- Bundled-plugin trust is resolved from the source snapshot — the manifest and

482+

code on disk at load time — rather than from install metadata. A corrupted

483+

or substituted install record cannot silently widen a bundled plugin's trust

484+

surface beyond what the actual source claims.

481485
482486

## Export boundary

483487

@@ -507,7 +511,9 @@ At startup, OpenClaw does roughly this:

507511

4. normalize plugin config (`plugins.enabled`, `allow`, `deny`, `entries`,

508512

`slots`, `load.paths`)

509513

5. decide enablement for each candidate

510-

6. load enabled native modules via jiti

514+

6. load enabled native modules — built `dist/*` bundled modules go through a

515+

native loader path, while non-built native plugin modules are loaded via

516+

jiti

511517

7. call native `register(api)` (or `activate(api)` — a legacy alias) hooks and collect registrations into the plugin registry

512518

8. expose the registry to commands/runtime surfaces

513519
Original file line numberDiff line numberDiff line change

@@ -254,6 +254,18 @@ OpenClaw checks for native plugin format first:

254254

If a directory contains both, OpenClaw uses the native path. This prevents

255255

dual-format packages from being partially installed as bundles.

256256
257+

## Runtime dependencies and cleanup

258+
259+

- Bundled plugin runtime dependencies ship inside the OpenClaw package under

260+

`dist/*`. OpenClaw does **not** run `npm install` at startup for bundled

261+

plugins; the release pipeline is responsible for shipping a complete bundled

262+

dependency payload (see the postpublish verification rule in

263+

[Releasing](/reference/RELEASING)).

264+

- Sub-agent runs that launch bundled MCP servers dispose those MCP clients

265+

through the shared runtime-cleanup path when the sub-agent exits, so

266+

sub-agent lifecycles do not leak stdio child processes or long-lived MCP

267+

connections across turns.

268+
257269

## Security

258270
259271

Bundles have a narrower trust boundary than native plugins: