Skip to content

Commit a82708c

Browse files
test: stabilize model directive auth status
1 parent 13a3f70 commit a82708c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/auto-reply/reply/directive-handling.model.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ vi.mock("../../agents/model-auth.js", () => {
117117
};
118118
});
119119

120+
vi.mock("../../agents/provider-auth-aliases.js", () => ({
121+
resolveProviderIdForAuth: (provider: string) => provider,
122+
}));
123+
120124
import { resolveAgentDir, resolveSessionAgentId } from "../../agents/agent-scope.js";
121125
import {
122126
clearRuntimeAuthProfileStoreSnapshots,
@@ -657,7 +661,7 @@ describe("/model chat UX", () => {
657661
expect(reply?.text).not.toContain("[openai] endpoint: default auth: missing");
658662
expect(reply?.text).toContain("via codex runtime / openai-codex");
659663
expect(reply?.text).toContain("openai-codex:patrick@example.test=OAuth");
660-
});
664+
}, 240_000);
661665

662666
it("keeps direct provider auth labels when OpenAI API key auth exists", async () => {
663667
setAuthProfiles({

0 commit comments

Comments
 (0)