Skip to main content

compact_tool_call_for_retention

Function compact_tool_call_for_retention 

Source
pub fn compact_tool_call_for_retention(body: &mut TranscriptBody) -> bool
Expand description

Reduce a tool call to what a reader still needs, once a verified checkpoint holds the whole of it.

Tool output is where a projection’s bytes are: on one measured session, 561 MB of 635 MiB. Behind a checkpoint nothing reads it — the checkpoint archive carries the complete transcript, and restoring it brings the output back — so what stays here is what the transcript still shows: which tool ran, on what, with what result, and how many lines each edit changed.

Returns whether anything changed, so a caller can skip the write.