diff --git a/server/src/__tests__/agent-harness-verification.test.ts b/server/src/__tests__/agent-harness-verification.test.ts index fc83b322dbc..31943b7003b 100644 --- a/server/src/__tests__/agent-harness-verification.test.ts +++ b/server/src/__tests__/agent-harness-verification.test.ts @@ -14,6 +14,9 @@ describe("saved harness verification", () => { ["opencode_command_unresolvable", "harness_command_unavailable"], ["opencode_cwd_invalid", "harness_cwd_invalid"], ["opencode_hello_probe_timed_out", "harness_probe_timed_out"], + ["codex_hello_probe_timeout", "harness_probe_timed_out"], + ["opencode_hello_probe_timeout", "harness_probe_timed_out"], + ["opencode_hello_probe_timeout_extra", "harness_test_failed"], ["opencode_hello_probe_unexpected_output", "harness_probe_unexpected_output"], ["private provider error", "harness_test_failed"], ])("classifies %s without keeping provider output", (checkCode, code) => { diff --git a/server/src/services/agent-harness-verification.ts b/server/src/services/agent-harness-verification.ts index 199d9fc6fd5..6bdc924c2f5 100644 --- a/server/src/services/agent-harness-verification.ts +++ b/server/src/services/agent-harness-verification.ts @@ -63,7 +63,7 @@ export function assertHarnessTestPassed(result: AdapterEnvironmentTestResult) { : has("_hello_probe_model_unavailable") || has("_model_invalid") ? "harness_model_unavailable" : has("_command_unresolvable") ? "harness_command_unavailable" : has("_cwd_invalid") ? "harness_cwd_invalid" - : has("_hello_probe_timed_out") ? "harness_probe_timed_out" + : has("_hello_probe_timed_out") || has("_hello_probe_timeout") ? "harness_probe_timed_out" : has("_hello_probe_unexpected_output") ? "harness_probe_unexpected_output" : "harness_test_failed"; throw Object.assign(new Error("The harness test failed"), { code });