Some of Mozart's singers premiered arias he'd written in the small hours the night before.
There was one major 19th century composition - by Berlioz? - where the parts for the end of the piece hadn't all been copied when the premiere started. The publisher sent messengers on stage distributing sheets to the orchestra.