Skip to main content

elision_marker

Function elision_marker 

Source
pub fn elision_marker(omitted: usize) -> String
Expand description

How an elided block announces itself (GH #1679).

The old marker was ... (N more lines), which reads as content: a caller could not tell it from a line the command actually printed. Worse, it was the only trace of the cut — the savings footer that would have announced it is hidden on the MCP path by default (SavingsFooter::Auto → invisible in an MCP context), which is the primary path. So a lossy result was indistinguishable from a complete one, with nothing to recover from.

This marker is unmistakably ours, and names the way back. raw=true is what the server instructions and every other compression annotation already point at, and unlike an archive handle it is always available — it does not depend on the response having been archived or on a hint tier being enabled.