fix: Double input on arrow keys in AI setup prompt on Windows (#3552)