/// Appends message to the list of messages while ensuring that consecutive
/// stdout messages are merged into one. This is the desired behavior since
/// two separate `print` calls appear identical to the user as a single `print`
/// call with the contents of both.
///
/// Returns true if a new message was added. False otherwise (i.e., the previous
/// message was updated).