MCPcopy Create free account
hub / github.com/github/gh-aw / isTokenPerMinuteRateLimitError

Function isTokenPerMinuteRateLimitError

actions/setup/js/codex_harness.cjs:117–119  ·  view source on GitHub ↗

* Determines if the collected output indicates OpenAI token-per-minute exhaustion. * This limit is workload-dependent and immediate fresh-run retries can consume * additional budget without making progress. * @param {string} output - Collected stdout+stderr from the process * @returns {boolean}

(output)

Source from the content-addressed store, hash-verified

115 * @returns {boolean}
116 */
117function isTokenPerMinuteRateLimitError(output) {
118 return TOKEN_PER_MIN_RATE_LIMIT_PATTERN.test(output);
119}
120
121/**
122 * Determines if the collected output contains an authentication failed error.

Callers 3

mainFunction · 0.85
shouldRetryFunction · 0.85

Calls

no outgoing calls

Tested by 1

shouldRetryFunction · 0.68