@@ -154,12 +154,14 @@ describe("accounts edge branches", () => {
154154 email : "match@example.com" ,
155155 accessToken : "refreshed-access" ,
156156 expiresAt : now + 300_000 ,
157+ refreshToken : "refreshed-refresh" ,
157158 accountId : "account-from-cache" ,
158159 } ,
159160 {
160161 email : "expired@example.com" ,
161162 accessToken : "expired-access" ,
162163 expiresAt : now - 1 ,
164+ refreshToken : "expired-refresh-updated" ,
163165 accountId : "expired-id" ,
164166 } ,
165167 {
@@ -180,12 +182,15 @@ describe("accounts edge branches", () => {
180182 const snapshot = manager . getAccountsSnapshot ( ) ;
181183 const updated = snapshot [ 0 ] ;
182184 expect ( updated ?. access ) . toBe ( "refreshed-access" ) ;
185+ expect ( updated ?. refreshToken ) . toBe ( "refreshed-refresh" ) ;
183186 expect ( updated ?. accountId ) . toBe ( "account-from-cache" ) ;
184187 expect ( updated ?. accountIdSource ) . toBe ( "token" ) ;
185188
186189 const expired = snapshot [ 1 ] ;
187190 expect ( expired ?. access ) . toBe ( "existing-access" ) ;
188- expect ( expired ?. accountId ) . toBeUndefined ( ) ;
191+ expect ( expired ?. refreshToken ) . toBe ( "expired-refresh-updated" ) ;
192+ expect ( expired ?. accountId ) . toBe ( "expired-id" ) ;
193+ expect ( expired ?. accountIdSource ) . toBe ( "token" ) ;
189194 } ) ;
190195
191196 it ( "returns early when Codex CLI state has no usable cache entries" , async ( ) => {
0 commit comments