Skip to main content

should_protect

Function should_protect 

Source
pub fn should_protect(kind: ToolResultKind, content: &str) -> bool
Expand description

Whether a tool_result with the given resolved kind and content must be preserved intact (never lossy-compressed) by the proxy.

File reads are always protected; unknown tools are protected only when the content heuristically looks like source code. Shell/search output is never protected here — it flows through the normal pattern compressors.