[BUG] Stale TUI frame remains on screen after /exit until `clear`/`reset` (Konsole, xterm-256color)

Status Open
Reported on v2.1.241
Maintainer reply None cached
Activity 0 comments · opened Aug 23, 2026

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 running exit in the Claude Code CLI, the TUI's rendered screen stays visible and unresponsive to input, even though no claude process is still running. Running clear or reset in the terminal immediately fixes it, suggesting the alternate-screen-buffer restore sequence isn't being sent/processed on exit.

What Should Happen?

Terminal should return cleanly to the normal shell prompt on exit, with no leftover frame.

Error Messages/Logs

Steps to Reproduce

a. Run claude in Konsole
b. Interact normally, then run /exit
c. Observe the CLI's screen/UI remains rendered and inert
d. Run clear (or reset) — screen clears to normal prompt

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.241 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Xterm

Additional Information

_No response_

View original on GitHub ↗