feat: Added new environment variable to force showing tool call logging when not in a tty
This commit is contained in:
2 files changed
+14
-2
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user