fix: satisfy cron model selection checks · openclaw/openclaw@70eabd3
shakkernerd
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -232,7 +232,7 @@ describe("cron model formatting and precedence edge cases", () => {
|
232 | 232 | ).resolves.toEqual({ |
233 | 233 | ok: false, |
234 | 234 | error: |
235 | | -"cron payload.model 'anthropic/claude-sonnet-4-6' rejected by agents.defaults.models allowlist: anthropic/claude-sonnet-4-6", |
| 235 | +"cron payload.model 'anthropic/claude-sonnet-4-6' rejected by agents.defaults.models allowlist: anthropic/claude-sonnet-4-6 is not in [(none configured)]", |
236 | 236 | }); |
237 | 237 | }); |
238 | 238 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -45,7 +45,7 @@ export type ResolveCronModelSelectionResult =
|
45 | 45 | function formatAllowedModelRefs(params: { cfg: OpenClawConfig }): string { |
46 | 46 | const configured = params.cfg.agents?.defaults?.models; |
47 | 47 | if (configured && typeof configured === "object" && Object.keys(configured).length > 0) { |
48 | | -return Object.keys(configured).sort().join(", "); |
| 48 | +return Object.keys(configured).toSorted().join(", "); |
49 | 49 | } |
50 | 50 | return "(none configured)"; |
51 | 51 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。