Skip to main content

PREVIEW_MAX_CHARS

Constant PREVIEW_MAX_CHARS 

Source
const PREVIEW_MAX_CHARS: usize = 200;
Expand description

Truncation length for a last_message_preview — keeps conversations’ response small even when the tail line is a long tool-call/result frame; this is a liveness-glance preview, not a transcript reader (that’s GetAgentTranscript/muxspect conversation <agent>’s job). Applied to BOTH the host-tier read (last_line_preview_and_activity) and the cross-channel forwarded read — codex P2 on PR #2715 caught the cross-channel path skipping this entirely, which let one huge remote tool-call/result line inflate an otherwise-bounded response.