As far as we know, ATC never gave permission to climb, so the aircraft was still at 32,000 feet, until whatever happened, happened.
That's not correct. Per official briefing, the flight requested (and was granted) permission from Jakarta center to deviate left and climb to FL380.