fix(agents): land #31007 from @HOYALIM

Co-authored-by: Ho Lim <subhoya@gmail.com>
This commit is contained in:
Peter Steinberger
2026-03-02 01:05:54 +00:00
parent 085c23ce5a
commit 250f9e15f5
3 changed files with 14 additions and 4 deletions

View File

@@ -461,6 +461,11 @@ describe("classifyFailoverReason", () => {
expect(classifyFailoverReason("invalid api key")).toBe("auth");
expect(classifyFailoverReason("no credentials found")).toBe("auth");
expect(classifyFailoverReason("no api key found")).toBe("auth");
expect(
classifyFailoverReason(
'No API key found for provider "openai". Auth store: /tmp/openclaw-agent-abc/auth-profiles.json (agentDir: /tmp/openclaw-agent-abc).',
),
).toBe("auth");
expect(classifyFailoverReason("You have insufficient permissions for this operation.")).toBe(
"auth",
);