mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-01 09:39:53 +01:00
Classify prelaunch native artifact platform failures safely
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
f4f085b83d
commit
142fdf6847
2 files changed
+38
No files matched your search
@@ -6243,6 +6243,7 @@ export function nativeSessionFailureDisposition(
|
||||
sourceFailureCode === "native_provider_approval_required" ||
|
||||
sourceFailureCode === "native_event_replay_conflict" ||
|
||||
sourceFailureCode === "runner_remote_provider_artifact_incompatible" ||
|
||||
sourceFailureCode === "runner_remote_artifact_platform_mismatch" ||
|
||||
sourceFailureCode === "native_provider_terminal_failed" ||
|
||||
sourceFailureCode === "native_current_wake_comments_unread" ||
|
||||
sourceFailureCode === "native_current_wake_comments_changed_after_read" ||
|
||||
@@ -6299,6 +6300,7 @@ export function nativeSessionFailureSourceCode(
|
||||
| "native_session_cleanup_quarantined"
|
||||
| "native_adopted_runner_authentication_timeout"
|
||||
| "runner_remote_provider_artifact_incompatible"
|
||||
| "runner_remote_artifact_platform_mismatch"
|
||||
| "provider_process_exited"
|
||||
| "provider_stdout_closed"
|
||||
| "provider_process_output_closed"
|
||||
@@ -6339,6 +6341,9 @@ export function nativeSessionFailureSourceCode(
|
||||
if (/native_adopted_runner_authentication_timeout/i.test(message)) {
|
||||
return "native_adopted_runner_authentication_timeout";
|
||||
}
|
||||
if (/^runner_remote_artifact_platform_mismatch(?::|$)/.test(message)) {
|
||||
return "runner_remote_artifact_platform_mismatch";
|
||||
}
|
||||
if (/runner_remote_provider_artifact_incompatible/i.test(message)) {
|
||||
return "runner_remote_provider_artifact_incompatible";
|
||||
}
|
||||
@@ -6466,6 +6471,7 @@ export async function nativeProviderRecoveryEvidence(input: {
|
||||
ReturnType<typeof nativeSessionFailureSourceCode>
|
||||
>([
|
||||
"runner_remote_provider_artifact_incompatible",
|
||||
"runner_remote_artifact_platform_mismatch",
|
||||
"provider_process_exited",
|
||||
"provider_stdout_closed",
|
||||
"provider_process_output_closed",
|
||||
|
||||
Reference in new issue
Block a user