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

推荐订阅源

博客园_首页
C
Check Point Blog
B
Blog RSS Feed
G
Google Developers Blog
H
Help Net Security
博客园 - Franky
Blog — PlanetScale
Blog — PlanetScale
H
Hackread – Cybersecurity News, Data Breaches, AI and More
量子位
Recent Announcements
Recent Announcements
B
Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
DataBreaches.Net
小众软件
小众软件
T
The Blog of Author Tim Ferriss
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
MongoDB | Blog
MongoDB | Blog
Y
Y Combinator Blog
T
Tailwind CSS Blog
J
Java Code Geeks
MyScale Blog
MyScale 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(cron): route CLI-runtime cron models through compatib...
clawsweeper · 2026-05-03 · via Recent Commits to openclaw:main

@@ -65,6 +65,7 @@ type SelectModelOptions = {

6565

providerOverride?: string;

6666

};

6767

isGmailHook?: boolean;

68+

agentId?: string;

6869

};

69707071

function parseModelRef(raw: string): { provider: string; model: string } | { error: string } {

@@ -126,6 +127,7 @@ async function selectModel(options: SelectModelOptions = {}) {

126127

sessionEntry: options.sessionEntry ?? {},

127128

payload: options.payload ?? defaultPayload(),

128129

isGmailHook: options.isGmailHook ?? false,

130+

agentId: options.agentId,

129131

});

130132

}

131133

@@ -401,6 +403,94 @@ describe("cron model formatting and precedence edge cases", () => {

401403

});

402404

});

403405406+

describe("CLI runtime compatibility", () => {

407+

it("keeps the canonical Anthropic provider when a per-agent Claude CLI runtime is configured", async () => {

408+

await expectSelectedModel(

409+

{

410+

cfg: {

411+

agents: {

412+

defaults: {

413+

model: "anthropic/claude-opus-4-6",

414+

},

415+

list: [

416+

{

417+

id: "scheduler",

418+

agentRuntime: { id: "claude-cli" },

419+

},

420+

],

421+

},

422+

},

423+

agentId: "scheduler",

424+

},

425+

{ provider: "anthropic", model: "claude-opus-4-6" },

426+

);

427+

});

428+429+

it("keeps an OpenAI payload override on OpenAI when per-agent Claude CLI is configured", async () => {

430+

await expectSelectedModel(

431+

{

432+

cfg: {

433+

agents: {

434+

defaults: {

435+

model: "anthropic/claude-opus-4-6",

436+

},

437+

list: [

438+

{

439+

id: "scheduler",

440+

agentRuntime: { id: "claude-cli" },

441+

},

442+

],

443+

},

444+

},

445+

agentId: "scheduler",

446+

payload: {

447+

kind: "agentTurn",

448+

message: DEFAULT_MESSAGE,

449+

model: "openai/gpt-4.1-mini",

450+

},

451+

},

452+

{ provider: "openai", model: "gpt-4.1-mini" },

453+

);

454+

});

455+456+

it("keeps the canonical Anthropic provider when a default Claude CLI runtime is configured", async () => {

457+

await expectSelectedModel(

458+

{

459+

cfg: {

460+

agents: {

461+

defaults: {

462+

model: "anthropic/claude-opus-4-6",

463+

agentRuntime: { id: "claude-cli" },

464+

},

465+

},

466+

},

467+

},

468+

{ provider: "anthropic", model: "claude-opus-4-6" },

469+

);

470+

});

471+472+

it("keeps an OpenAI payload override on OpenAI when default Claude CLI is configured", async () => {

473+

await expectSelectedModel(

474+

{

475+

cfg: {

476+

agents: {

477+

defaults: {

478+

model: "anthropic/claude-opus-4-6",

479+

agentRuntime: { id: "claude-cli" },

480+

},

481+

},

482+

},

483+

payload: {

484+

kind: "agentTurn",

485+

message: DEFAULT_MESSAGE,

486+

model: "openai/gpt-4.1-mini",

487+

},

488+

},

489+

{ provider: "openai", model: "gpt-4.1-mini" },

490+

);

491+

});

492+

});

493+404494

describe("stored session overrides", () => {

405495

it("stored modelOverride/providerOverride are applied", async () => {

406496

await expectSelectedModel(