codex icon indicating copy to clipboard operation
codex copied to clipboard

Feature Request: Add /clear command to clear screen

Open GavinRiver opened this issue 10 months ago • 1 comments

Summary

Currently, the /new command starts a fresh conversation but does not clear the terminal screen. The previous chat history remains visible, which can be visually cluttered.

Requested Feature

Add a /clear command (or enhance /new) to:

  1. Start a new conversation (current behavior)
  2. Clear the terminal screen (new behavior)

Comparison with Similar Tools

Tool Command Clears Screen New Session
Claude Code /clear ✅ Yes ✅ Yes
Codex CLI /new ❌ No ✅ Yes

Current Workaround

Users can manually press Ctrl+L after /new to clear the screen, but this requires two steps.

Suggested Implementation

Option A: Add a new /clear command that does both Option B: Add a --clear flag to /new (e.g., /new --clear) Option C: Make /new clear the screen by default


🤖 This issue was created with assistance from Claude Code

GavinRiver avatar Jan 16 '26 12:01 GavinRiver

Thanks for the suggestion. We're already tracking this feature request in #3259. Please upvote that issue.

etraut-openai avatar Jan 16 '26 17:01 etraut-openai