test: cover sanitized qa missing-key replies

This commit is contained in:
Shakker
2026-04-08 20:41:19 +01:00
committed by Shakker
parent 4ad9f166e2
commit 7d818c32ba

View File

@@ -1084,7 +1084,7 @@ describe("runAgentTurnWithFallback", () => {
expect(result.kind).toBe("final");
if (result.kind === "final") {
expect(result.payload.text).toBe(
'⚠️ No API key found for provider "openai". You are authenticated with OpenAI Codex OAuth. Use openai-codex/gpt-5.4 (OAuth) or set OPENAI_API_KEY to use openai/gpt-5.4.',
"⚠️ Missing API key for OpenAI on the gateway. Use `openai-codex/gpt-5.4` for OAuth, or set `OPENAI_API_KEY`, then try again.",
);
}
});