[BUG] /compact and /clear commands clear terminal scrollback buffer, not just visible screen
Resolved 💬 3 comments Opened Sep 14, 2025 by vimalk78 Closed Sep 15, 2025
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
- Actual behavior: Complete terminal reset including scrollback buffer
- Terminal: WezTerm
What Should Happen?
- Expected behavior: Commands should only clear visible content, preserving scrollback history
Error Messages/Logs
Steps to Reproduce
run /clear or /compact in a wezterm terminal
Claude Model
Opus or Sonnet
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
1.0.113 (Claude Code)
Platform
Anthropic API
Operating System
Other Linux
Terminal/Shell
Other
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗