Yup, that hall sensor looks properly located to me. If you look at the hinge bar just outboard of it you'll see it has a metal projection, pointing downwards. Under that you will just about be able to see the other hall sensor.
The photo of the cable is showing the lever depressing the bypass plunger. When the red ring is put back in it's normal position, that lever should be fully out to the right (in your photo). I can think of no way the cable can come out once it is properly located. So yet again, I hark back to the method with which the whole thing was relocated in the first place. Having publicised that he can do the job in 45 minutes, far faster than anyone else, and having done quite a few now myself, I suspect the whole thing is wrenched through as it is.
A more conscientious approach is to remove that cable and then refit once the motor is sitting neatly in position. This gives the opportunity to check the plunger is free to move and that the cable is not twisted.
I would suggest you follow that cable along the left side of the roof frame, where you will find a white plastic adjuster. Turn that until the lever sits fully to the right without any tension on it.
However, none of that solves your problem does it?
Now you have the roof fully down, does it go back up ok, at least to the point of latching? If it stops at the front again, check the locking hooks. Make sure they are aligned with the slots and not catching on the edge.