During the allocation time if first I set my sensors and my weapons and after I repair the ship, the sensor and weapons settings are lost. If now I push the End turn button I enter the combat phase without the proper settings.
I ran into the same issue before I figured it out. However, I would suggest disabling the allocation buttons until the repair phase is complete. It would give the appearance of a completely separate phase, and prevent the resetting of allocations from being misconstrued as a bug.
Believe it or not, that is another bug request I've made to the programmers, to put a freeze on being able to allocate until repairs are done, its another ticket pending, but hope to have it done by launch.
There is also a very rare occurrence when power is not saved during allocation if you run out of time. The game is supposed to save as-is whatever you have setup in the event of a time-out, not revert to the power settings of the previous round (or zero).