Claude Code or Codex (normally) don’t close the terminal window after a turn ends, they wait for the user’s reply.