@@ -969,6 +969,7 @@ extension UsageStore {
969969 let openAIDebugContext = self . openAIAPIKeyDebugContext ( processEnvironment: processEnvironment)
970970 let azureOpenAIDebugContext = self . azureOpenAIAPIKeyDebugContext ( processEnvironment: processEnvironment)
971971 let openRouterDebugContext = self . openRouterAPIKeyDebugContext ( processEnvironment: processEnvironment)
972+ let crossModelDebugContext = self . crossModelAPIKeyDebugContext ( processEnvironment: processEnvironment)
972973 let elevenLabsDebugContext = self . elevenLabsAPIKeyDebugContext ( processEnvironment: processEnvironment)
973974 let deepSeekHasEnvToken = DeepSeekSettingsReader . apiKey ( environment: processEnvironment) != nil
974975 let deepSeekHasTokenAccount = self . settings. selectedTokenAccount ( for: . deepseek) != nil
@@ -1070,10 +1071,7 @@ extension UsageStore {
10701071 case . openrouter:
10711072 return Self . apiKeyDebugLine ( openRouterDebugContext)
10721073 case . crossmodel:
1073- let resolution = ProviderTokenResolver . crossModelResolution ( )
1074- let hasAny = resolution != nil
1075- let source = resolution? . source. rawValue ?? " none "
1076- return " CROSSMODEL_API_KEY= \( hasAny ? " present " : " missing " ) source= \( source) "
1074+ return Self . apiKeyDebugLine ( crossModelDebugContext)
10771075 case . elevenlabs:
10781076 return Self . apiKeyDebugLine ( elevenLabsDebugContext)
10791077 case . warp:
@@ -1262,6 +1260,20 @@ extension UsageStore {
12621260 hasTokenAccount: false )
12631261 }
12641262
1263+ private func crossModelAPIKeyDebugContext( processEnvironment: [ String : String ] ) -> APIKeyDebugContext {
1264+ let config = self . settings. providerConfig ( for: . crossmodel)
1265+ let environment = ProviderConfigEnvironment . applyAPIKeyOverride (
1266+ base: processEnvironment,
1267+ provider: . crossmodel,
1268+ config: config)
1269+ return APIKeyDebugContext (
1270+ label: " CROSSMODEL_API_KEY " ,
1271+ resolution: ProviderTokenResolver . crossModelResolution ( environment: environment) ,
1272+ configToken: config? . sanitizedAPIKey,
1273+ hasEnvToken: CrossModelSettingsReader . apiToken ( environment: processEnvironment) != nil ,
1274+ hasTokenAccount: false )
1275+ }
1276+
12651277 private func elevenLabsAPIKeyDebugContext( processEnvironment: [ String : String ] ) -> APIKeyDebugContext {
12661278 let config = self . settings. providerConfig ( for: . elevenlabs)
12671279 let environment = ProviderConfigEnvironment . applyAPIKeyOverride (
0 commit comments