Skip to content

Commit ce3cf04

Browse files
fix: add login check for sigv4 chat support (#323)
1 parent 430d380 commit ce3cf04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/q_cli/src/util/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ pub fn dialoguer_theme() -> ColorfulTheme {
291291
}
292292

293293
pub async fn assert_logged_in() -> Result<(), Error> {
294-
if !fig_util::system_info::in_cloudshell() && !fig_auth::is_logged_in().await {
294+
if !(std::env::var("AMAZON_Q_SIGV4").is_ok_and(|v| !v.is_empty()) || fig_auth::is_logged_in().await) {
295295
bail!(
296296
"You are not logged in, please log in with {}",
297297
format!("{CLI_BINARY_NAME} login",).bold()

0 commit comments

Comments
 (0)