validate_channel

Function validate_channel 

Source
fn validate_channel(channel: &str) -> Result<(), SnapshotError>
Expand description

Reject channel names that would break the filename layout or escape the snapshots dir. Mirrors the reserved-name set in agentmux-common’s sanitize_channel_name, but operates on the already-resolved channel string this module receives via env.