@@ -826,12 +826,14 @@ describe("claude oauth request shaping", () => {
826826 const h = seen . opts . headers ;
827827 assert . equal ( h [ "X-App" ] , "cli" ) ;
828828 assert . ok ( String ( h [ "User-Agent" ] ) . startsWith ( "claude-cli/" ) ) ;
829+ assert . ok ( String ( h [ "User-Agent" ] ) . includes ( "2.1.251" ) , "new Claude models require the current supported CLI fingerprint" ) ;
829830 assert . ok ( String ( h [ "User-Agent" ] ) . includes ( "(external, cli)" ) ) ;
830831 assert . ok ( h [ "X-Stainless-Os" ] ) ;
831832 assert . ok ( h [ "X-Claude-Code-Session-Id" ] ) ;
832833 assert . ok ( String ( h [ "Anthropic-Beta" ] ) . includes ( "oauth-2025-04-20" ) ) ;
833834 const body = JSON . parse ( seen . opts . body ) ;
834835 assert . ok ( body . system ?. [ 0 ] ?. text ?. startsWith ( "x-anthropic-billing-header:" ) ) ;
836+ assert . ok ( body . system [ 0 ] . text . includes ( "cc_version=2.1.251." ) ) ;
835837 assert . equal ( body . system . length , 3 ) ;
836838 assert . ok ( body . metadata ?. user_id ) ;
837839 } ) ;
@@ -1291,7 +1293,7 @@ describe("requested OAuth model catalogs", () => {
12911293 ) ;
12921294 assert . deepEqual (
12931295 OAUTH . claude . models . map ( ( model ) => model . id ) ,
1294- [ "claude-fable-5" , "claude-sonnet-5" , "claude-opus-4-8" , "claude-opus-4-7" , "claude-haiku-4-5-20251001" ]
1296+ [ "claude-fable-5-1" , "claude-fable-5 ", "claude-sonnet-5" , "claude-opus-4-8" , "claude-opus-4-7" , "claude-haiku-4-5-20251001" ]
12951297 ) ;
12961298 assert . deepEqual (
12971299 OAUTH . antigravity . models . map ( ( model ) => model . id ) ,
0 commit comments