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

推荐订阅源

WordPress大学
WordPress大学
Jina AI
Jina AI
小众软件
小众软件
GbyAI
GbyAI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 【当耐特】
D
DataBreaches.Net
腾讯CDC
V
Visual Studio Blog
博客园 - 叶小钗
B
Blog
Apple Machine Learning Research
Apple Machine Learning Research
T
The Blog of Author Tim Ferriss
S
SegmentFault 最新的问题
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
博客园 - 三生石上(FineUI控件)
云风的 BLOG
云风的 BLOG
The Cloudflare Blog
MongoDB | Blog
MongoDB | Blog
有赞技术团队
有赞技术团队
U
Unit 42
博客园 - 司徒正美
博客园 - 聂微东

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): scope timeout cooldowns by model · openclaw/...
openperf · 2026-05-31 · via Recent Commits to openclaw:main

@@ -212,6 +212,43 @@ describe("isProfileInCooldown", () => {

212212

expect(isProfileInCooldown(store, "github-copilot:github", undefined, "gpt-4.1")).toBe(true);

213213

});

214214215+

it("returns false for a different model when cooldown is model-scoped (timeout) — #87462", () => {

216+

const store = makeStore({

217+

"google:default": {

218+

cooldownUntil: Date.now() + 60_000,

219+

cooldownReason: "timeout",

220+

cooldownModel: "gemini-3-flash-preview",

221+

},

222+

});

223+

// Other Google fallback models bypass the cooldown

224+

expect(isProfileInCooldown(store, "google:default", undefined, "gemini-3.1-flash-lite")).toBe(

225+

false,

226+

);

227+

expect(isProfileInCooldown(store, "google:default", undefined, "gemini-2.5-flash")).toBe(false);

228+

// Same model stays blocked

229+

expect(isProfileInCooldown(store, "google:default", undefined, "gemini-3-flash-preview")).toBe(

230+

true,

231+

);

232+

// No model specified — blocked (conservative)

233+

expect(isProfileInCooldown(store, "google:default")).toBe(true);

234+

});

235+236+

it("returns true for all models when timeout cooldownModel is undefined (legacy widened scope)", () => {

237+

const store = makeStore({

238+

"google:default": {

239+

cooldownUntil: Date.now() + 60_000,

240+

cooldownReason: "timeout",

241+

cooldownModel: undefined,

242+

},

243+

});

244+

expect(isProfileInCooldown(store, "google:default", undefined, "gemini-3-flash-preview")).toBe(

245+

true,

246+

);

247+

expect(isProfileInCooldown(store, "google:default", undefined, "gemini-3.1-flash-lite")).toBe(

248+

true,

249+

);

250+

});

251+215252

it("does not bypass model-scoped cooldown when disabledUntil is active", () => {

216253

const store = makeStore({

217254

"github-copilot:github": {

@@ -226,6 +263,20 @@ describe("isProfileInCooldown", () => {

226263

// should keep the profile blocked for all models.

227264

expect(isProfileInCooldown(store, "github-copilot:github", undefined, "gpt-4.1")).toBe(true);

228265

});

266+267+

it("does not bypass model-scoped cooldown when blockedUntil is active", () => {

268+

const now = Date.now();

269+

const store = makeStore({

270+

"google:default": {

271+

blockedUntil: now + 120_000,

272+

blockedReason: "subscription_limit",

273+

cooldownUntil: now + 60_000,

274+

cooldownReason: "timeout",

275+

cooldownModel: "gemini-3-flash-preview",

276+

},

277+

});

278+

expect(isProfileInCooldown(store, "google:default", now, "gemini-3.1-flash-lite")).toBe(true);

279+

});

229280

});

230281231282

describe("resolveProfilesUnavailableReason", () => {