There's a few instances where Claude Code will clear the terminal automatically and delete all scrollback.
- When resizing the terminal.
- With the
/clear command.
- When switching to detailed transcript.
None of these should clear the user's terminal scrollback.
If Claude Code needs more control of the terminal history it should operate in the alternate screen. Perhaps the alternate screen is only needed for the detailed transcript, I actually thought this was the way it worked originally, I don't know if it was changed at some point or I hallucinated it.
There's a few instances where Claude Code will clear the terminal automatically and delete all scrollback.
/clearcommand.None of these should clear the user's terminal scrollback.
If Claude Code needs more control of the terminal history it should operate in the alternate screen. Perhaps the alternate screen is only needed for the detailed transcript, I actually thought this was the way it worked originally, I don't know if it was changed at some point or I hallucinated it.