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

推荐订阅源

量子位
雷峰网
雷峰网
博客园 - 三生石上(FineUI控件)
月光博客
月光博客
有赞技术团队
有赞技术团队
阮一峰的网络日志
阮一峰的网络日志
Last Week in AI
Last Week in AI
G
Google Developers Blog
腾讯CDC
B
Blog
Microsoft Azure Blog
Microsoft Azure Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Microsoft Security Blog
Microsoft Security Blog
人人都是产品经理
人人都是产品经理
博客园_首页
T
Tailwind CSS Blog
C
Check Point Blog
博客园 - 【当耐特】
MongoDB | Blog
MongoDB | Blog
A
About on SuperTechFans
Y
Y Combinator Blog
L
LangChain Blog
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI

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(agents): avoid false Codex runtime live switches · op...
Marvinthebor · 2026-05-27 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -361,6 +361,70 @@ describe("live model switch", () => {

361361

expect(state.piEmbeddedModuleImported).toBe(false);

362362

});

363363
364+

it("treats active openai-codex as an already-applied openai runtime promotion", async () => {

365+

const { hasDifferentLiveSessionModelSelection } = await loadModule();

366+
367+

expect(

368+

hasDifferentLiveSessionModelSelection(

369+

{

370+

provider: "openai-codex",

371+

model: "gpt-5.5",

372+

},

373+

{

374+

provider: "openai",

375+

model: "gpt-5.5",

376+

},

377+

),

378+

).toBe(false);

379+

});

380+
381+

it("does not suppress explicit runtime provider switches with the same model", async () => {

382+

const { hasDifferentLiveSessionModelSelection } = await loadModule();

383+
384+

expect(

385+

hasDifferentLiveSessionModelSelection(

386+

{

387+

provider: "openai",

388+

model: "gpt-5.5",

389+

},

390+

{

391+

provider: "openai-codex",

392+

model: "gpt-5.5",

393+

},

394+

),

395+

).toBe(true);

396+
397+

expect(

398+

hasDifferentLiveSessionModelSelection(

399+

{

400+

provider: "anthropic",

401+

model: "claude-sonnet-4-6",

402+

},

403+

{

404+

provider: "claude-cli",

405+

model: "claude-sonnet-4-6",

406+

},

407+

),

408+

).toBe(true);

409+

});

410+
411+

it("does not suppress switch when model actually differs across runtime alias", async () => {

412+

const { hasDifferentLiveSessionModelSelection } = await loadModule();

413+
414+

expect(

415+

hasDifferentLiveSessionModelSelection(

416+

{

417+

provider: "openai-codex",

418+

model: "gpt-5.5",

419+

},

420+

{

421+

provider: "openai",

422+

model: "gpt-5.4",

423+

},

424+

),

425+

).toBe(true);

426+

});

427+
364428

it("treats auth-profile-source changes as no-op when no auth profile is selected", async () => {

365429

const { hasDifferentLiveSessionModelSelection } = await loadModule();

366430

@@ -485,6 +549,28 @@ describe("live model switch", () => {

485549
486550

expect(result).toBeUndefined();

487551

});

552+
553+

it("does not trigger switch when runtime promotes openai to openai-codex", async () => {

554+

const sessionEntry = {

555+

liveModelSwitchPending: true,

556+

providerOverride: "openai",

557+

modelOverride: "gpt-5.5",

558+

};

559+

state.loadSessionStoreMock.mockReturnValue({ main: sessionEntry });

560+
561+

const { shouldSwitchToLiveModel } = await loadModule();

562+
563+

const result = shouldSwitchToLiveModel(

564+

makeShouldSwitchParams({

565+

currentProvider: "openai-codex",

566+

currentModel: "gpt-5.5",

567+

defaultProvider: "openai",

568+

defaultModel: "gpt-5.5",

569+

}),

570+

);

571+
572+

expect(result).toBeUndefined();

573+

});

488574

});

489575
490576

describe("clearLiveModelSwitchPending", () => {