* Determine whether an authentication_failed error came from the gh-aw API proxy after * partial execution, making a one-time fresh-run retry worthwhile. * @param {string} output * @param {boolean} hasOutput * @returns {boolean}
(output, hasOutput)
| 475 | * @returns {boolean} |
| 476 | */ |
| 477 | function isRetryableProxyAuthenticationFailure(output, hasOutput) { |
| 478 | if (!hasOutput || !isAuthenticationFailedError(output)) { |
| 479 | return false; |
| 480 | } |
| 481 | const authFailure = parseProviderAuthFailure(output); |
| 482 | return Boolean(authFailure && isLikelyAWFAPIProxyURL(authFailure.providerUrl)); |
| 483 | } |
| 484 | |
| 485 | /** |
| 486 | * Detect known Copilot error patterns for workflow outputs. |