The prohibition of bishulei goyim applies even when a non-Jew cooks in a Jew’s house. As the Tosafot, the Mordechai, and the Beit Yosef record, Rabbeinu Avraham permitted this, but Rabbeinu Tam did not, and the poskim follow that the Sages made no such distinction.