diff --git a/crates/goose-cli/src/session/output.rs b/crates/goose-cli/src/session/output.rs index 87453cbbe777..8a26188b8b92 100644 --- a/crates/goose-cli/src/session/output.rs +++ b/crates/goose-cli/src/session/output.rs @@ -17,7 +17,6 @@ use std::cell::RefCell; use std::collections::HashMap; use std::io::{Error, IsTerminal, Write}; use std::path::Path; -use std::sync::LazyLock; use std::time::Duration; use super::streaming_buffer::MarkdownBuffer; @@ -446,12 +445,11 @@ pub fn goose_mode_message(text: &str) { println!("\n{}", style(text).yellow(),); } -static SHOW_THINKING: LazyLock = LazyLock::new(|| { - std::env::var("GOOSE_CLI_SHOW_THINKING").is_ok() && std::io::stdout().is_terminal() -}); - fn should_show_thinking() -> bool { - *SHOW_THINKING + Config::global() + .get_param::("GOOSE_CLI_SHOW_THINKING") + .unwrap_or(false) + && std::io::stdout().is_terminal() } fn render_thinking(text: &str, theme: Theme) {