feat: save prompt to history when cleared with Ctrl+C
When users press Ctrl+C to clear the input field, the current prompt is now saved to history before clearing. This allows users to navigate back to cleared prompts using arrow keys, preventing loss of work. Addresses #11489
A
Ariane Emory committed
738d6c889956ec9924f9537d703764f116990bc7
Parent: 2c82e6c