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

推荐订阅源

The GitHub Blog
The GitHub Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Microsoft Security Blog
Microsoft Security Blog
J
Java Code Geeks
S
SegmentFault 最新的问题
Apple Machine Learning Research
Apple Machine Learning Research
N
Netflix TechBlog - Medium
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园_首页
宝玉的分享
宝玉的分享
Google DeepMind News
Google DeepMind News
B
Blog RSS Feed
Hugging Face - Blog
Hugging Face - Blog
量子位
Blog — PlanetScale
Blog — PlanetScale
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
阮一峰的网络日志
阮一峰的网络日志
D
Docker
罗磊的独立博客
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
云风的 BLOG
云风的 BLOG
IT之家
IT之家
MyScale Blog
MyScale Blog
Microsoft Azure Blog
Microsoft Azure Blog

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: tighten migrate skill selection assertions · opencl...
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -268,7 +268,8 @@ describe("migrateApplyCommand", () => {

268268

expect(mocks.provider.plan).toHaveBeenCalledTimes(1);

269269

expect(mocks.promptYesNo).toHaveBeenCalledWith("Apply this migration now?", false);

270270

expect(mocks.backupCreateCommand).toHaveBeenCalled();

271-

expect(mocks.provider.apply).toHaveBeenCalledWith(expect.any(Object), planned);

271+

expect(typeof mocks.provider.apply.mock.calls[0]?.[0]).toBe("object");

272+

expect(mocks.provider.apply.mock.calls[0]?.[1]).toBe(planned);

272273

});

273274274275

it("prompts for Codex skills before interactive default apply", async () => {

@@ -290,43 +291,34 @@ describe("migrateApplyCommand", () => {

290291291292

await migrateDefaultCommand(runtime, { provider: "codex" });

292293293-

expect(mocks.multiselect).toHaveBeenCalledWith(

294-

expect.objectContaining({

295-

message: expect.stringContaining("Select Codex skills"),

296-

initialValues: ["skill:alpha", "skill:beta"],

297-

required: false,

298-

options: [

299-

expect.objectContaining({

300-

value: MIGRATION_SKILL_SELECTION_SKIP,

301-

label: "Skip for now",

302-

}),

303-

expect.objectContaining({

304-

value: MIGRATION_SKILL_SELECTION_TOGGLE_ALL_ON,

305-

label: "Toggle all on",

306-

}),

307-

expect.objectContaining({

308-

value: MIGRATION_SKILL_SELECTION_TOGGLE_ALL_OFF,

309-

label: "Toggle all off",

310-

}),

311-

expect.objectContaining({ value: "skill:alpha", label: "alpha" }),

312-

expect.objectContaining({ value: "skill:beta", label: "beta" }),

313-

],

314-

}),

315-

);

294+

const selectionPrompt = mocks.multiselect.mock.calls[0]?.[0] as

295+

| {

296+

initialValues?: unknown;

297+

message?: unknown;

298+

options?: Array<{ label?: unknown; value?: unknown }>;

299+

required?: unknown;

300+

}

301+

| undefined;

302+

expect(String(selectionPrompt?.message)).toContain("Select Codex skills");

303+

expect(selectionPrompt?.initialValues).toStrictEqual(["skill:alpha", "skill:beta"]);

304+

expect(selectionPrompt?.required).toBe(false);

305+

expect(selectionPrompt?.options?.map(({ label, value }) => ({ label, value }))).toStrictEqual([

306+

{ value: MIGRATION_SKILL_SELECTION_SKIP, label: "Skip for now" },

307+

{ value: MIGRATION_SKILL_SELECTION_TOGGLE_ALL_ON, label: "Toggle all on" },

308+

{ value: MIGRATION_SKILL_SELECTION_TOGGLE_ALL_OFF, label: "Toggle all off" },

309+

{ value: "skill:alpha", label: "alpha" },

310+

{ value: "skill:beta", label: "beta" },

311+

]);

316312

expect(mocks.promptYesNo).toHaveBeenCalledWith("Apply this migration now?", false);

317313

const appliedPlan = mocks.provider.apply.mock.calls[0]?.[1] as MigrationPlan;

318-

expect(appliedPlan.summary).toMatchObject({ planned: 2, skipped: 1, conflicts: 0 });

319-

expect(appliedPlan.items).toEqual(

320-

expect.arrayContaining([

321-

expect.objectContaining({ id: "skill:alpha", status: "planned" }),

322-

expect.objectContaining({

323-

id: "skill:beta",

324-

status: "skipped",

325-

reason: "not selected for migration",

326-

}),

327-

expect.objectContaining({ id: "archive:config.toml", status: "planned" }),

328-

]),

329-

);

314+

expect(appliedPlan.summary.planned).toBe(2);

315+

expect(appliedPlan.summary.skipped).toBe(1);

316+

expect(appliedPlan.summary.conflicts).toBe(0);

317+

const itemsById = new Map(appliedPlan.items.map((item) => [item.id, item]));

318+

expect(itemsById.get("skill:alpha")?.status).toBe("planned");

319+

expect(itemsById.get("skill:beta")?.status).toBe("skipped");

320+

expect(itemsById.get("skill:beta")?.reason).toBe("not selected for migration");

321+

expect(itemsById.get("archive:config.toml")?.status).toBe("planned");

330322

});

331323332324

it("prompts for native Codex plugins after interactive skill selection", async () => {