/clear command resets session color and name

Resolved 💬 3 comments Opened Apr 5, 2026 by vinimac83 Closed Apr 5, 2026

Description

When using the /clear command to clear the conversation context, it also resets the session's color and name. These visual identifiers should persist across clears since they help distinguish between multiple sessions.

Steps to Reproduce

  1. Open a Claude Code session
  2. Set a session name and/or note the assigned session color
  3. Run /clear
  4. Observe that the session color and name are gone

Expected Behavior

/clear should only reset the conversation context/messages, preserving session metadata like:

  • Session name
  • Session color

Actual Behavior

Both the session name and color are lost after running /clear.

Environment

  • Claude Code CLI (latest version)
  • macOS

View original on GitHub ↗

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