Skip to main content

MAX_DIFF_CHARS

Constant MAX_DIFF_CHARS 

Source
pub const MAX_DIFF_CHARS: usize = 6000;
Expand description

Bound on the unified diff text appended to a tool result — a formatter that rewrites a huge file can’t blow the model’s context with a huge diff either (same bounded-annotation posture as crate::lsp’s diagnostics cap).