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

推荐订阅源

G
Google Developers Blog
宝玉的分享
宝玉的分享
月光博客
月光博客
B
Blog
云风的 BLOG
云风的 BLOG
Google DeepMind News
Google DeepMind News
Engineering at Meta
Engineering at Meta
aimingoo的专栏
aimingoo的专栏
N
Netflix TechBlog - Medium
博客园_首页
GbyAI
GbyAI
人人都是产品经理
人人都是产品经理
A
About on SuperTechFans
Y
Y Combinator Blog
L
LangChain Blog
有赞技术团队
有赞技术团队
D
Docker
爱范儿
爱范儿
博客园 - 司徒正美
H
Hackread – Cybersecurity News, Data Breaches, AI and More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
酷 壳 – CoolShell
酷 壳 – CoolShell
Microsoft Security Blog
Microsoft Security Blog
D
DataBreaches.Net

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
Preserve authored config metadata in doctor (#82687) · op...
giodl73-repo · 2026-05-17 · via Recent Commits to openclaw:main

@@ -239,6 +239,12 @@ export type ConfigWriteOptions = {

239239

* Omitted means the observer should use its normal reload plan.

240240

*/

241241

afterWrite?: ConfigWriteAfterWrite;

242+

/**

243+

* Legacy root keys to preserve on disk while excluding them from write validation.

244+

* This is for doctor repair of historical config metadata that should not become

245+

* part of the public schema contract again.

246+

*/

247+

preservedLegacyRootKeys?: readonly string[];

242248

/**

243249

* Skip plugin-aware validation before writing. Use only for safe partial

244250

* migrations (e.g. legacy key removal) where the base schema is valid but

@@ -1229,7 +1235,10 @@ async function collectInvalidConfigLegacyIssues(

12291235

}

1230123612311237

export function createConfigIO(

1232-

overrides: ConfigIoDeps & { pluginValidation?: "full" | "skip" } = {},

1238+

overrides: ConfigIoDeps & {

1239+

pluginValidation?: "full" | "skip";

1240+

preservedLegacyRootKeys?: readonly string[];

1241+

} = {},

12331242

) {

12341243

const deps = normalizeDeps(overrides);

12351244

const configPath = resolveConfigPathForDeps(deps);

@@ -1580,6 +1589,7 @@ export function createConfigIO(

15801589

pluginValidation: overrides.pluginValidation,

15811590

loadPluginMetadataSnapshot: loadValidationPluginMetadataSnapshot,

15821591

sourceRaw: snapshotParsed,

1592+

preservedLegacyRootKeys: overrides.preservedLegacyRootKeys,

15831593

});

15841594

if (!validated.ok) {

15851595

observeLoadConfigSnapshot({

@@ -1799,6 +1809,7 @@ export function createConfigIO(

17991809

pluginValidation: overrides.pluginValidation,

18001810

loadPluginMetadataSnapshot: loadValidationPluginMetadataSnapshot,

18011811

sourceRaw: effectiveParsed,

1812+

preservedLegacyRootKeys: overrides.preservedLegacyRootKeys,

18021813

}),

18031814

);

18041815

if (!validated.ok) {

@@ -2043,6 +2054,7 @@ export function createConfigIO(

20432054

const validated = validateConfigObjectRawWithPlugins(persistCandidate, {

20442055

env: deps.env,

20452056

pluginValidation: options.skipPluginValidation ? "skip" : "full",

2057+

preservedLegacyRootKeys: options.preservedLegacyRootKeys,

20462058

});

20472059

if (!validated.ok) {

20482060

const issue = validated.issues[0];

@@ -2373,10 +2385,14 @@ export async function readSourceConfigBestEffort(): Promise<OpenClawConfig> {

23732385

export async function readConfigFileSnapshot(options?: {

23742386

measure?: ConfigSnapshotReadMeasure;

23752387

skipPluginValidation?: boolean;

2388+

preservedLegacyRootKeys?: readonly string[];

23762389

}): Promise<ConfigFileSnapshot> {

23772390

return await createConfigIO({

23782391

...(options?.measure ? { measure: options.measure } : {}),

23792392

...(options?.skipPluginValidation ? { pluginValidation: "skip" } : {}),

2393+

...(options?.preservedLegacyRootKeys

2394+

? { preservedLegacyRootKeys: options.preservedLegacyRootKeys }

2395+

: {}),

23802396

}).readConfigFileSnapshot();

23812397

}

23822398

@@ -2427,7 +2443,12 @@ export async function writeConfigFile(

24272443

cfg: OpenClawConfig,

24282444

options: ConfigWriteOptions = {},

24292445

): Promise<ConfigWriteResult> {

2430-

const io = createConfigIO(options.skipPluginValidation ? { pluginValidation: "skip" } : {});

2446+

const io = createConfigIO({

2447+

...(options.skipPluginValidation ? { pluginValidation: "skip" as const } : {}),

2448+

...(options.preservedLegacyRootKeys

2449+

? { preservedLegacyRootKeys: options.preservedLegacyRootKeys }

2450+

: {}),

2451+

});

24312452

assertConfigWriteAllowedInCurrentMode({ configPath: io.configPath });

24322453

let nextCfg = cfg;

24332454

const runtimeConfigSnapshot = getRuntimeConfigSnapshotState();

@@ -2456,6 +2477,7 @@ export async function writeConfigFile(

24562477

skipRuntimeSnapshotRefresh: options.skipRuntimeSnapshotRefresh,

24572478

skipOutputLogs: options.skipOutputLogs,

24582479

skipPluginValidation: options.skipPluginValidation,

2480+

preservedLegacyRootKeys: options.preservedLegacyRootKeys,

24592481

});

24602482

if (

24612483

options.skipRuntimeSnapshotRefresh &&