Skip to main content

should_pass_through

Function should_pass_through 

Source
pub fn should_pass_through() -> bool
Expand description

True when lean-ctx -c / -t must avoid owning compression itself: either a parent lean-ctx already owns this command tree (WRAP_MARKER) or compression is globally disabled (LEAN_CTX_DISABLED).

Deliberately does not consult LEAN_CTX_ACTIVE: that flag is only a shell-hook re-entry guard, and an agent’s top-level process can inherit it, which previously suppressed compression for every command it ran (#533).