With Russia still seen as unlikely to stop fighting, the Ukrainian leader’s tone has shifted from upbeat to cautionary.