Late-night talks dragged into the morning and lawyers took action minutes before they were due in the NSW Supreme Court.