pub fn set_persist_sink(sink: impl Fn(&str) + Send + Sync + 'static)
Register the shell’s persistent-log writer. First registration wins.