I had a similar issue and it was the pressuresensor/switch that goes in the A/C circuit, it was in bad shape so put the system in short. This sensor sends the signal to the ecu for compressor activation when system pressure is correct (is for compressor security, measures if R134a is enough). It seems when I applied brakes something happened in the interior and the compressor went off....

