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

推荐订阅源

I
InfoQ
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Apple Machine Learning Research
Apple Machine Learning Research
月光博客
月光博客
B
Blog
罗磊的独立博客
GbyAI
GbyAI
博客园 - 三生石上(FineUI控件)
雷峰网
雷峰网
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Microsoft Security Blog
Microsoft Security Blog
宝玉的分享
宝玉的分享
The GitHub Blog
The GitHub Blog
人人都是产品经理
人人都是产品经理
博客园 - Franky
有赞技术团队
有赞技术团队
WordPress大学
WordPress大学
博客园 - 聂微东
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
Visual Studio Blog
MyScale Blog
MyScale Blog
Google DeepMind News
Google DeepMind News
G
Google Developers Blog
aimingoo的专栏
aimingoo的专栏

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
test: align manifest hot path fixtures · openclaw/opencla...
shakkernerd · 2026-05-02 · via Recent Commits to openclaw:main

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

77

setCurrentPluginMetadataSnapshot,

88

} from "../plugins/current-plugin-metadata-snapshot.js";

99

import { resolveInstalledPluginIndexPolicyHash } from "../plugins/installed-plugin-index-policy.js";

10+

import type { InstalledPluginIndexRecord } from "../plugins/installed-plugin-index.js";

1011

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

1112

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

1213

import type { AuthProfileStore } from "./auth-profiles/types.js";

@@ -56,6 +57,39 @@ function createPlugin(params: {

5657

};

5758

}

585960+

function createInstalledPluginRecord(

61+

plugin: PluginManifestRecord,

62+

enabledPluginIds: string[],

63+

): InstalledPluginIndexRecord {

64+

const enabled = plugin.origin === "bundled" || enabledPluginIds.includes(plugin.id);

65+

return {

66+

pluginId: plugin.id,

67+

manifestPath: plugin.manifestPath,

68+

manifestHash: `test-${plugin.id}`,

69+

source: plugin.source,

70+

rootDir: plugin.rootDir,

71+

origin: plugin.origin,

72+

enabled,

73+

startup: {

74+

sidecar: false,

75+

memory: false,

76+

deferConfiguredChannelFullLoadUntilAfterListen: false,

77+

agentHarnesses: [],

78+

},

79+

compat: [],

80+

};

81+

}

82+83+

function legacyModelProviderConfig(provider: Record<string, unknown>): OpenClawConfig {

84+

return {

85+

models: {

86+

providers: {

87+

comfy: provider as never,

88+

},

89+

},

90+

};

91+

}

92+5993

function installSnapshot(

6094

config: OpenClawConfig,

6195

plugins: PluginManifestRecord[],

@@ -68,11 +102,15 @@ function installSnapshot(

68102

policyHash: resolveInstalledPluginIndexPolicyHash(config),

69103

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

70104

index: {

71-

plugins: plugins.map((plugin) => ({

72-

pluginId: plugin.id,

73-

origin: plugin.origin,

74-

enabled: plugin.origin === "bundled" || enabledPluginIds.includes(plugin.id),

75-

})),

105+

version: 1,

106+

hostContractVersion: "test",

107+

compatRegistryVersion: "test",

108+

migrationVersion: 1,

109+

policyHash: "test",

110+

generatedAtMs: 0,

111+

installRecords: {},

112+

plugins: plugins.map((plugin) => createInstalledPluginRecord(plugin, enabledPluginIds)),

113+

diagnostics: [],

76114

},

77115

registryDiagnostics: [],

78116

manifestRegistry: { plugins, diagnostics: [] },

@@ -530,16 +568,10 @@ describe("optional media tool factory planning", () => {

530568

it.each([

531569

{

532570

name: "legacy local provider config",

533-

config: {

534-

models: {

535-

providers: {

536-

comfy: {

537-

workflow: { "1": { inputs: {} } },

538-

promptNodeId: "1",

539-

},

540-

},

541-

},

542-

} satisfies OpenClawConfig,

571+

config: legacyModelProviderConfig({

572+

workflow: { "1": { inputs: {} } },

573+

promptNodeId: "1",

574+

}),

543575

},

544576

{

545577

name: "plugin cloud API key config",

@@ -560,18 +592,12 @@ describe("optional media tool factory planning", () => {

560592

},

561593

{

562594

name: "legacy cloud API key config",

563-

config: {

564-

models: {

565-

providers: {

566-

comfy: {

567-

mode: "cloud",

568-

apiKey: "cloud-key",

569-

workflow: { "1": { inputs: {} } },

570-

promptNodeId: "1",

571-

},

572-

},

573-

},

574-

} satisfies OpenClawConfig,

595+

config: legacyModelProviderConfig({

596+

mode: "cloud",

597+

apiKey: "cloud-key",

598+

workflow: { "1": { inputs: {} } },

599+

promptNodeId: "1",

600+

}),

575601

},

576602

])(

577603

"registers generation tools from Comfy $name without a current metadata snapshot",

@@ -596,6 +622,7 @@ describe("optional media tool factory planning", () => {

596622

providers: {

597623

openai: {

598624

baseUrl: "http://localhost:11434/v1",

625+

models: [],

599626

},

600627

},

601628

},