fix: align timeout cooldown behavior docs/tests (#22622) (thanks @vageeshkumar)

This commit is contained in:
Peter Steinberger
2026-02-22 15:33:40 +01:00
parent 71d0b86352
commit 3e2849c578
3 changed files with 23 additions and 5 deletions

View File

@@ -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(