Feature: visual screen clear without resetting conversation context

Resolved 💬 3 comments Opened Apr 9, 2026 by greogory Closed May 23, 2026

Problem

There is no way to clear the visual display in Claude Code without destroying conversation context.

  • /clear wipes the entire conversation context and creates a new session
  • Ctrl+L is bound to chat:clearInput (clears the text input box only)
  • app:redraw redraws the TUI but doesn't clear scrollback
  • There is no keybinding or command for a visual-only screen reset

Expected Behavior

A command (e.g., /cls) or keybinding that:

  1. Clears the visible terminal / scrollback display
  2. Preserves the full conversation context and session
  3. Equivalent to the clear command in a normal terminal — cosmetic only

Why This Matters

Users accustomed to Ctrl+L or clear in terminal workflows instinctively reach for /clear when they want a clean screen, only to lose their entire conversation. This is a common footgun — multiple related issues exist:

  • #39975 (add /unclear to undo /clear)
  • #37451 (/clear semantics are misleading)
  • #31220 (/clear --keep-session)
  • #25734 (destructive default in plan mode)

A visual-only clear would eliminate this entire class of accidents.

Environment

  • Claude Code 2.1.97
  • Linux (CachyOS)
  • Terminal: Alacritty / kitty

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗