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

推荐订阅源

人人都是产品经理
人人都是产品经理
博客园_首页
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
小众软件
小众软件
T
Tailwind CSS Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
月光博客
月光博客
有赞技术团队
有赞技术团队
WordPress大学
WordPress大学
博客园 - 【当耐特】
Apple Machine Learning Research
Apple Machine Learning Research
罗磊的独立博客
V
V2EX
酷 壳 – CoolShell
酷 壳 – CoolShell
IT之家
IT之家
量子位
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Recent Announcements
Recent Announcements
M
MIT News - Artificial intelligence
阮一峰的网络日志
阮一峰的网络日志
The GitHub Blog
The GitHub 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
fix(doctor): repair legacy Codex route persistence (#9447...
TurboTheTurt · 2026-06-20 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -663,6 +663,74 @@ describe("doctor repair sequencing", () => {

663663

]);

664664

});

665665
666+

it("repairs #94184 stale Codex model-map refs before missing plugin install repair", async () => {

667+

mocks.repairMissingConfiguredPluginInstalls.mockImplementationOnce(

668+

async (params: { cfg: OpenClawConfig }) => {

669+

expect(params.cfg.plugins?.entries?.codex?.enabled).toBe(true);

670+

expect(params.cfg.agents?.defaults?.model).toBe("openai/gpt-5.5");

671+

expect(params.cfg.agents?.defaults?.models?.["openai/gpt-5.5"]?.agentRuntime).toEqual({

672+

id: "codex",

673+

});

674+

expect(params.cfg.agents?.defaults?.models?.["openai-codex/gpt-5.5"]).toBeUndefined();

675+

return {

676+

changes: [],

677+

warnings: [],

678+

};

679+

},

680+

);

681+
682+

const staleUpgradeConfig = {

683+

plugins: {

684+

allow: ["openai"],

685+

entries: {

686+

codex: { enabled: true },

687+

},

688+

},

689+

agents: {

690+

defaults: {

691+

model: "openai-codex/gpt-5.5",

692+

models: {

693+

"openai-codex/gpt-5.5": {

694+

params: { reasoning_effort: "high" },

695+

},

696+

},

697+

},

698+

},

699+

} as OpenClawConfig;

700+
701+

const result = await runDoctorRepairSequence({

702+

state: {

703+

cfg: staleUpgradeConfig,

704+

candidate: staleUpgradeConfig,

705+

pendingChanges: false,

706+

fixHints: [],

707+

},

708+

doctorFixCommand: "openclaw doctor --fix",

709+

env: {},

710+

});

711+
712+

expect(result.state.pendingChanges).toBe(true);

713+

expect(result.state.candidate.plugins?.allow).toEqual(["openai", "codex"]);

714+

expect(result.state.candidate.plugins?.entries?.codex?.enabled).toBe(true);

715+

expect(result.state.candidate.agents?.defaults?.model).toBe("openai/gpt-5.5");

716+

expect(

717+

result.state.candidate.agents?.defaults?.models?.["openai-codex/gpt-5.5"],

718+

).toBeUndefined();

719+

expect(result.state.candidate.agents?.defaults?.models?.["openai/gpt-5.5"]).toMatchObject({

720+

params: { reasoning_effort: "high" },

721+

agentRuntime: { id: "codex" },

722+

});

723+

const changeNotes = result.changeNotes.join("\n");

724+

expect(changeNotes).toContain("agents.defaults.model: openai-codex/gpt-5.5 -> openai/gpt-5.5");

725+

expect(changeNotes).toContain(

726+

"agents.defaults.models.openai-codex/gpt-5.5: openai-codex/gpt-5.5 -> openai/gpt-5.5",

727+

);

728+

expect(changeNotes).toContain(

729+

'Set agents.defaults.models.openai/gpt-5.5.agentRuntime.id to "codex"',

730+

);

731+

expect(changeNotes).toContain("Added codex to plugins.allow");

732+

});

733+
666734

it("runs group allowFrom fallback migration after open-policy allowFrom repair", async () => {

667735

const events: string[] = [];

668736

mocks.maybeRepairOpenPolicyAllowFrom.mockImplementationOnce((cfg: OpenClawConfig) => {

Original file line numberDiff line numberDiff line change

@@ -170,6 +170,45 @@ describe("config io write prepare", () => {

170170

});

171171

});

172172
173+

it("does not reintroduce legacy openai-codex model params after doctor route repair", () => {

174+

const sourceConfig: OpenClawConfig = {

175+

agents: {

176+

defaults: {

177+

model: "openai-codex/gpt-5.5",

178+

models: {

179+

"openai-codex/gpt-5.5": {

180+

params: { reasoning_effort: "high" },

181+

},

182+

},

183+

},

184+

},

185+

};

186+

const persisted = resolvePersistCandidateForWrite({

187+

runtimeConfig: sourceConfig,

188+

sourceConfig,

189+

nextConfig: {

190+

agents: {

191+

defaults: {

192+

model: "openai/gpt-5.5",

193+

models: {

194+

"openai/gpt-5.5": {

195+

params: { reasoning_effort: "high" },

196+

agentRuntime: { id: "codex" },

197+

},

198+

},

199+

},

200+

},

201+

},

202+

}) as OpenClawConfig;

203+
204+

expect(persisted.agents?.defaults?.model).toBe("openai/gpt-5.5");

205+

expect(persisted.agents?.defaults?.models).not.toHaveProperty("openai-codex/gpt-5.5");

206+

expect(persisted.agents?.defaults?.models?.["openai/gpt-5.5"]).toEqual({

207+

params: { reasoning_effort: "high" },

208+

agentRuntime: { id: "codex" },

209+

});

210+

});

211+
173212

it("normalizes retired Google model refs during unrelated config writes", () => {

174213

const sourceConfig: OpenClawConfig = {

175214

agents: {

Original file line numberDiff line numberDiff line change

@@ -1,11 +1,11 @@

11

// Prepares config writes by diffing current state and preserving metadata.

22

import { isDeepStrictEqual } from "node:util";

33

import { normalizeConfiguredProviderCatalogModelId } from "@openclaw/model-catalog-core/provider-model-id-normalization";

4+

import { isBlockedObjectKey } from "../infra/prototype-keys.js";

45

import { parseConfigPathArrayIndex } from "../shared/path-array-index.js";

56

import { isRecord } from "../utils.js";

67

import { applyMergePatch } from "./merge-patch.js";

78

import { normalizeAgentModelMapForConfig, normalizeAgentModelRefForConfig } from "./model-input.js";

8-

import { isBlockedObjectKey } from "../infra/prototype-keys.js";

99

import type { OpenClawConfig } from "./types.js";

1010
1111

const OPEN_DM_POLICY_ALLOW_FROM_RE =

@@ -370,6 +370,7 @@ function preserveAuthoredAgentParams(params: {

370370

if (!isRecord(models)) {

371371

return next;

372372

}

373+

const nextModels = getPathValue(params.nextConfig, ["agents", "defaults", "models"]);

373374

for (const [modelId, modelEntry] of Object.entries(models)) {

374375

if (!isRecord(modelEntry) || !Object.hasOwn(modelEntry, "params")) {

375376

continue;

@@ -380,6 +381,14 @@ function preserveAuthoredAgentParams(params: {

380381

"models",

381382

normalizeAgentModelRefForConfig(modelId) || modelId,

382383

];

384+

const normalizedModelId = modelPath.at(-1);

385+

if (

386+

isRecord(nextModels) &&

387+

normalizedModelId &&

388+

!Object.hasOwn(nextModels, normalizedModelId)

389+

) {

390+

continue;

391+

}

383392

const paramsPath = [...modelPath, "params"];

384393

if (modelPath.at(-1) !== modelId) {

385394

next = deletePathValue(next, ["agents", "defaults", "models", modelId]);