Clearer error messages for Bedrock provider when AWS_Profile is invalid while working with a remote SSH workspace #1610
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
When using the Bedrock provider, and using the AWS Profile method of authentication (vs the AWS Credentials method), if the provided profile is missing, the Roo interface will provide a generic API error. This was particularly problematic (confusing) when opening a Visual Studio remote workspace via SSH. See issue #1600 for more details.
This change adds better error checking and corresponding error details in the UI to make it easier to identify the problem in this scenario.
Implementation
Roo helped me put this togeter :-) But at a high level, we check for the conditions of using the Bedrock provider and the AWS Profile method and when those conditions are true, check to make sure that the specified AWS profile exists in the context of the workspace, and provide an appropriate detailed error message when the necessary conditions are not met.
Screenshots
How to Test
Get in Touch
shyamhabarakada_05400on Roo Code DiscordImportant
Improves error handling for AWS profile issues in remote SSH contexts in the Bedrock provider, adding detailed error messages and utility functions.
AwsBedrockHandlerfor missing AWS profiles in remote SSH contexts, providing detailed error messages.doesAwsProfileExist()and shows error usingshowRemoteProfileError().isRemoteSSH(),doesAwsProfileExist(),showRemoteProfileError(), andgetDetailedRemoteProfileErrorMessage()inprofile-utils.ts.bedrock-remote-ssh.test.tsforAwsBedrockHandlerto verify error handling.profile-utils.test.tsfor new utility functions.This description was created by
for 5b32e94575f6303583e7d77ab4d870e83724e7bd. It will automatically update as commits are pushed.