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

推荐订阅源

B
Blog
D
Docker
J
Java Code Geeks
腾讯CDC
Blog — PlanetScale
Blog — PlanetScale
G
Google Developers Blog
M
MIT News - Artificial intelligence
L
LangChain Blog
T
The Blog of Author Tim Ferriss
P
Proofpoint News Feed
MyScale Blog
MyScale Blog
博客园 - Franky
GbyAI
GbyAI
Hugging Face - Blog
Hugging Face - Blog
aimingoo的专栏
aimingoo的专栏
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 聂微东
N
Netflix TechBlog - Medium
B
Blog RSS Feed
Y
Y Combinator Blog
阮一峰的网络日志
阮一峰的网络日志
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google DeepMind News
Google DeepMind News

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: repair stale auth shadows and status plugin failures...
steipete · 2026-05-15 · via Recent Commits to openclaw:main

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

1616

resolveSetupChannelRegistration,

1717

} from "../../plugins/loader-channel-setup.js";

1818

import type { PluginManifestRecord } from "../../plugins/manifest-registry.js";

19+

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

1920

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

2021

import {

2122

getCachedPluginModuleLoader,

@@ -61,6 +62,7 @@ type PluginLoaderModule = {

6162

pluginId: string;

6263

plugin: ChannelPlugin;

6364

}>;

65+

diagnostics?: readonly PluginDiagnostic[];

6466

};

6567

};

6668

@@ -131,8 +133,15 @@ type ReadOnlyChannelPluginResolution = {

131133

plugins: ChannelPlugin[];

132134

configuredChannelIds: string[];

133135

missingConfiguredChannelIds: string[];

136+

loadFailures: ReadOnlyChannelPluginLoadFailure[];

134137

};

135138

type ManifestChannelConfigRecord = NonNullable<PluginManifestRecord["channelConfigs"]>[string];

139+

export type ReadOnlyChannelPluginLoadFailure = {

140+

channelId: string;

141+

pluginId: string;

142+

message: string;

143+

source?: string;

144+

};

136145137146

function addChannelPlugins(

138147

byId: Map<string, ChannelPlugin>,

@@ -378,9 +387,9 @@ export { resolveReadOnlyChannelCommandDefaults };

378387

function loadSetupChannelPluginFromManifestRecord(params: {

379388

record: PluginManifestRecord;

380389

channelId: string;

381-

}): ChannelPlugin | undefined {

390+

}): { plugin?: ChannelPlugin; failure?: ReadOnlyChannelPluginLoadFailure } {

382391

if (!params.record.setupSource || !params.record.channels.includes(params.channelId)) {

383-

return undefined;

392+

return {};

384393

}

385394

try {

386395

const moduleLoader = getCachedPluginModuleLoader({

@@ -393,8 +402,18 @@ function loadSetupChannelPluginFromManifestRecord(params: {

393402

cacheScopeKey: "read-only-setup-entry",

394403

});

395404

const registration = resolveSetupChannelRegistration(moduleLoader(params.record.setupSource));

405+

if (registration.loadError) {

406+

return {

407+

failure: {

408+

channelId: params.channelId,

409+

pluginId: params.record.id,

410+

source: params.record.setupSource,

411+

message: `failed to load setup entry: ${formatErrorMessage(registration.loadError)}`,

412+

},

413+

};

414+

}

396415

if (!registration.plugin) {

397-

return undefined;

416+

return {};

398417

}

399418

if (

400419

!channelPluginIdBelongsToManifest({

@@ -403,14 +422,55 @@ function loadSetupChannelPluginFromManifestRecord(params: {

403422

manifestChannels: params.record.channels,

404423

})

405424

) {

406-

return undefined;

425+

return {};

407426

}

408-

return cloneChannelPluginForChannelId(registration.plugin, params.channelId);

427+

return { plugin: cloneChannelPluginForChannelId(registration.plugin, params.channelId) };

409428

} catch (error) {

410429

const detail = formatErrorMessage(error);

411430

log.warn(`[channels] failed to load channel setup ${params.record.id}: ${detail}`);

412-

return undefined;

431+

return {

432+

failure: {

433+

channelId: params.channelId,

434+

pluginId: params.record.id,

435+

source: params.record.setupSource,

436+

message: `failed to load setup entry: ${detail}`,

437+

},

438+

};

439+

}

440+

}

441+442+

function collectChannelPluginLoadFailuresFromDiagnostics(params: {

443+

diagnostics: readonly PluginDiagnostic[] | undefined;

444+

records: readonly PluginManifestRecord[];

445+

channelIds: readonly string[];

446+

}): ReadOnlyChannelPluginLoadFailure[] {

447+

if (!params.diagnostics?.length || params.channelIds.length === 0) {

448+

return [];

413449

}

450+

const configuredChannelIds = new Set(params.channelIds);

451+

const recordsByPluginId = new Map(params.records.map((record) => [record.id, record] as const));

452+

const failures: ReadOnlyChannelPluginLoadFailure[] = [];

453+

for (const diagnostic of params.diagnostics) {

454+

if (diagnostic.level !== "error" || !diagnostic.pluginId) {

455+

continue;

456+

}

457+

const record = recordsByPluginId.get(diagnostic.pluginId);

458+

if (!record) {

459+

continue;

460+

}

461+

for (const channelId of record.channels) {

462+

if (!configuredChannelIds.has(channelId)) {

463+

continue;

464+

}

465+

failures.push({

466+

channelId,

467+

pluginId: record.id,

468+

source: diagnostic.source,

469+

message: diagnostic.message,

470+

});

471+

}

472+

}

473+

return failures;

414474

}

415475416476

function rebindChannelPluginConfig(

@@ -730,6 +790,7 @@ export function resolveReadOnlyChannelPluginsForConfig(

730790

),

731791

].filter(isSafeManifestChannelId);

732792

const byId = new Map<string, ChannelPlugin>();

793+

const loadFailures: ReadOnlyChannelPluginLoadFailure[] = [];

733794734795

addChannelPlugins(byId, listChannelPlugins());

735796

@@ -738,16 +799,22 @@ export function resolveReadOnlyChannelPluginsForConfig(

738799

if (byId.has(channelId)) {

739800

continue;

740801

}

802+

const setupResults = bundledManifestRecords

803+

.filter((record) => record.channels.includes(channelId))

804+

.map((record) =>

805+

loadSetupChannelPluginFromManifestRecord({

806+

record,

807+

channelId,

808+

}),

809+

);

810+

loadFailures.push(

811+

...setupResults

812+

.map((result) => result.failure)

813+

.filter((failure): failure is ReadOnlyChannelPluginLoadFailure => Boolean(failure)),

814+

);

741815

const bundledSetupPlugin =

742-

bundledManifestRecords

743-

.filter((record) => record.channels.includes(channelId))

744-

.map((record) =>

745-

loadSetupChannelPluginFromManifestRecord({

746-

record,

747-

channelId,

748-

}),

749-

)

750-

.find((plugin) => plugin) ?? getBundledChannelSetupPlugin(channelId, env);

816+

setupResults.map((result) => result.plugin).find((plugin) => plugin) ??

817+

getBundledChannelSetupPlugin(channelId, env);

751818

addChannelPlugins(byId, [bundledSetupPlugin]);

752819

}

753820

}

@@ -803,6 +870,13 @@ export function resolveReadOnlyChannelPluginsForConfig(

803870

requireSetupEntryForSetupOnlyChannelPlugins: true,

804871

onlyPluginIds: externalPluginIds,

805872

});

873+

loadFailures.push(

874+

...collectChannelPluginLoadFailuresFromDiagnostics({

875+

diagnostics: registry.diagnostics,

876+

records: externalManifestRecords,

877+

channelIds: missingConfiguredChannelIds,

878+

}),

879+

);

806880

addSetupChannelPlugins(byId, registry.channelSetups, {

807881

ownedChannelIdsByPluginId,

808882

ownedMissingChannelIdsByPluginId,

@@ -822,5 +896,6 @@ export function resolveReadOnlyChannelPluginsForConfig(

822896

plugins,

823897

configuredChannelIds,

824898

missingConfiguredChannelIds: configuredChannelIds.filter((channelId) => !byId.has(channelId)),

899+

loadFailures,

825900

};

826901

}