fix(bedrock): add sts userAgentAppId (#7719)

This commit is contained in:
Jack Reinhardt authored and GitHub committed 2025-12-02 14:40:39 -08:00
1 parent 09692d7d3a
commit 3eac9b04de
2 files changed
+12 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"claude-dev": patch
---
Add sts client userAgentAppId
+7 -1
View File
@@ -104,6 +104,7 @@ interface CachePointContentBlock {
// Define provider options type based on AWS SDK patterns
interface ProviderChainOptions {
clientConfig?: { userAgentAppId?: string }
ignoreCache?: boolean
profile?: string
}
@@ -211,7 +212,12 @@ export class AwsBedrockHandler implements ApiHandler {
sessionToken?: string
}> {
// Configure provider options
const providerOptions: ProviderChainOptions = {}
const providerOptions: ProviderChainOptions = {
clientConfig: {
// set the inner sts client userAgentAppId
userAgentAppId: `cline#${ExtensionRegistryInfo.version}`,
},
}
const useProfile =
(this.options.awsAuthentication === undefined && this.options.awsUseProfile) ||
this.options.awsAuthentication === "profile"