PaulS:
You WILL have to disconnect the two Arduinos in order to upload code.
Couldn't you just hold the reset button on the Arduino you aren't trying to program? Doing that should hold that other Arduino in reset, which should tri-state (high impedance) it's TX/RX pins, effectively taking them out of the circuit
I haven't tried this mind you