You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log(`attempt ${attempt+1}: provider authentication failed after partial execution - will retry once as fresh run to avoid losing completed agent work`);
906
+
continue;
907
+
}
908
+
909
+
if(isAuthenticationFailed){
886
910
if(proxyAuthDiagnostic){
887
-
log(`attempt ${attempt+1}: ${proxyAuthDiagnostic} — not retrying (first-attempt auth failure is non-retryable)`);
911
+
log(`attempt ${attempt+1}: ${proxyAuthDiagnostic} — not retrying`);
888
912
}else{
889
-
log(`attempt ${attempt+1}: authentication failed — not retrying (first-attempt auth failure is non-retryable)`);
913
+
log(`attempt ${attempt+1}: authentication failed — not retrying`);
890
914
}
891
915
break;
892
916
}
893
917
894
918
if(hasNumerousPermissionDenied){
919
+
// If the agent already produced expected safe-outputs, the permission-denied
920
+
// signals are from optional/exploratory commands — not from the core task work.
921
+
// Suppress the terminal verdict and exit 0 to avoid a false-red run.
thrownewError(`Failed to capture ${phase} PR review state for #${pullRequestNumber}: ${getErrorMessage(error)} (non-transient)`,{cause: error});
130
+
thrownewError(`${ERR_API}: Failed to capture ${phase} PR review state for #${pullRequestNumber}: ${getErrorMessage(error)} (non-transient)`,{cause: error});
130
131
}
131
132
core.warning(`Failed to capture ${phase} PR review state for #${pullRequestNumber}: ${getErrorMessage(error)}. Continuing without execution-state metadata.`);
constmessage=`create-pull-request is disabled by runtime policy: ${policyVarName}=false. `+`Remove safe-outputs.create-pull-request or set ${policyVarName}=true.`;
70
+
logger.debugError(message);
71
+
thrownewError(message);
72
+
}
73
+
51
74
/**
52
75
* Delete the configuration file to ensure no secrets remain on disk.
53
76
* This should be called after the server has been configured and started.
@@ -71,4 +94,5 @@ function cleanupConfigFile(logger) {
0 commit comments