You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement CTRL + L or similar commands to discard a prompt #3126
Currently if i have typed a long prompt and i want to cancel it, either i have to delete it manually or quit the process and start again. if i have had a long conversation closing the process leads to losing context.
I agree, Ctrl-C and/or Esc should clear the current prompt (and Ctrl-C should not exit, even with confirmation). For now, Ctrl-U will delete an entire line. Since a prompt is probably not that many lines, holding down Ctrl-U is not a terrible solution.
I agree, Ctrl-C and/or Esc should clear the current prompt (and Ctrl-C should not exit, even with confirmation). For now, Ctrl-U will delete an entire line. Since a prompt is probably not that many lines, holding down Ctrl-U is not a terrible solution.
Activity
rben01 commentedon Sep 3, 2025
I agree, Ctrl-C and/or Esc should clear the current prompt (and Ctrl-C should not exit, even with confirmation). For now, Ctrl-U will delete an entire line. Since a prompt is probably not that many lines, holding down Ctrl-U is not a terrible solution.
fathert0rque commentedon Sep 6, 2025
thank you
Clear non-empty prompts with ctrl + c (#3285)
Clear non-empty prompts with ctrl + c (openai#3285)
Clear non-empty prompts with ctrl + c (#3285)
Clear non-empty prompts with ctrl + c (openai#3285)
Clear non-empty prompts with ctrl + c (#3285)
Clear non-empty prompts with ctrl + c (openai#3285)
Clear non-empty prompts with ctrl + c (#3285)