[BUG] Slash command menu remnants persist in terminal after /exit
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?
After exiting Claude Code with /exit, the slash command autocomplete menu (showing /extra-usage, /context, /memory, /vim, /clear) remains rendered in the terminal. The menu visually overlaps with the shell prompt, appearing as a display artifact that doesn't clear on its own.
What Should Happen?
The terminal should be fully restored to a clean state after exiting Claude Code via /exit. No UI elements (such as the slash command autocomplete menu) should remain rendered on screen.
Error Messages/Logs
Steps to Reproduce
- Launch claude in terminal
- Type /exit to exit the REPL
- Observe the slash command dropdown menu remains visible below the shell prompt
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
v2.1.87
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
VS Code integrated terminal
Additional Information
<img width="831" height="149" alt="Image" src="https://github.com/user-attachments/assets/12913ccd-44ad-4b72-b033-9149493dc534" />
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗