Hi, I deleted the default server definition (127.0.0.1) in right side panel of the terminal tab, then tried to recreate it using a custom port (say 1234). Then, aaPanel named it "127.0.0.1_1234" doing aaPanel is unable to start a default session automatically when I reached the terminal tab (just displayed "Try to reconnect" in a loop). So, I had to rename the file by hand like this: mv /www/server/panel/config/ssh_info/127.0.0.1_1234 127.0.0.1 and it worked again.
So, my suggestion would be to allow to freely name and rename the server definitions (because "<ip>_<port>" is not always relevant) and just name it "127.0.0.1" whatever the port when it's the first one in the list (I mean, when the list is empty before it).
Kind regards >^.^<