diff --git a/koboldcpp.py b/koboldcpp.py index fbc2f0d79..63f3764df 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -11504,6 +11504,11 @@ def main(launch_args, default_args): else: exitcounter = 999 exit_with_error(2,"Specified kcpp config file invalid or not found.") + + # --port only sets args.port, but the GUI tracks port_param, so mirror it there before convert_invalid_args syncs the two + if args.port != defaultport: + args.port_param = args.port + args = convert_invalid_args(args) #positional handling for kcpps files (drag and drop)