From cdf91ea7985b31a20211667fb77bc7878a99acea Mon Sep 17 00:00:00 2001 From: Dale Lakes <6843636+spitfire55@users.noreply.github.com> Date: Thu, 26 Mar 2026 14:13:41 -0400 Subject: [PATCH] feat: allow GOOSE_CLI_SHOW_THINKING to be set in config.yaml (#8097) Signed-off-by: Dale Lakes <6843636+spitfire55@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) Co-authored-by: Douwe Osinga --- crates/goose-cli/src/session/output.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/crates/goose-cli/src/session/output.rs b/crates/goose-cli/src/session/output.rs index 119c217f78..b0c71e2b42 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; @@ -448,12 +447,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) {