Harden provider diagnostics and tool failure handling

This commit is contained in:
Ryan Ward
2026-11-06 19:49:39 +00:00
parent 4b968f34f8
commit 38f1dcdef6
35 changed files with 1558 additions and 79 deletions
+2 -2
View File
@@ -484,9 +484,9 @@ fn map_completion_error(error: CompletionError) -> AgentError {
}
};
let mut mapped = AgentError::new(kind, error.to_string());
if is_authentication_failure {
if kind == AgentErrorKind::Authentication {
mapped.user_message = Some(
"AWS credentials for Bedrock are missing or expired. Refresh your AWS login and try again."
"Provider authentication failed. Check the credentials and access permissions for this connection, then try again."
.to_string(),
);
}