@@ -450,7 +450,7 @@ describe("Codex auth context", () => {
450450 } ) ;
451451 let discoveries = 0 ;
452452 await expect ( resolveCodexAuthContext ( new Headers ( ) , config ( ) , "pool" , {
453- modelId : "gpt-5.6-sol " ,
453+ modelId : "gpt-5.5 " ,
454454 resolveCodexModelEntitlements : async ( ) => {
455455 discoveries += 1 ;
456456 throw new Error ( "must not run" ) ;
@@ -479,7 +479,7 @@ describe("Codex auth context", () => {
479479
480480 const exactContext = await resolveCodexAuthContext ( headers , cfg , "direct" , {
481481 accountId : "pool-a" ,
482- modelId : "gpt-5.6-sol " ,
482+ modelId : "gpt-5.5 " ,
483483 } ) ;
484484 expect ( exactContext ) . toMatchObject ( {
485485 kind : "pool" ,
@@ -493,7 +493,7 @@ describe("Codex auth context", () => {
493493 _codexAccountOverride : { accessToken : "fixed_pool_token" , chatgptAccountId : "fixed_pool_acc" } ,
494494 } ) ;
495495 expect ( cfg . activeCodexAccountId ) . toBe ( "pool-b" ) ;
496- await expect ( resolveCodexAuthContext ( headers , cfg , "pool" , { modelId : "gpt-5.6-sol " } ) )
496+ await expect ( resolveCodexAuthContext ( headers , cfg , "pool" , { modelId : "gpt-5.5 " } ) )
497497 . resolves . toMatchObject ( { kind : "pool" , accountId : "pool-b" } ) ;
498498 } ) ;
499499
@@ -706,15 +706,15 @@ describe("Codex auth context", () => {
706706
707707 // The pool path honors the order: pool-b outranks pool-a, so an unbound request
708708 // prefers pool-b.
709- await expect ( resolveCodexAuthContext ( new Headers ( ) , cfg , "pool" , { modelId : "gpt-5.6-sol " } ) )
709+ await expect ( resolveCodexAuthContext ( new Headers ( ) , cfg , "pool" , { modelId : "gpt-5.5 " } ) )
710710 . resolves . toMatchObject ( { kind : "pool" , accountId : "pool-b" } ) ;
711711
712712 // An exact selector names pool-a: it must resolve to pool-a even though pool-b is
713713 // ordered earlier. Selection order is a tiebreak inside the eligible pool, never a
714714 // way to redirect a request that already named its account.
715715 await expect ( resolveCodexAuthContext ( new Headers ( ) , cfg , "pool" , {
716716 accountId : "pool-a" ,
717- modelId : "gpt-5.6-sol " ,
717+ modelId : "gpt-5.5 " ,
718718 } ) ) . resolves . toMatchObject ( {
719719 kind : "pool" ,
720720 accountId : "pool-a" ,
@@ -735,7 +735,7 @@ describe("Codex auth context", () => {
735735
736736 await expect ( resolveCodexAuthContext ( new Headers ( ) , cfg , "pool" , {
737737 accountId : MAIN_CODEX_ACCOUNT_ID ,
738- modelId : "gpt-5.6-sol " ,
738+ modelId : "gpt-5.5 " ,
739739 } ) ) . resolves . toMatchObject ( {
740740 kind : "main-pool" ,
741741 accountId : MAIN_CODEX_ACCOUNT_ID ,
@@ -841,7 +841,7 @@ describe("Codex auth context", () => {
841841 expect ( isCodexAuthContextUsable ( captured , cfg ) ) . toBe ( true ) ;
842842 await expect ( resolveCodexAuthContext ( new Headers ( ) , cfg , "pool" , {
843843 accountId : "pool-a" ,
844- modelId : "gpt-5.6-sol " ,
844+ modelId : "gpt-5.5 " ,
845845 } ) ) . rejects . toThrow ( "Selected Codex account is unavailable" ) ;
846846 expect ( cfg . activeCodexAccountId ) . toBe ( "pool-a" ) ;
847847 await expect ( resolveCodexAuthContext ( new Headers ( ) , cfg , "pool" ) )
@@ -868,7 +868,7 @@ describe("Codex auth context", () => {
868868
869869 await expect ( resolveCodexAuthContext ( new Headers ( ) , cfg , "pool" , {
870870 accountId : "pool-a" ,
871- modelId : "gpt-5.6-sol " ,
871+ modelId : "gpt-5.5 " ,
872872 } ) ) . rejects . toThrow ( "Selected Codex account needs reauthentication" ) ;
873873 expect ( cfg . activeCodexAccountId ) . toBe ( "pool-b" ) ;
874874 } ) ;
@@ -885,7 +885,7 @@ describe("Codex auth context", () => {
885885
886886 await expect ( resolveCodexAuthContext ( new Headers ( ) , cfg , "pool" , {
887887 accountId : "pool-a" ,
888- modelId : "gpt-5.6-sol " ,
888+ modelId : "gpt-5.5 " ,
889889 } ) ) . rejects . toThrow ( "Selected Codex account is unavailable" ) ;
890890 expect ( cfg . activeCodexAccountId ) . toBe ( "pool-a" ) ;
891891 } ) ;
@@ -905,18 +905,18 @@ describe("Codex auth context", () => {
905905 recordCodexUpstreamOutcome ( cfg , "pool-a" , 429 , {
906906 resetAt : Math . floor ( ( now + 60 * 60_000 ) / 1_000 ) ,
907907 now,
908- modelId : "gpt-5.6-sol " ,
908+ modelId : "gpt-5.5 " ,
909909 fixedAccount : true ,
910910 } ) ;
911911 Date . now = ( ) => now + CODEX_QUOTA_PROBE_INTERVAL_MS ;
912912
913913 await expect ( resolveCodexAuthContext ( new Headers ( ) , cfg , "pool" , {
914914 accountId : "pool-a" ,
915- modelId : "gpt-5.6-sol " ,
915+ modelId : "gpt-5.5 " ,
916916 } ) ) . rejects . toBeInstanceOf ( CodexAccountCooldownError ) ;
917917
918918 const ordinaryProbe = await resolveCodexAuthContext ( new Headers ( ) , cfg , "pool" , {
919- modelId : "gpt-5.6-sol " ,
919+ modelId : "gpt-5.5 " ,
920920 } ) ;
921921 expect ( ordinaryProbe ) . toMatchObject ( { kind : "pool" , accountId : "pool-a" } ) ;
922922 expect ( ordinaryProbe . kind === "pool" ? ordinaryProbe . probeLeaseId : undefined ) . toBeTruthy ( ) ;
@@ -1079,20 +1079,20 @@ describe("Codex auth context", () => {
10791079 } ) ;
10801080
10811081 // Spark owns a separate quota, so Terra can use the same account.
1082- await expect ( resolveCodexAuthContext ( headers , cfg , "pool" , { modelId : "gpt-5.6-terra " } ) )
1082+ await expect ( resolveCodexAuthContext ( headers , cfg , "pool" , { modelId : "gpt-5.4 " } ) )
10831083 . resolves . toMatchObject ( { kind : "pool" , accountId : "pool-a" } ) ;
10841084 await expect ( resolveCodexAuthContext ( headers , cfg , "pool" , { modelId : "gpt-5.3-codex-spark" } ) )
10851085 . rejects . toBeInstanceOf ( CodexAccountCooldownError ) ;
10861086
10871087 recordCodexUpstreamOutcome ( cfg , "pool-a" , 429 , {
10881088 now,
10891089 resetAt,
1090- modelId : "gpt-5.6-terra " ,
1090+ modelId : "gpt-5.4 " ,
10911091 } ) ;
10921092
10931093 // Terra and Luna stay in the shared native quota group, while Spark keeps
10941094 // its independent cooldown instead of being overwritten by Terra's 429.
1095- await expect ( resolveCodexAuthContext ( headers , cfg , "pool" , { modelId : "gpt-5.6-luna " } ) )
1095+ await expect ( resolveCodexAuthContext ( headers , cfg , "pool" , { modelId : "gpt-5.4-mini " } ) )
10961096 . rejects . toBeInstanceOf ( CodexAccountCooldownError ) ;
10971097 await expect ( resolveCodexAuthContext ( headers , cfg , "pool" , { modelId : "gpt-5.3-codex-spark" } ) )
10981098 . rejects . toBeInstanceOf ( CodexAccountCooldownError ) ;
@@ -1104,7 +1104,7 @@ describe("Codex auth context", () => {
11041104 retryAfter : "60" ,
11051105 modelId : "gpt-5.3-codex-spark" ,
11061106 } ) ;
1107- await expect ( resolveCodexAuthContext ( headers , cfg , "pool" , { modelId : "gpt-5.6-terra " } ) )
1107+ await expect ( resolveCodexAuthContext ( headers , cfg , "pool" , { modelId : "gpt-5.4 " } ) )
11081108 . rejects . toBeInstanceOf ( CodexAccountCooldownError ) ;
11091109 } finally {
11101110 Date . now = originalNow ;
@@ -1137,7 +1137,7 @@ describe("Codex auth context", () => {
11371137 Date . now = ( ) => now ;
11381138 // Establish the shared-scope binding first. The Spark fallback below must
11391139 // create a second binding rather than replacing this one.
1140- await expect ( resolveCodexAuthContext ( headers , cfg , "pool" , { modelId : "gpt-5.6-terra " } ) )
1140+ await expect ( resolveCodexAuthContext ( headers , cfg , "pool" , { modelId : "gpt-5.4 " } ) )
11411141 . resolves . toMatchObject ( { kind : "pool" , accountId : "pool-a" } ) ;
11421142
11431143 recordCodexUpstreamOutcome ( cfg , "pool-a" , 429 , {
@@ -1149,7 +1149,7 @@ describe("Codex auth context", () => {
11491149 await expect ( resolveCodexAuthContext ( headers , cfg , "pool" , { modelId : "gpt-5.3-codex-spark" } ) )
11501150 . resolves . toMatchObject ( { kind : "pool" , accountId : "pool-b" } ) ;
11511151 expect ( cfg . activeCodexAccountId ) . toBe ( "pool-a" ) ;
1152- await expect ( resolveCodexAuthContext ( headers , cfg , "pool" , { modelId : "gpt-5.6-terra " } ) )
1152+ await expect ( resolveCodexAuthContext ( headers , cfg , "pool" , { modelId : "gpt-5.4 " } ) )
11531153 . resolves . toMatchObject ( { kind : "pool" , accountId : "pool-a" } ) ;
11541154 // This second Spark request proves routing retained the peer choice for
11551155 // the Spark affinity instead of relying on an auth-layer substitution.
@@ -1182,7 +1182,7 @@ describe("Codex auth context", () => {
11821182 recordCodexUpstreamOutcome ( cfg , "pool-a" , 429 , {
11831183 now,
11841184 resetAt,
1185- modelId : "gpt-5.6-terra " ,
1185+ modelId : "gpt-5.4 " ,
11861186 } ) ;
11871187
11881188 const probeAt = now + CODEX_QUOTA_PROBE_INTERVAL_MS ;
@@ -1205,7 +1205,7 @@ describe("Codex auth context", () => {
12051205 Date . now = ( ) => probeAt + 1 ;
12061206 await expect ( resolveCodexAuthContext ( headers , cfg , "pool" , { modelId : "gpt-5.3-codex-spark" } ) )
12071207 . resolves . toMatchObject ( { kind : "pool" , accountId : "pool-a" } ) ;
1208- await expect ( resolveCodexAuthContext ( headers , cfg , "pool" , { modelId : "gpt-5.6-luna " } ) )
1208+ await expect ( resolveCodexAuthContext ( headers , cfg , "pool" , { modelId : "gpt-5.4-mini " } ) )
12091209 . resolves . toMatchObject ( { kind : "pool" , probeQuotaScope : "shared" } ) ;
12101210 } finally {
12111211 Date . now = originalNow ;
0 commit comments