diff --git a/src/lib/actions/sandbox/doctor-inference.test.ts b/src/lib/actions/sandbox/doctor-inference.test.ts index beb553246d..570f3bbce2 100644 --- a/src/lib/actions/sandbox/doctor-inference.test.ts +++ b/src/lib/actions/sandbox/doctor-inference.test.ts @@ -91,6 +91,21 @@ describe("doctor inference checks", () => { ); }); + it.each([ + ["nvidia-prod", "unknown"], + ["unknown", "nvidia/nemotron"], + ] as const)("warns with recovery guidance when only %s / %s resolves", async (provider, model) => { + const checks = await collectInferenceChecks("alpha", { provider, model }, false, { + probeProviderHealthImpl: () => null, + }); + + expect(checks.find((check) => check.label === "Route")).toMatchObject({ + label: "Route", + status: "warn", + hint: "run `nemoclaw alpha status` after the gateway is healthy", + }); + }); + it("makes a broken inference.local route authoritative over a healthy upstream (#6192)", async () => { const checks = await collectInferenceChecks( "alpha",