Skip to content

Commit bebf670

Browse files
committed
fix: align unknown cooldown expectations
1 parent e033dd5 commit bebf670

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ Docs: https://docs.openclaw.ai
105105
- Telegram/final preview cleanup follow-up: clear stale cleanup-retain state only for transient preview finals so archived-preview retains no longer leave a stale partial bubble beside a later fallback-sent final. (#41763) Thanks @obviyus.
106106
- Signal/config schema: accept `channels.signal.accountUuid` in strict config validation so loop-protection configs no longer fail with an unrecognized-key error. (#35578) Thanks @ingyukoh.
107107
- Telegram/config schema: accept `channels.telegram.actions.editMessage` and `createForumTopic` in strict config validation so existing Telegram action toggles no longer fail as unrecognized keys. (#35498) Thanks @ingyukoh.
108+
- Agents/cooldowns: default cooldown windows with no recorded failure history to `unknown` instead of `rate_limit`, avoiding false API rate-limit warnings while preserving cooldown recovery probes. (#42911) Thanks @VibhorGautam.
108109

109110
## 2026.3.8
110111

src/agents/model-fallback.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ describe("runWithModelFallback", () => {
555555
usageStat: {
556556
cooldownUntil: Date.now() + 5 * 60_000,
557557
},
558-
expectedReason: "rate_limit",
558+
expectedReason: "unknown",
559559
});
560560
});
561561

src/agents/pi-embedded-runner.run-embedded-pi-agent.auth-profile-rotation.e2e.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ describe("runEmbeddedPiAgent auth profile rotation", () => {
981981
}),
982982
).rejects.toMatchObject({
983983
name: "FailoverError",
984-
reason: "rate_limit",
984+
reason: "unknown",
985985
provider: "openai",
986986
model: "mock-1",
987987
});
@@ -1153,7 +1153,7 @@ describe("runEmbeddedPiAgent auth profile rotation", () => {
11531153
}),
11541154
).rejects.toMatchObject({
11551155
name: "FailoverError",
1156-
reason: "rate_limit",
1156+
reason: "unknown",
11571157
provider: "openai",
11581158
model: "mock-1",
11591159
});

0 commit comments

Comments
 (0)