From 3a5b81edd678b943ccd1d261a6ad88ee19f8c4d1 Mon Sep 17 00:00:00 2001 From: bitkyc08-arch Date: Wed, 26 Aug 2026 00:19:47 +0900 Subject: [PATCH] test(codex): grant the gated 5.6 roster to the candidate-scope preview cases #2550 made gpt-5.6-* account-gated and fails closed when the entitlement snapshot has no roster for an account. Two preview cases added by #2515 bind on gpt-5.6-sol without installing a roster mock, so on dev they now throw CodexPoolAuthenticationError. Both PRs were green in isolation; the conflict is semantic and only appears once both are on dev. Grants the same roster the neighbouring preview cases already install. --- tests/subagent-fallback-handle-responses.test.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/subagent-fallback-handle-responses.test.ts b/tests/subagent-fallback-handle-responses.test.ts index e3a42b4db1..001d182a19 100644 --- a/tests/subagent-fallback-handle-responses.test.ts +++ b/tests/subagent-fallback-handle-responses.test.ts @@ -843,6 +843,12 @@ describe("native fallback account preview", () => { const now = cooldownAt + CODEX_QUOTA_PROBE_INTERVAL_MS + 1; Date.now = () => now; installPoolCredential("pool-a", "pool_acc_a", now); + // This case binds on gpt-5.6-sol, which is account-gated: without a roster the + // entitlement snapshot fails closed and no account is eligible (#2550). + installCodexRosterMock({ + pool_acc_a: GPT56_NATIVE_MODELS, + pool_acc_b: GPT56_NATIVE_MODELS, + }); installPoolCredential("pool-b", "pool_acc_b", now); const cfg = poolNativePlusRoutedConfig({ activeCodexAccountId: "pool-a", @@ -910,6 +916,11 @@ describe("native fallback account preview", () => { let currentNow = now; Date.now = () => currentNow; installPoolCredential("pool-a", "pool_acc_a", now); + // Same account-gated binding as above: grant the roster to both pool accounts. + installCodexRosterMock({ + pool_acc_a: GPT56_NATIVE_MODELS, + pool_acc_b: GPT56_NATIVE_MODELS, + }); installPoolCredential("pool-b", "pool_acc_b", now); const cfg = poolNativePlusRoutedConfig({ defaultProvider: "xai",