Under the hood
Rejecting a tool prompt now runs extra UI cleanup before exiting, only at a real terminal.
When a tool permission prompt is rejected at a terminal that isn't suppressing TTY output, Claude Code now runs additional UI cleanup/paint calls before exiting, but only when process.stderr.isTTY is true and a separate condition is false.