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

推荐订阅源

月光博客
月光博客
Martin Fowler
Martin Fowler
博客园_首页
量子位
T
Tailwind CSS Blog
博客园 - Franky
G
Google Developers Blog
D
DataBreaches.Net
Vercel News
Vercel News
B
Blog
Recent Announcements
Recent Announcements
S
SegmentFault 最新的问题
M
MIT News - Artificial intelligence
爱范儿
爱范儿
博客园 - 【当耐特】
The Cloudflare Blog
H
Help Net Security
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
C
Check Point Blog
有赞技术团队
有赞技术团队
Microsoft Security Blog
Microsoft Security Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

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(update): refresh config after package doctor · opencl...
steipete · 2026-05-15 · via Recent Commits to openclaw:main

@@ -2766,6 +2766,16 @@ describe("update-cli", () => {

27662766

runtimeConfig: migratedConfig,

27672767

valid: true,

27682768

hash: "migrated-hash",

2769+

})

2770+

.mockResolvedValue({

2771+

...baseSnapshot,

2772+

parsed: migratedConfig,

2773+

resolved: migratedConfig,

2774+

sourceConfig: migratedConfig,

2775+

config: migratedConfig,

2776+

runtimeConfig: migratedConfig,

2777+

valid: true,

2778+

hash: "migrated-hash",

27692779

});

27702780

legacyConfigRepairMocks.repairLegacyConfigForUpdateChannel.mockImplementationOnce(

27712781

async (params: { configSnapshot: ConfigFileSnapshot; jsonMode: boolean }) => {

@@ -2953,6 +2963,65 @@ describe("update-cli", () => {

29532963

expect(lastWrite?.nextConfig?.update?.channel).toBe("beta");

29542964

});

295529652966+

it("refreshes post-doctor config before post-update plugin sync", async () => {

2967+

const tempDir = createCaseDir("openclaw-update");

2968+

mockPackageInstallStatus(tempDir);

2969+

const preUpdateConfig = { update: { channel: "stable" } } as OpenClawConfig;

2970+

const postDoctorConfig = {

2971+

update: { channel: "stable" },

2972+

meta: { lastTouchedVersion: "2026.5.14" },

2973+

} as OpenClawConfig;

2974+

vi.mocked(readConfigFileSnapshot)

2975+

.mockResolvedValueOnce({

2976+

...baseSnapshot,

2977+

sourceConfig: preUpdateConfig,

2978+

config: preUpdateConfig,

2979+

hash: "pre-update-hash",

2980+

})

2981+

.mockResolvedValue({

2982+

...baseSnapshot,

2983+

sourceConfig: postDoctorConfig,

2984+

config: postDoctorConfig,

2985+

hash: "post-doctor-hash",

2986+

});

2987+

syncPluginsForUpdateChannel.mockImplementation(async ({ config }) => ({

2988+

changed: true,

2989+

config: {

2990+

...config,

2991+

plugins: {

2992+

...config.plugins,

2993+

load: { paths: ["/tmp/openclaw-updated-plugin"] },

2994+

},

2995+

},

2996+

summary: {

2997+

switchedToBundled: [],

2998+

switchedToNpm: [],

2999+

warnings: [],

3000+

errors: [],

3001+

},

3002+

}));

3003+

updateNpmInstalledPlugins.mockImplementation(async ({ config }) => ({

3004+

changed: false,

3005+

config,

3006+

outcomes: [],

3007+

}));

3008+3009+

await updateCommand({ yes: true });

3010+3011+

const syncConfig = syncPluginCall()?.config as

3012+

| (OpenClawConfig & { meta?: { lastTouchedVersion?: string } })

3013+

| undefined;

3014+

const lastWrite = lastReplaceConfigCall() as

3015+

| {

3016+

baseHash?: string;

3017+

nextConfig?: OpenClawConfig & { meta?: { lastTouchedVersion?: string } };

3018+

}

3019+

| undefined;

3020+

expect(syncConfig?.meta?.lastTouchedVersion).toBe("2026.5.14");

3021+

expect(lastWrite?.baseHash).toBe("post-doctor-hash");

3022+

expect(lastWrite?.nextConfig?.meta?.lastTouchedVersion).toBe("2026.5.14");

3023+

});

3024+29563025

it("uses source config and plugin index records for post-update plugin sync", async () => {

29573026

const tempDir = createCaseDir("openclaw-update");

29583027

mockPackageInstallStatus(tempDir);