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

推荐订阅源

云风的 BLOG
云风的 BLOG
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
博客园 - 三生石上(FineUI控件)
T
The Blog of Author Tim Ferriss
宝玉的分享
宝玉的分享
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
V
Visual Studio Blog
小众软件
小众软件
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
MongoDB | Blog
MongoDB | Blog
V
V2EX
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 【当耐特】
Microsoft Azure Blog
Microsoft Azure Blog
The Cloudflare Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Engineering at Meta
Engineering at Meta
L
LangChain Blog
Martin Fowler
Martin Fowler
GbyAI
GbyAI
博客园 - 司徒正美

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): honor beta channel for auto installs · open...
vincentkoc · 2026-05-05 · via Recent Commits to openclaw:main

@@ -9,9 +9,18 @@ import type { OpenClawConfig } from "../../../config/types.openclaw.js";

99

import type { PluginInstallRecord } from "../../../config/types.plugins.js";

1010

import { parseClawHubPluginSpec } from "../../../infra/clawhub-spec.js";

1111

import { parseRegistryNpmSpec } from "../../../infra/npm-registry-spec.js";

12+

import {

13+

normalizeUpdateChannel,

14+

resolveRegistryUpdateChannel,

15+

type UpdateChannel,

16+

} from "../../../infra/update-channels.js";

1217

import { resolveConfiguredChannelPresencePolicy } from "../../../plugins/channel-plugin-ids.js";

1318

import { buildClawHubPluginInstallRecordFields } from "../../../plugins/clawhub-install-records.js";

1419

import { CLAWHUB_INSTALL_ERROR_CODE, installPluginFromClawHub } from "../../../plugins/clawhub.js";

20+

import {

21+

resolveClawHubInstallSpecsForUpdateChannel,

22+

resolveNpmInstallSpecsForUpdateChannel,

23+

} from "../../../plugins/install-channel-specs.js";

1524

import { resolveDefaultPluginExtensionsDir } from "../../../plugins/install-paths.js";

1625

import { installPluginFromNpmSpec } from "../../../plugins/install.js";

1726

import { loadInstalledPluginIndexInstallRecords } from "../../../plugins/installed-plugin-index-records.js";

@@ -32,6 +41,7 @@ import { updateNpmInstalledPlugins } from "../../../plugins/update.js";

3241

import { resolveWebSearchInstallCatalogEntry } from "../../../plugins/web-search-install-catalog.js";

3342

import { normalizeOptionalLowercaseString } from "../../../shared/string-coerce.js";

3443

import { resolveUserPath } from "../../../utils.js";

44+

import { VERSION } from "../../../version.js";

3545

import { asObjectRecord } from "./object.js";

36463747

type DownloadableInstallCandidate = {

@@ -457,6 +467,7 @@ function recordClawHubPackageName(value: string | undefined): string | undefined

457467

async function installCandidate(params: {

458468

candidate: DownloadableInstallCandidate;

459469

records: Record<string, PluginInstallRecord>;

470+

updateChannel?: UpdateChannel;

460471

}): Promise<{

461472

records: Record<string, PluginInstallRecord>;

462473

changes: string[];

@@ -465,9 +476,23 @@ async function installCandidate(params: {

465476

const { candidate } = params;

466477

const extensionsDir = resolveDefaultPluginExtensionsDir();

467478

const changes: string[] = [];

468-

if (candidate.clawhubSpec && candidate.defaultChoice !== "npm") {

479+

const clawhubSpecs = candidate.clawhubSpec

480+

? resolveClawHubInstallSpecsForUpdateChannel({

481+

spec: candidate.clawhubSpec,

482+

updateChannel: params.updateChannel,

483+

})

484+

: null;

485+

const npmSpecs = candidate.npmSpec

486+

? resolveNpmInstallSpecsForUpdateChannel({

487+

spec: candidate.npmSpec,

488+

updateChannel: params.updateChannel,

489+

})

490+

: null;

491+

const clawhubInstallSpec = clawhubSpecs?.installSpec ?? candidate.clawhubSpec;

492+

const npmInstallSpec = npmSpecs?.installSpec ?? candidate.npmSpec;

493+

if (clawhubInstallSpec && candidate.defaultChoice !== "npm") {

469494

const clawhubResult = await installPluginFromClawHub({

470-

spec: candidate.clawhubSpec,

495+

spec: clawhubInstallSpec,

471496

extensionsDir,

472497

expectedPluginId: candidate.pluginId,

473498

mode: "install",

@@ -479,31 +504,29 @@ async function installCandidate(params: {

479504

...params.records,

480505

[pluginId]: {

481506

...buildClawHubPluginInstallRecordFields(clawhubResult.clawhub),

482-

spec: candidate.clawhubSpec,

507+

spec: clawhubSpecs?.recordSpec ?? clawhubInstallSpec,

483508

installPath: clawhubResult.targetDir,

484509

installedAt: new Date().toISOString(),

485510

},

486511

},

487-

changes: [

488-

`Installed missing configured plugin "${pluginId}" from ${candidate.clawhubSpec}.`,

489-

],

512+

changes: [`Installed missing configured plugin "${pluginId}" from ${clawhubInstallSpec}.`],

490513

warnings: [],

491514

};

492515

}

493-

if (!candidate.npmSpec || !shouldFallbackClawHubToNpm(clawhubResult)) {

516+

if (!npmInstallSpec || !shouldFallbackClawHubToNpm(clawhubResult)) {

494517

return {

495518

records: params.records,

496519

changes: [],

497520

warnings: [

498-

`Failed to install missing configured plugin "${candidate.pluginId}" from ${candidate.clawhubSpec}: ${clawhubResult.error}`,

521+

`Failed to install missing configured plugin "${candidate.pluginId}" from ${clawhubInstallSpec}: ${clawhubResult.error}`,

499522

],

500523

};

501524

}

502525

changes.push(

503-

`ClawHub ${candidate.clawhubSpec} unavailable for "${candidate.pluginId}"; falling back to npm ${candidate.npmSpec}.`,

526+

`ClawHub ${clawhubInstallSpec} unavailable for "${candidate.pluginId}"; falling back to npm ${npmInstallSpec}.`,

504527

);

505528

}

506-

if (!candidate.npmSpec) {

529+

if (!npmInstallSpec) {

507530

return {

508531

records: params.records,

509532

changes: [],

@@ -513,7 +536,7 @@ async function installCandidate(params: {

513536

};

514537

}

515538

const result = await installPluginFromNpmSpec({

516-

spec: candidate.npmSpec,

539+

spec: npmInstallSpec,

517540

extensionsDir,

518541

expectedPluginId: candidate.pluginId,

519542

expectedIntegrity: candidate.expectedIntegrity,

@@ -527,7 +550,7 @@ async function installCandidate(params: {

527550

records: params.records,

528551

changes: [],

529552

warnings: [

530-

`Failed to install missing configured plugin "${candidate.pluginId}" from ${candidate.npmSpec}: ${result.error}`,

553+

`Failed to install missing configured plugin "${candidate.pluginId}" from ${npmInstallSpec}: ${result.error}`,

531554

],

532555

};

533556

}

@@ -537,7 +560,7 @@ async function installCandidate(params: {

537560

...params.records,

538561

[pluginId]: {

539562

source: "npm",

540-

spec: candidate.npmSpec,

563+

spec: npmSpecs?.recordSpec ?? npmInstallSpec,

541564

installPath: result.targetDir,

542565

version: result.version,

543566

installedAt: new Date().toISOString(),

@@ -546,7 +569,7 @@ async function installCandidate(params: {

546569

},

547570

changes: [

548571

...changes,

549-

`Installed missing configured plugin "${pluginId}" from ${candidate.npmSpec}.`,

572+

`Installed missing configured plugin "${pluginId}" from ${npmInstallSpec}.`,

550573

],

551574

warnings: [],

552575

};

@@ -642,6 +665,10 @@ async function repairMissingPluginInstalls(params: {

642665

const changes: string[] = [];

643666

const warnings: string[] = [];

644667

const deferredPluginIds = new Set<string>();

668+

const updateChannel = resolveRegistryUpdateChannel({

669+

configChannel: normalizeUpdateChannel(params.cfg.update?.channel),

670+

currentVersion: VERSION,

671+

});

645672

let nextRecords = records;

646673647674

for (const [pluginId, record] of Object.entries(records)) {

@@ -700,7 +727,7 @@ async function repairMissingPluginInstalls(params: {

700727

},

701728

},

702729

pluginIds: missingRecordedPluginIds,

703-

updateChannel: params.cfg.update?.channel,

730+

updateChannel,

704731

logger: {

705732

warn: (message) => warnings.push(message),

706733

error: (message) => warnings.push(message),

@@ -754,7 +781,7 @@ async function repairMissingPluginInstalls(params: {

754781

if (hasUsableRecord) {

755782

continue;

756783

}

757-

const installed = await installCandidate({ candidate, records: nextRecords });

784+

const installed = await installCandidate({ candidate, records: nextRecords, updateChannel });

758785

nextRecords = installed.records;

759786

changes.push(...installed.changes);

760787

warnings.push(...installed.warnings);