diff --git a/cli/CHANGELOG.md b/cli/CHANGELOG.md index c7aa569..77766d6 100644 --- a/cli/CHANGELOG.md +++ b/cli/CHANGELOG.md @@ -22,6 +22,7 @@ ### Patch +- Fix clippy lints - Update dependencies - Support the new internal message timestamp logic - Fix bug where commands don't have time to terminate diff --git a/cli/src/cli/interact.rs b/cli/src/cli/interact.rs index 9ecfdd6..c7a70a3 100644 --- a/cli/src/cli/interact.rs +++ b/cli/src/cli/interact.rs @@ -182,17 +182,15 @@ impl Options { MessageType::Result if result.is_some() => log::warn!("multiple results"), MessageType::Result => result = Some(content), MessageType::Info => set_message(&progress, &content), - MessageType::Thinking => { - if config::SHOW_THINKING.get().await.0 { - let mut thinking = String::new(); - write!(thinking, "{}: ", "Thinking".bold().yellow()).unwrap(); - if let Some(title) = message.title { - let title = format!("[{title}]"); - write!(thinking, "{} ", title.bold().yellow()).unwrap(); - } - write!(thinking, "{}", content.trim_end().yellow()).unwrap(); - progress.println(thinking); + MessageType::Thinking if config::SHOW_THINKING.get().await.0 => { + let mut thinking = String::new(); + write!(thinking, "{}: ", "Thinking".bold().yellow()).unwrap(); + if let Some(title) = message.title { + let title = format!("[{title}]"); + write!(thinking, "{} ", title.bold().yellow()).unwrap(); } + write!(thinking, "{}", content.trim_end().yellow()).unwrap(); + progress.println(thinking); } MessageType::Error => { let mut error = String::new(); diff --git a/dist-workspace.toml b/dist-workspace.toml index 78acdc4..add649f 100644 --- a/dist-workspace.toml +++ b/dist-workspace.toml @@ -3,6 +3,8 @@ members = ["cargo:cli"] # Config for 'dist' [dist] +# Skip checking whether the specified configuration files are up to date +allow-dirty = ["ci"] # The preferred dist version to use in CI (Cargo.toml SemVer syntax) cargo-dist-version = "0.28.7-prerelease.1" # CI backends to support