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

推荐订阅源

腾讯CDC
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
P
Proofpoint News Feed
D
DataBreaches.Net
D
Docker
云风的 BLOG
云风的 BLOG
大猫的无限游戏
大猫的无限游戏
月光博客
月光博客
J
Java Code Geeks
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
罗磊的独立博客
Martin Fowler
Martin Fowler
U
Unit 42
Engineering at Meta
Engineering at Meta
IT之家
IT之家
Vercel News
Vercel News
B
Blog RSS Feed
人人都是产品经理
人人都是产品经理
博客园 - Franky
博客园 - 【当耐特】
Stack Overflow Blog
Stack Overflow Blog
G
Google Developers Blog
MongoDB | Blog
MongoDB | 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(plugins): persist registry enabled snapshot · opencla...
vincentkoc · 2026-04-25 · via Recent Commits to openclaw:main

@@ -91,6 +91,7 @@ export type InstalledPluginIndexRecord = {

9191

packageJsonHash?: string;

9292

rootDir: string;

9393

origin: PluginManifestRecord["origin"];

94+

enabled: boolean;

9495

enabledByDefault?: boolean;

9596

contributions: InstalledPluginIndexContributions;

9697

compat: readonly PluginCompatCode[];

@@ -400,6 +401,7 @@ function buildInstalledPluginIndex(

400401

const env = params.env ?? process.env;

401402

const { candidates, registry } = resolveRegistry(params);

402403

const candidateByRootDir = buildCandidateLookup(candidates);

404+

const normalizedConfig = normalizePluginsConfigWithResolver(params.config?.plugins);

403405

const diagnostics: PluginDiagnostic[] = [...registry.diagnostics];

404406

const generatedAtMs = (params.now?.() ?? new Date()).getTime();

405407

const plugins = registry.plugins.map((record): InstalledPluginIndexRecord => {

@@ -422,12 +424,20 @@ function buildInstalledPluginIndex(

422424

required: false,

423425

})

424426

: undefined;

427+

const enabled = resolveEffectiveEnableState({

428+

id: record.id,

429+

origin: record.origin,

430+

config: normalizedConfig,

431+

rootConfig: params.config,

432+

enabledByDefault: record.enabledByDefault,

433+

}).enabled;

425434

const indexRecord: InstalledPluginIndexRecord = {

426435

pluginId: record.id,

427436

manifestPath: record.manifestPath,

428437

manifestHash,

429438

rootDir: record.rootDir,

430439

origin: record.origin,

440+

enabled,

431441

contributions: buildContributions(record),

432442

compat: collectCompatCodes(record),

433443

};

@@ -490,6 +500,9 @@ export function listEnabledInstalledPluginRecords(

490500

index: InstalledPluginIndex,

491501

config?: OpenClawConfig,

492502

): readonly InstalledPluginIndexRecord[] {

503+

if (!config) {

504+

return index.plugins.filter((plugin) => plugin.enabled);

505+

}

493506

const normalizedConfig = normalizePluginsConfigWithResolver(config?.plugins);

494507

return index.plugins.filter(

495508

(plugin) =>

@@ -519,6 +532,9 @@ export function isInstalledPluginEnabled(

519532

if (!record) {

520533

return false;

521534

}

535+

if (!config) {

536+

return record.enabled;

537+

}

522538

const normalizedConfig = normalizePluginsConfigWithResolver(config?.plugins);

523539

return resolveEffectiveEnableState({

524540

id: record.pluginId,

@@ -674,6 +690,9 @@ export function diffInstalledPluginIndexInvalidationReasons(

674690

) {

675691

reasons.add("source-changed");

676692

}

693+

if (previousPlugin.enabled !== currentPlugin.enabled) {

694+

reasons.add("policy-changed");

695+

}

677696

if (previousPlugin.manifestHash !== currentPlugin.manifestHash) {

678697

reasons.add("stale-manifest");

679698

}