@@ -182,7 +182,7 @@ describe("resolveApiKeyForProfile fallback to main agent", () => {
182182 }
183183
184184 it ( "falls back to main agent credentials when secondary agent token is expired and refresh fails" , async ( ) => {
185- const profileId = "anthropic:claude-cli " ;
185+ const profileId = "anthropic:default " ;
186186 const now = Date . now ( ) ;
187187 const expiredTime = now - 60 * 60 * 1000 ; // 1 hour ago
188188 const freshTime = now + 60 * 60 * 1000 ; // 1 hour from now
@@ -229,7 +229,7 @@ describe("resolveApiKeyForProfile fallback to main agent", () => {
229229 } ) ;
230230
231231 it ( "adopts newer OAuth token from main agent even when secondary token is still valid" , async ( ) => {
232- const profileId = "anthropic:claude-cli " ;
232+ const profileId = "anthropic:default " ;
233233 const now = Date . now ( ) ;
234234 const secondaryExpiry = now + 30 * 60 * 1000 ;
235235 const mainExpiry = now + 2 * 60 * 60 * 1000 ;
@@ -266,7 +266,7 @@ describe("resolveApiKeyForProfile fallback to main agent", () => {
266266 } ) ;
267267
268268 it ( "adopts main token when secondary expires is NaN/malformed" , async ( ) => {
269- const profileId = "anthropic:claude-cli " ;
269+ const profileId = "anthropic:default " ;
270270 const now = Date . now ( ) ;
271271 const mainExpiry = now + 2 * 60 * 60 * 1000 ;
272272
@@ -340,7 +340,7 @@ describe("resolveApiKeyForProfile fallback to main agent", () => {
340340 } ) ;
341341
342342 it ( "throws error when both secondary and main agent credentials are expired" , async ( ) => {
343- const profileId = "anthropic:claude-cli " ;
343+ const profileId = "anthropic:default " ;
344344 const now = Date . now ( ) ;
345345 const expiredTime = now - 60 * 60 * 1000 ; // 1 hour ago
346346
@@ -361,7 +361,7 @@ describe("resolveApiKeyForProfile fallback to main agent", () => {
361361 } ) ;
362362
363363 it ( "still falls back to main agent credentials when the refresh-token-reused retry throws" , async ( ) => {
364- const profileId = "anthropic:claude-cli " ;
364+ const profileId = "anthropic:default " ;
365365 const now = Date . now ( ) ;
366366 const expiredTime = now - 60 * 60 * 1000 ;
367367 const freshTime = now + 60 * 60 * 1000 ;
0 commit comments