If you disconnect the TPS, then the ECU doesn't hacve a "throttle closed" signal, and idles up to match the reading it is getting from the AFM.
If you leave the AAC valve connected, then the ECU is going to continually adjust the AAC to maintain idle stability.
So, it makes sense to disconnect the AAC valve before you make any adjustments to it.