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

Function shouldRetry

actions/setup/js/copilot_harness.test.cjs:240–245  ·  view source on GitHub ↗

* @param {{hasOutput: boolean, exitCode: number, output: string}} result * @param {number} attempt * @returns {boolean}

(result, attempt)

Source from the content-addressed store, hash-verified

238 * @returns {boolean}
239 */
240 function shouldRetry(result, attempt) {
241 if (result.exitCode === 0) return false;
242 if (hasNumerousPermissionDeniedIssues(result.output)) return false;
243 if (isCAPIQuotaExceededError(result.output)) return false;
244 return attempt < MAX_RETRIES && result.hasOutput;
245 }
246
247 /**
248 * @param {string} output

Callers 1

Tested by

no test coverage detected