Why does cursor keep creating new terminal windows all the time

i just want it to work in 1 window. at the end of a few prompts im stuck closing 4-5 terminal windows with servers running on different ports. anyone else has this or knows a fix?