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

推荐订阅源

人人都是产品经理
人人都是产品经理
Apple Machine Learning Research
Apple Machine Learning Research
云风的 BLOG
云风的 BLOG
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
量子位
GbyAI
GbyAI
腾讯CDC
T
Tailwind CSS Blog
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
D
Docker
G
Google Developers Blog
aimingoo的专栏
aimingoo的专栏
The GitHub Blog
The GitHub Blog
Microsoft Security Blog
Microsoft Security Blog
Stack Overflow Blog
Stack Overflow Blog
Hugging Face - Blog
Hugging Face - Blog
小众软件
小众软件
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
N
Netflix TechBlog - Medium
Jina AI
Jina AI
IT之家
IT之家
Y
Y Combinator 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: keep plugin metadata out of config snapshots · openc...
shakkernerd · 2026-04-28 · via Recent Commits to openclaw:main

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

66

type OpenClawConfig,

77

applyConfigOverrides,

88

isNixMode,

9-

readConfigFileSnapshot,

9+

readConfigFileSnapshotWithPluginMetadata,

1010

recoverConfigFromLastKnownGood,

1111

recoverConfigFromJsonRootSuffix,

1212

replaceConfigFile,

@@ -18,6 +18,7 @@ import { formatConfigIssueLines } from "../config/issue-format.js";

1818

import { asResolvedSourceConfig, materializeRuntimeConfig } from "../config/materialize.js";

1919

import { applyPluginAutoEnable } from "../config/plugin-auto-enable.js";

2020

import { isTruthyEnvValue } from "../infra/env.js";

21+

import type { PluginMetadataSnapshot } from "../plugins/plugin-metadata-snapshot.js";

2122

import {

2223

GATEWAY_AUTH_SURFACE_PATHS,

2324

evaluateGatewayAuthSurfaceStates,

@@ -61,6 +62,7 @@ type GatewayStartupConfigMeasure = <T>(name: string, run: () => T | Promise<T>)

6162

export type GatewayStartupConfigSnapshotLoadResult = {

6263

snapshot: ConfigFileSnapshot;

6364

wroteConfig: boolean;

65+

pluginMetadataSnapshot?: PluginMetadataSnapshot;

6466

degradedProviderApi?: boolean;

6567

degradedPluginConfig?: boolean;

6668

};

@@ -192,9 +194,11 @@ export async function loadGatewayStartupConfigSnapshot(params: {

192194

measure?: GatewayStartupConfigMeasure;

193195

}): Promise<GatewayStartupConfigSnapshotLoadResult> {

194196

const measure = params.measure ?? (async (_name, run) => await run());

195-

let configSnapshot = await measure("config.snapshot.read", () =>

196-

readConfigFileSnapshot({ measure }),

197+

let snapshotRead = await measure("config.snapshot.read", () =>

198+

readConfigFileSnapshotWithPluginMetadata({ measure }),

197199

);

200+

let configSnapshot = snapshotRead.snapshot;

201+

let pluginMetadataSnapshot = snapshotRead.pluginMetadataSnapshot;

198202

let wroteConfig = false;

199203

let degradedStartupConfig = false;

200204

let degradedPluginConfig = false;

@@ -242,9 +246,11 @@ export async function loadGatewayStartupConfigSnapshot(params: {

242246

params.log.warn(

243247

`gateway: invalid config was restored from last-known-good backup: ${configSnapshot.path}`,

244248

);

245-

configSnapshot = await measure("config.snapshot.recovery-read", () =>

246-

readConfigFileSnapshot({ measure }),

249+

snapshotRead = await measure("config.snapshot.recovery-read", () =>

250+

readConfigFileSnapshotWithPluginMetadata({ measure }),

247251

);

252+

configSnapshot = snapshotRead.snapshot;

253+

pluginMetadataSnapshot = snapshotRead.pluginMetadataSnapshot;

248254

if (configSnapshot.valid) {

249255

enqueueConfigRecoveryNotice({

250256

cfg: configSnapshot.config,

@@ -259,9 +265,11 @@ export async function loadGatewayStartupConfigSnapshot(params: {

259265

params.log.warn(

260266

`gateway: invalid config was repaired by stripping a non-JSON prefix: ${configSnapshot.path}`,

261267

);

262-

configSnapshot = await measure("config.snapshot.prefix-recovery-read", () =>

263-

readConfigFileSnapshot({ measure }),

268+

snapshotRead = await measure("config.snapshot.prefix-recovery-read", () =>

269+

readConfigFileSnapshotWithPluginMetadata({ measure }),

264270

);

271+

configSnapshot = snapshotRead.snapshot;

272+

pluginMetadataSnapshot = snapshotRead.pluginMetadataSnapshot;

265273

}

266274

}

267275

assertValidGatewayStartupConfigSnapshot(configSnapshot, { includeDoctorHint: true });

@@ -274,15 +282,16 @@ export async function loadGatewayStartupConfigSnapshot(params: {

274282

applyPluginAutoEnable({

275283

config: configSnapshot.sourceConfig,

276284

env: process.env,

277-

...(configSnapshot.pluginMetadataSnapshot?.manifestRegistry

278-

? { manifestRegistry: configSnapshot.pluginMetadataSnapshot.manifestRegistry }

285+

...(pluginMetadataSnapshot?.manifestRegistry

286+

? { manifestRegistry: pluginMetadataSnapshot.manifestRegistry }

279287

: {}),

280288

}),

281289

);

282290

if (autoEnable.changes.length === 0) {

283291

return {

284292

snapshot: configSnapshot,

285293

wroteConfig,

294+

...(pluginMetadataSnapshot ? { pluginMetadataSnapshot } : {}),

286295

...(degradedStartupConfig ? { degradedProviderApi: true } : {}),

287296

...(degradedPluginConfig ? { degradedPluginConfig: true } : {}),

288297

};

@@ -294,9 +303,11 @@ export async function loadGatewayStartupConfigSnapshot(params: {

294303

afterWrite: { mode: "auto" },

295304

});

296305

wroteConfig = true;

297-

configSnapshot = await measure("config.snapshot.auto-enable-read", () =>

298-

readConfigFileSnapshot({ measure }),

306+

snapshotRead = await measure("config.snapshot.auto-enable-read", () =>

307+

readConfigFileSnapshotWithPluginMetadata({ measure }),

299308

);

309+

configSnapshot = snapshotRead.snapshot;

310+

pluginMetadataSnapshot = snapshotRead.pluginMetadataSnapshot;

300311

assertValidGatewayStartupConfigSnapshot(configSnapshot);

301312

params.log.info(

302313

`gateway: auto-enabled plugins:\n${autoEnable.changes.map((entry) => `- ${entry}`).join("\n")}`,

@@ -308,6 +319,7 @@ export async function loadGatewayStartupConfigSnapshot(params: {

308319

return {

309320

snapshot: configSnapshot,

310321

wroteConfig,

322+

...(pluginMetadataSnapshot ? { pluginMetadataSnapshot } : {}),

311323

...(degradedStartupConfig ? { degradedProviderApi: true } : {}),

312324

...(degradedPluginConfig ? { degradedPluginConfig: true } : {}),

313325

};