[BUG] Stray 'PL' characters appended to resume UUID on exit (status line teardown)

Resolved 💬 6 comments Opened Mar 29, 2026 by shhac Closed May 22, 2026

What's Wrong?

When exiting Claude Code, the "Resume this session with:" message sometimes displays stray PL characters appended directly to the session UUID:

Resume this session with:
claude --resume 7da5cca0-9ad7-43e2-a549-c019621ea57ePL

The PL appears to be a leaked fragment from a terminal escape sequence related to the status line feature not being fully cleaned up on exit.

This is not 100% consistent — it happens frequently but not every single time.

What Should Happen?

The resume message should display only the clean UUID without any trailing characters:

claude --resume 7da5cca0-9ad7-43e2-a549-c019621ea57e

Steps to Reproduce

  1. Run claude in cmux (libghostty-based terminal)
  2. Have a conversation (status line is active/visible)
  3. Exit with /exit
  4. Observe PL appended to the resume UUID in the terminal output

Is this a regression?

I don't know — only noticed it recently on 2.1.83+.

Claude Code Version

2.1.83+ (currently on 2.1.87)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other — cmux (uses libghostty under the hood)

Additional Information

Possibly related to #39272 ("Terminal left in dirty state after every exit"), but that issue does not mention the specific PL characters on the resume message, so this may be a distinct symptom or a different code path.

Other related issues in the same "terminal cleanup on exit" family: #38761, #34970.

Screenshot

<img width="676" height="110" alt="Image" src="https://github.com/user-attachments/assets/2ba08746-2ac3-4e69-aeb3-6b68ca2fe0b9" />

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗