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

推荐订阅源

B
Blog RSS Feed
J
Java Code Geeks
C
Check Point Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Google DeepMind News
Google DeepMind News
阮一峰的网络日志
阮一峰的网络日志
Engineering at Meta
Engineering at Meta
Blog — PlanetScale
Blog — PlanetScale
D
Docker
H
Hackread – Cybersecurity News, Data Breaches, AI and More
月光博客
月光博客
I
InfoQ
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
A
About on SuperTechFans
L
LangChain Blog
腾讯CDC
Y
Y Combinator Blog
MongoDB | Blog
MongoDB | Blog
Vercel News
Vercel News
MyScale Blog
MyScale Blog
博客园 - Franky
IT之家
IT之家
博客园_首页

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(ci): stabilize agentic drift checks (#87786) · opencl...
vincentkoc · 2026-05-29 · via Recent Commits to openclaw:main

@@ -62,7 +62,7 @@ function hashFile(filePath: string): string {

6262

return crypto.createHash("sha256").update(fs.readFileSync(filePath)).digest("hex");

6363

}

646465-

function createCandidate(rootDir: string): PluginCandidate {

65+

function createCandidate(rootDir: string, pluginId = "demo"): PluginCandidate {

6666

fs.writeFileSync(

6767

path.join(rootDir, "index.ts"),

6868

"throw new Error('runtime entry should not load while reading plugin registry');\n",

@@ -71,46 +71,46 @@ function createCandidate(rootDir: string): PluginCandidate {

7171

fs.writeFileSync(

7272

path.join(rootDir, "openclaw.plugin.json"),

7373

JSON.stringify({

74-

id: "demo",

75-

name: "Demo",

74+

id: pluginId,

75+

name: pluginId,

7676

configSchema: { type: "object" },

77-

providers: ["demo"],

78-

channels: ["demo-chat"],

79-

cliBackends: ["demo-cli"],

77+

providers: [pluginId],

78+

channels: [`${pluginId}-chat`],

79+

cliBackends: [`${pluginId}-cli`],

8080

setup: {

81-

providers: [{ id: "demo-setup", envVars: ["DEMO_API_KEY"] }],

82-

cliBackends: ["demo-setup-cli"],

81+

providers: [{ id: `${pluginId}-setup`, envVars: ["DEMO_API_KEY"] }],

82+

cliBackends: [`${pluginId}-setup-cli`],

8383

},

8484

channelConfigs: {

85-

"demo-chat": {

85+

[`${pluginId}-chat`]: {

8686

schema: { type: "object" },

8787

},

8888

},

8989

modelCatalog: {

9090

aliases: {

91-

"demo-alias": {

92-

provider: "demo",

91+

[`${pluginId}-alias`]: {

92+

provider: pluginId,

9393

},

9494

},

9595

providers: {

96-

demo: {

97-

models: [{ id: "demo-model" }],

96+

[pluginId]: {

97+

models: [{ id: `${pluginId}-model` }],

9898

},

9999

},

100100

},

101-

commandAliases: [{ name: "demo-command" }],

101+

commandAliases: [{ name: `${pluginId}-command` }],

102102

contracts: {

103-

tools: ["demo-tool"],

104-

webSearchProviders: ["demo-search"],

103+

tools: [`${pluginId}-tool`],

104+

webSearchProviders: [`${pluginId}-search`],

105105

},

106106

configContracts: {

107-

compatibilityRuntimePaths: ["tools.web.search.demo-search.apiKey"],

107+

compatibilityRuntimePaths: [`tools.web.search.${pluginId}-search.apiKey`],

108108

},

109109

}),

110110

"utf8",

111111

);

112112

return {

113-

idHint: "demo",

113+

idHint: pluginId,

114114

source: path.join(rootDir, "index.ts"),

115115

rootDir,

116116

origin: "global",

@@ -748,6 +748,30 @@ describe("plugin registry facade", () => {

748748

expect(manifestReadsAfterSecond).toBe(manifestReadsAfterFirst);

749749

});

750750751+

it("does not reuse the process registry memo after profile extensions change", () => {

752+

const stateDir = makeTempDir();

753+

const configDir = makeTempDir();

754+

const extensionsDir = path.join(configDir, "extensions");

755+

const firstRoot = path.join(extensionsDir, "first");

756+

fs.mkdirSync(firstRoot, { recursive: true });

757+

createCandidate(firstRoot, "first");

758+

const env = hermeticEnv({

759+

OPENCLAW_CONFIG_PATH: path.join(configDir, "openclaw.json"),

760+

OPENCLAW_DISABLE_BUNDLED_PLUGINS: "1",

761+

});

762+763+

const first = loadPluginRegistrySnapshotWithMetadata({ stateDir, env });

764+

const secondRoot = path.join(extensionsDir, "second");

765+

fs.mkdirSync(secondRoot, { recursive: true });

766+

createCandidate(secondRoot, "second");

767+

const second = loadPluginRegistrySnapshotWithMetadata({ stateDir, env });

768+769+

expect(first.source).toBe("derived");

770+

expect(second.source).toBe("derived");

771+

expectSnapshotPluginIds(first.snapshot, ["first"]);

772+

expectSnapshotPluginIds(second.snapshot, ["first", "second"]);

773+

});

774+751775

it("keys the process registry memo by resolved host contract version", () => {

752776

const stateDir = makeTempDir();

753777

const bundledRoot = makeTempDir();