I agree with Martin that it may not be a client bug, but a server one.
Servers can act differently with different clients as each client doesn't do things 100% the same as another client, and the server has to deal with that. Could be the command line connection gets something in the server code one way like temporarily improves a value being held in server code. Difficult to say.
If anything, install an older version of WinSCP and check again, but even this could still mean the server is at fault if both versions do something that could be considered correct in either case. That's the real thing there. Which side is correct and which side isn't.
Servers can act differently with different clients as each client doesn't do things 100% the same as another client, and the server has to deal with that. Could be the command line connection gets something in the server code one way like temporarily improves a value being held in server code. Difficult to say.
If anything, install an older version of WinSCP and check again, but even this could still mean the server is at fault if both versions do something that could be considered correct in either case. That's the real thing there. Which side is correct and which side isn't.