As far as I've seen /clear is the same thing as starting a new session.
If you type /resume right after clear, the first thing in the list is the session you just cleared.
If you type /resume right after clear, the first thing in the list is the session you just cleared.
Some versions of Claude Code had memory leaks. Therefore or was better to exit Claude Code and start a new session rather than /clear.