codex icon indicating copy to clipboard operation
codex copied to clipboard

Add /clear command to start a new chat AND clean up the terminal

Open davidsloiko opened this issue 1 year ago • 6 comments

What feature would you like to see?

I know about /new, but I personally use 'clear' in the terminal all the time, and using /clear just seems more natural. Also, /new doesn't clear the terminal and it ends up being messy - I would like for a /clear command to be added either alongside or in place of /new, and to function like in Claude Code. Since I believe /resume is already being developed, using /clear should obviously save the conversation so that it can be /resume'd later

Also, using /new right now takes a while as there's some weird delay, I'd like to see that fixed for a better experience

Are you interested in implementing this feature?

No response

Additional information

No response

davidsloiko avatar Sep 07 '25 01:09 davidsloiko

I'm trying out Codex CLI from Claude Code, and I keep accidentally typing /clear. 🙃

LandonSchropp avatar Dec 23 '25 06:12 LandonSchropp

Strongly requested

dwd898 avatar Jan 16 '26 17:01 dwd898

/clear is a better command.

zsh2401 avatar Feb 27 '26 06:02 zsh2401

/clear landed in v0.105.0

Is that what you're looking for?

lc0rp avatar Feb 28 '26 10:02 lc0rp

Yes, /clear is now supported. It clears the terminal and creates a new thread. If you want to clear the terminal without creating a new thread, you can use Ctrl+L.

etraut-openai avatar Feb 28 '26 21:02 etraut-openai

Wait but not in Codex for VSCode?

oliverw avatar Jul 08 '26 18:07 oliverw