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

推荐订阅源

Microsoft Security Blog
Microsoft Security Blog
J
Java Code Geeks
GbyAI
GbyAI
aimingoo的专栏
aimingoo的专栏
L
LangChain Blog
I
InfoQ
D
Docker
F
Fortinet All Blogs
Y
Y Combinator Blog
Martin Fowler
Martin Fowler
月光博客
月光博客
B
Blog
Engineering at Meta
Engineering at Meta
T
Tailwind CSS Blog
罗磊的独立博客
博客园_首页
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
Recent Announcements
Recent Announcements
D
DataBreaches.Net
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog RSS Feed
IT之家
IT之家
V
V2EX

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(plugins): reuse cold inspect registry snapshots (#756...
vincentkoc · 2026-05-02 · via Recent Commits to openclaw:main

@@ -1,3 +1,4 @@

1+

import { resolveAgentWorkspaceDir, resolveDefaultAgentId } from "../agents/agent-scope.js";

12

import { resolveDefaultAgentWorkspaceDir } from "../agents/workspace.js";

23

import { getRuntimeConfig } from "../config/config.js";

34

import type { OpenClawConfig } from "../config/types.openclaw.js";

@@ -24,6 +25,7 @@ import type { PluginManifestRecord } from "./manifest-registry.js";

2425

import type { PluginDiagnostic } from "./manifest-types.js";

2526

import { tracePluginLifecyclePhase } from "./plugin-lifecycle-trace.js";

2627

import {

28+

loadPluginManifestRegistryForPluginRegistry,

2729

loadPluginRegistrySnapshotWithMetadata,

2830

type PluginRegistrySnapshotDiagnostic,

2931

type PluginRegistrySnapshotSource,

@@ -167,6 +169,7 @@ type PluginReportParams = {

167169

/** Use an explicit env when plugin roots should resolve independently from process.env. */

168170

env?: NodeJS.ProcessEnv;

169171

logger?: PluginLogger;

172+

resolvedConfig?: OpenClawConfig;

170173

};

171174172175

function buildPluginRecordFromInstalledIndex(

@@ -259,21 +262,34 @@ function buildPluginReport(

259262

params: PluginReportParams | undefined,

260263

loadModules: boolean,

261264

): PluginStatusReport {

265+

const rawConfig = params?.config ?? getRuntimeConfig();

266+

const initialWorkspaceDir =

267+

params?.workspaceDir ??

268+

resolveAgentWorkspaceDir(rawConfig, resolveDefaultAgentId(rawConfig), params?.env);

269+

const manifestRegistry = !loadModules

270+

? loadPluginManifestRegistryForPluginRegistry({

271+

config: rawConfig,

272+

env: params?.env,

273+

workspaceDir: initialWorkspaceDir,

274+

includeDisabled: true,

275+

})

276+

: undefined;

262277

const baseContext = resolvePluginRuntimeLoadContext({

263-

config: params?.config ?? getRuntimeConfig(),

278+

config: rawConfig,

264279

env: params?.env,

265280

logger: params?.logger,

266-

workspaceDir: params?.workspaceDir,

281+

workspaceDir: initialWorkspaceDir,

282+

manifestRegistry,

267283

});

268-

const workspaceDir = baseContext.workspaceDir ?? resolveDefaultAgentWorkspaceDir();

284+

const workspaceDir =

285+

baseContext.workspaceDir ?? initialWorkspaceDir ?? resolveDefaultAgentWorkspaceDir();

269286

const context =

270287

workspaceDir === baseContext.workspaceDir

271288

? baseContext

272289

: {

273290

...baseContext,

274291

workspaceDir,

275292

};

276-

const rawConfig = context.rawConfig;

277293

const config = context.config;

278294279295

// Apply bundled-provider allowlist compat so that `plugins list` and `doctor`

@@ -286,6 +302,7 @@ function buildPluginReport(

286302

config,

287303

workspaceDir,

288304

env: params?.env,

305+

manifestRegistry,

289306

});

290307

const effectiveConfig = withBundledPluginAllowlistCompat({

291308

config,

@@ -336,6 +353,8 @@ function buildPluginReport(

336353

logger: params?.logger,

337354

loadModules: false,

338355

onlyPluginIds,

356+

manifestRegistry,

357+

runtimeContext: context,

339358

}),

340359

{ surface: "status", onlyPluginCount: onlyPluginIds?.length },

341360

);

@@ -376,14 +395,17 @@ export function buildPluginInspectReport(params: {

376395

env?: NodeJS.ProcessEnv;

377396

logger?: PluginLogger;

378397

report?: PluginStatusReport;

398+

resolvedConfig?: OpenClawConfig;

379399

}): PluginInspectReport | null {

380400

const rawConfig = params.config ?? getRuntimeConfig();

381-

const config = resolvePluginRuntimeLoadContext({

382-

config: rawConfig,

383-

env: params.env,

384-

logger: params.logger,

385-

workspaceDir: params.workspaceDir,

386-

}).config;

401+

const config =

402+

params.resolvedConfig ??

403+

resolvePluginRuntimeLoadContext({

404+

config: rawConfig,

405+

env: params.env,

406+

logger: params.logger,

407+

workspaceDir: params.workspaceDir,

408+

}).config;

387409

const report =

388410

params.report ??

389411

buildPluginDiagnosticsReport({

@@ -508,6 +530,12 @@ export function buildAllPluginInspectReports(params?: {

508530

report?: PluginStatusReport;

509531

}): PluginInspectReport[] {

510532

const rawConfig = params?.config ?? getRuntimeConfig();

533+

const config = resolvePluginRuntimeLoadContext({

534+

config: rawConfig,

535+

env: params?.env,

536+

logger: params?.logger,

537+

workspaceDir: params?.workspaceDir,

538+

}).config;

511539

const report =

512540

params?.report ??

513541

buildPluginDiagnosticsReport({

@@ -523,6 +551,9 @@ export function buildAllPluginInspectReports(params?: {

523551

id: plugin.id,

524552

config: rawConfig,

525553

logger: params?.logger,

554+

workspaceDir: params?.workspaceDir,

555+

env: params?.env,

556+

resolvedConfig: config,

526557

report,

527558

}),

528559

)