feat: Added new environment variable to force showing tool call logging when not in a tty

This commit is contained in:
Dark-Alex-17 committed 2026-09-08 16:47:40 -06:00
1 parent 6104a48e56
commit 695153f88e
2 files changed
+14 -2

No files matched your search

+6
View File
@@ -47,6 +47,12 @@ pub static CODE_BLOCK_RE: LazyLock<Regex> =
pub static THINK_TAG_RE: LazyLock<Regex> =
LazyLock::new(|| Regex::new(r"(?s)^\s*<think>.*?</think>(\s*|$)").unwrap());
pub static IS_STDOUT_TERMINAL: LazyLock<bool> = LazyLock::new(|| io::stdout().is_terminal());
pub static SHOW_TOOL_CALLS: LazyLock<bool> = LazyLock::new(|| {
env::var(get_env_name("show_tool_calls"))
.ok()
.and_then(|v| parse_bool(&v))
.unwrap_or_default()
});
pub static HEADLESS: AtomicBool = AtomicBool::new(false);
pub static ACP_SERVER: AtomicBool = AtomicBool::new(false);