From 56f73ae08083c76c68295ebad0d9b0e7e29575bd Mon Sep 17 00:00:00 2001 From: joshavant <830519+joshavant@users.noreply.github.com> Date: Sun, 22 Feb 2026 15:56:33 -0800 Subject: [PATCH] Auth choice tests: assert env-backed keyRef persistence --- src/commands/auth-choice.apply.minimax.test.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/commands/auth-choice.apply.minimax.test.ts b/src/commands/auth-choice.apply.minimax.test.ts index 78ae5d5fa..533344c66 100644 --- a/src/commands/auth-choice.apply.minimax.test.ts +++ b/src/commands/auth-choice.apply.minimax.test.ts @@ -44,7 +44,7 @@ describe("applyAuthChoiceMiniMax", () => { async function readAuthProfiles(agentDir: string) { return await readAuthProfilesForAgent<{ - profiles?: Record; + profiles?: Record; }>(agentDir); } @@ -154,7 +154,10 @@ describe("applyAuthChoiceMiniMax", () => { expect(confirm).toHaveBeenCalled(); const parsed = await readAuthProfiles(agentDir); - expect(parsed.profiles?.["minimax-cn:default"]?.key).toBe("mm-env-token"); + expect(parsed.profiles?.["minimax-cn:default"]?.keyRef).toEqual({ + source: "env", + id: "MINIMAX_API_KEY", + }); }); it("uses minimax-api-lightning default model", async () => {