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

推荐订阅源

WordPress大学
WordPress大学
T
The Blog of Author Tim Ferriss
F
Fortinet All Blogs
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
阮一峰的网络日志
阮一峰的网络日志
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
MyScale Blog
MyScale Blog
雷峰网
雷峰网
博客园 - 叶小钗
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
GbyAI
GbyAI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 三生石上(FineUI控件)
云风的 BLOG
云风的 BLOG
V
V2EX
宝玉的分享
宝玉的分享
酷 壳 – CoolShell
酷 壳 – CoolShell
N
Netflix TechBlog - Medium
Vercel News
Vercel News
美团技术团队
人人都是产品经理
人人都是产品经理
The Cloudflare 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
fix(matrix): stabilize e2ee qa flows · openclaw/openclaw@...
gumadeiras · 2026-04-27 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -68,6 +68,8 @@ Key wizard behaviors:

6868

- Room allowlist entries accept room IDs and aliases directly. Prefer `!room:server` or `#alias:server`; unresolved names are ignored at runtime by allowlist resolution.

6969

- In invite auto-join allowlist mode, use only stable invite targets: `!roomId:server`, `#alias:server`, or `*`. Plain room names are rejected.

7070

- To resolve room names before saving, use `openclaw channels resolve --channel matrix "Project Room"`.

71+

- When setup enables E2EE, OpenClaw writes the encryption config and runs the

72+

same verification bootstrap used by `openclaw matrix encryption setup`.

7173
7274

<Warning>

7375

`channels.matrix.autoJoin` defaults to `off`.

@@ -292,7 +294,32 @@ Use strict room allowlists and mention requirements when enabling bot-to-bot tra

292294
293295

In encrypted (E2EE) rooms, outbound image events use `thumbnail_file` so image previews are encrypted alongside the full attachment. Unencrypted rooms still use plain `thumbnail_url`. No configuration is needed — the plugin detects E2EE state automatically.

294296
295-

Enable encryption:

297+

Recommended setup flow:

298+
299+

```bash

300+

openclaw matrix encryption setup

301+

```

302+
303+

This enables `channels.matrix.encryption`, bootstraps Matrix secret storage and

304+

cross-signing, creates room-key backup state when needed, then prints the

305+

current verification and backup status with next steps.

306+
307+

For a new account, enable E2EE during account creation:

308+
309+

```bash

310+

openclaw matrix account add \

311+

--homeserver https://matrix.example.org \

312+

--access-token syt_xxx \

313+

--enable-e2ee

314+

```

315+
316+

Multi-account setups can target a specific account:

317+
318+

```bash

319+

openclaw matrix encryption setup --account assistant

320+

```

321+
322+

Manual config equivalent:

296323
297324

```json5

298325

{

Original file line numberDiff line numberDiff line change

@@ -116,6 +116,7 @@ describe("matrix plugin", () => {

116116
117117

registerMatrixFullRuntime(api);

118118
119+

expect(runtimeMocks.ensureMatrixCryptoRuntime).not.toHaveBeenCalled();

119120

expect(on.mock.calls.map(([hookName]) => hookName)).toEqual([

120121

"subagent_spawning",

121122

"subagent_ended",

Original file line numberDiff line numberDiff line change

@@ -2,7 +2,6 @@ import {

22

defineBundledChannelEntry,

33

type OpenClawPluginApi,

44

} from "openclaw/plugin-sdk/channel-entry-contract";

5-

import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";

65

import { registerMatrixCliMetadata } from "./cli-metadata.js";

76

import { registerMatrixSubagentHooks } from "./subagent-hooks-api.js";

87

@@ -16,18 +15,6 @@ function loadMatrixHandlersRuntimeModule() {

1615

}

1716
1817

export function registerMatrixFullRuntime(api: OpenClawPluginApi): void {

19-

void loadMatrixHandlersRuntimeModule()

20-

.then(({ ensureMatrixCryptoRuntime }) =>

21-

ensureMatrixCryptoRuntime({ log: api.logger.info }).catch((err: unknown) => {

22-

const message = formatErrorMessage(err);

23-

api.logger.warn?.(`matrix: crypto runtime bootstrap failed: ${message}`);

24-

}),

25-

)

26-

.catch((err: unknown) => {

27-

const message = formatErrorMessage(err);

28-

api.logger.warn?.(`matrix: failed loading crypto bootstrap runtime: ${message}`);

29-

});

30-
3118

api.registerGatewayMethod("matrix.verify.recoveryKey", async (ctx) => {

3219

const { handleVerifyRecoveryKey } = await loadMatrixHandlersRuntimeModule();

3320

await handleVerifyRecoveryKey(ctx);

Original file line numberDiff line numberDiff line change

@@ -138,6 +138,7 @@ describe("matrix setup post-write bootstrap", () => {

138138
139139

expect(verificationMocks.bootstrapMatrixVerification).toHaveBeenCalledWith({

140140

accountId: "default",

141+

cfg: nextCfg,

141142

});

142143

expect(log).toHaveBeenCalledWith('Matrix verification bootstrap: complete for "default".');

143144

expect(log).toHaveBeenCalledWith('Matrix backup version for "default": 7');

@@ -177,6 +178,44 @@ describe("matrix setup post-write bootstrap", () => {

177178

expect(error).not.toHaveBeenCalled();

178179

});

179180
181+

it("bootstraps verification when setup enables encryption for an existing account", async () => {

182+

const previousCfg = {

183+

channels: {

184+

matrix: {

185+

homeserver: "https://matrix.example.org",

186+

userId: "@flurry:example.org",

187+

accessToken: "token",

188+

encryption: false,

189+

},

190+

},

191+

} as CoreConfig;

192+

const nextCfg = {

193+

channels: {

194+

matrix: {

195+

homeserver: "https://matrix.example.org",

196+

userId: "@flurry:example.org",

197+

accessToken: "token",

198+

encryption: true,

199+

},

200+

},

201+

} as CoreConfig;

202+

mockBootstrapResult({ success: true, backupVersion: "8" });

203+
204+

await runAfterAccountConfigWritten({

205+

previousCfg,

206+

nextCfg,

207+

accountId: "default",

208+

input: {},

209+

});

210+
211+

expect(verificationMocks.bootstrapMatrixVerification).toHaveBeenCalledWith({

212+

accountId: "default",

213+

cfg: nextCfg,

214+

});

215+

expect(log).toHaveBeenCalledWith('Matrix verification bootstrap: complete for "default".');

216+

expect(log).toHaveBeenCalledWith('Matrix backup version for "default": 8');

217+

});

218+
180219

it("logs a warning when verification bootstrap fails", async () => {

181220

const { previousCfg, nextCfg, accountId, input } = applyDefaultAccountConfig();

182221

mockBootstrapResult({

@@ -207,6 +246,7 @@ describe("matrix setup post-write bootstrap", () => {

207246
208247

expect(verificationMocks.bootstrapMatrixVerification).toHaveBeenCalledWith({

209248

accountId: "default",

249+

cfg: nextCfg,

210250

});

211251

expect(log).toHaveBeenCalledWith('Matrix verification bootstrap: complete for "default".');

212252

},