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

推荐订阅源

J
Java Code Geeks
月光博客
月光博客
D
DataBreaches.Net
云风的 BLOG
云风的 BLOG
F
Fortinet All Blogs
T
The Blog of Author Tim Ferriss
Stack Overflow Blog
Stack Overflow Blog
Blog — PlanetScale
Blog — PlanetScale
aimingoo的专栏
aimingoo的专栏
U
Unit 42
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
MyScale Blog
MyScale Blog
T
Tailwind CSS Blog
N
Netflix TechBlog - Medium
B
Blog
博客园_首页
G
Google Developers Blog
Recent Announcements
Recent Announcements
博客园 - 【当耐特】
P
Proofpoint News Feed
博客园 - 司徒正美
Hugging Face - Blog
Hugging Face - Blog
MongoDB | Blog
MongoDB | Blog
Last Week in AI
Last Week in AI

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(doctor): commit legacy migrations even when unrelated...
hclsys · 2026-05-04 · via Recent Commits to openclaw:main

@@ -1219,6 +1219,69 @@ describe("config io write", () => {

12191219

});

12201220

});

122112211222+

it("skipPluginValidation bypasses plugin schema rejection on writeConfigFile (#76800)", async () => {

1223+

await withSuiteHome(async (home) => {

1224+

const configPath = path.join(home, ".openclaw", "openclaw.json");

1225+

const previousConfigPath = process.env.OPENCLAW_CONFIG_PATH;

1226+

process.env.OPENCLAW_CONFIG_PATH = configPath;

1227+

await fs.mkdir(path.dirname(configPath), { recursive: true });

1228+

await fs.writeFile(configPath, "{}\n", "utf-8");

1229+

mockLoadPluginManifestRegistry.mockReturnValue({

1230+

diagnostics: [],

1231+

plugins: [

1232+

{

1233+

id: "strict-plugin",

1234+

origin: "bundled",

1235+

channels: [],

1236+

providers: [],

1237+

cliBackends: [],

1238+

skills: [],

1239+

hooks: [],

1240+

rootDir: "/tmp/openclaw-test-strict-plugin",

1241+

source: "/tmp/openclaw-test-strict-plugin/index.ts",

1242+

manifestPath: "/tmp/openclaw-test-strict-plugin/openclaw.plugin.json",

1243+

configSchema: {

1244+

type: "object",

1245+

properties: { token: { type: "string" } },

1246+

required: ["token"],

1247+

additionalProperties: false,

1248+

},

1249+

},

1250+

],

1251+

} satisfies PluginManifestRegistry);

1252+1253+

try {

1254+

// Plugin is enabled but missing required "token" — validation fails without skip.

1255+

const cfg: OpenClawConfig = {

1256+

agents: { list: [{ id: "main", default: true }] },

1257+

plugins: { entries: { "strict-plugin": { enabled: true } } },

1258+

};

1259+1260+

await expect(writeConfigFile(cfg, { skipPluginValidation: true })).resolves.not.toThrow();

1261+

await expect(fs.readFile(configPath, "utf-8")).resolves.toContain('"strict-plugin"');

1262+1263+

await expect(writeConfigFile(cfg, { skipPluginValidation: false })).rejects.toThrow(

1264+

/Config validation failed/,

1265+

);

1266+

await expect(

1267+

writeConfigFile({ agents: { list: "not-array" } } as unknown as OpenClawConfig, {

1268+

skipPluginValidation: true,

1269+

}),

1270+

).rejects.toThrow(/Config validation failed/);

1271+

} finally {

1272+

mockLoadPluginManifestRegistry.mockReturnValue({

1273+

diagnostics: [],

1274+

plugins: [],

1275+

} satisfies PluginManifestRegistry);

1276+

if (previousConfigPath === undefined) {

1277+

delete process.env.OPENCLAW_CONFIG_PATH;

1278+

} else {

1279+

process.env.OPENCLAW_CONFIG_PATH = previousConfigPath;

1280+

}

1281+

}

1282+

});

1283+

});

1284+12221285

it("preserves authored tilde paths when runtime-shaped writes hand back absolute paths", async () => {

12231286

await withSuiteHome(async (home) => {

12241287

const configPath = path.join(home, ".openclaw", "openclaw.json");