Skip to content

Commit 9a365a8

Browse files
committed
fix: Use userAgentAppId instead of customUserAgent for proper AWS SDK integration
- Change from customUserAgent to userAgentAppId with format 'RooCode#version' - This follows the exact pattern from the upstream Cline fix - Ensures proper user agent string formatting in CloudTrail logs
1 parent 227bac8 commit 9a365a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/providers/bedrock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export class AwsBedrockHandler extends BaseProvider implements SingleCompletionH
219219
this.costModelConfig = this.getModel()
220220

221221
const clientConfig: BedrockRuntimeClientConfig = {
222-
customUserAgent: `RooCode/${Package.version}`,
222+
userAgentAppId: `RooCode#${Package.version}`,
223223
region: this.options.awsRegion,
224224
// Add the endpoint configuration when specified and enabled
225225
...(this.options.awsBedrockEndpoint &&

0 commit comments

Comments
 (0)