That is one crazy hack! 

For those interested in the plumbing of the A/C there is information in this document. There is an additional schematic drawing here. Switching from cooling to heating is done by closing valve 10, flipping valve 11 (both in the gas circuit) and flipping the flap connected to 4 (in the air circuit).
It should really never flip between the two in auto, that would be very inefficient. I am sure there is a bit of hysteresis implemented. The compressor, unlike many in ICE's, is also of the modulating type, meaning it can be smoothly regulated instead of a crude on/off state.
For those interested in the plumbing of the A/C there is information in this document. There is an additional schematic drawing here. Switching from cooling to heating is done by closing valve 10, flipping valve 11 (both in the gas circuit) and flipping the flap connected to 4 (in the air circuit).
It should really never flip between the two in auto, that would be very inefficient. I am sure there is a bit of hysteresis implemented. The compressor, unlike many in ICE's, is also of the modulating type, meaning it can be smoothly regulated instead of a crude on/off state.