Today I used some tiny bits of wire to clean up the mess on my breadboard. It’s now quite lovely:
I also spent a few days troubleshooting this new circuit, since the solenoid was always activated. After some tests, it turned out to be a bad MOSFET (and a bad replacement one, too). They were failing the most basic test and passing current between the gate and source.