How does that system work? What is the role of the president of France? What is the role of the prime minister of France? It is not easy to understand.
In theory, the president represents the country abroad and is responsible for foreign policy, and the prime minister is responsible for domestic policy. That's how it ended up working during the cohabitation periods.
In practice when the president also has support from the assembly, he is almost free to chose who he wants as prime minister and to dismiss him whenever he wants. So the prime minister is more likely to act like a subordinate, even on internal affairs.