mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 01:48:28 +00:00
fix: align timeout cooldown behavior docs/tests (#22622) (thanks @vageeshkumar)
This commit is contained in:
@@ -949,8 +949,8 @@ export async function runEmbeddedPiAgent(
|
||||
);
|
||||
}
|
||||
|
||||
// Treat timeout as potential rate limit (Antigravity hangs on rate limit)
|
||||
// But exclude post-prompt compaction timeouts (model succeeded; no profile issue)
|
||||
// Rotate on timeout to try another account/model path in this turn,
|
||||
// but exclude post-prompt compaction timeouts (model succeeded; no profile issue).
|
||||
const shouldRotate =
|
||||
(!aborted && failoverFailure) || (timedOut && !timedOutDuringCompaction);
|
||||
|
||||
@@ -973,9 +973,7 @@ export async function runEmbeddedPiAgent(
|
||||
});
|
||||
}
|
||||
if (timedOut && !isProbeSession) {
|
||||
log.warn(
|
||||
`Profile ${lastProfileId} timed out (possible rate limit). Trying next account...`,
|
||||
);
|
||||
log.warn(`Profile ${lastProfileId} timed out. Trying next account...`);
|
||||
}
|
||||
if (cloudCodeAssistFormatError) {
|
||||
log.warn(
|
||||
|
||||
Reference in New Issue
Block a user