v2.1.84: TUI rendering artifacts remain in terminal after /exit
Resolved 💬 3 comments Opened Mar 26, 2026 by web-werkstatt Closed May 4, 2026
Description
After upgrading to Claude Code v2.1.84, exiting the interactive REPL with /exit leaves TUI rendering artifacts in the terminal. The autocomplete menu text, horizontal rules, and slash command descriptions bleed into the bash prompt.
This happens on every terminal (not SSH-specific):
- Linux terminal (direct)
- Linux → SSH → remote server
- Windows PowerShell → SSH → remote server
This did not happen in previous versions.
Steps to Reproduce
- Start
claudein any terminal - Type
/exitand press Enter - After Claude exits, the terminal shows leftover TUI text mixed with the bash prompt
Expected Behavior
Terminal should be clean after /exit - only the bash prompt should remain.
Actual Behavior
❯ /exitadmin@server:~$
────────────────────────────────
/exit Exit the REPL
/extra-usage Configure extra usage to keep working when limits are hit
/context Visualize current context usage as a colored grid
The autocomplete dropdown content remains visible and overlaps with the shell prompt.
Workaround
Wrapping claude in a bash function with tput reset:
claude() {
printf '\e[?1004l'
command claude "$@"
local exit_code=$?
printf '\e[?1004l'
printf '\e[0m'
tput reset 2>/dev/null
return $exit_code
}
This clears the screen after exit, which works but is not ideal.
Environment
- Claude Code: v2.1.84
- OS: Ubuntu 24.04.4 LTS / Debian 12
- Terminal: xterm-256color, Windows PowerShell
- Shell: bash
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗