Skip to main content

render_turn_json

Function render_turn_json 

Source
pub fn render_turn_json(session: &Session, i: usize) -> Option<Value>
Expand description

Render ONE turn’s full RETAINED text as JSON (schema TURN_SCHEMA) - the drill-down for session_window(id, turn=i). “Full” means untruncated by the window’s folding/cap; tool outputs are already capped at parse time, so this recovers folded-out lines, not adapter-dropped bulk. Bounded to TURN_TEXT_CAP chars for MCP transport; clipped and bytes report the true size. None if i is out of range.