[BUG] Claude Code changes the window title and never changes it back

Resolved 💬 5 comments Opened Nov 24, 2025 by clarkep Closed Jan 31, 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?

On Linux and Claude Code 2.0.50, when first prompted Claude Code changes the terminal's window title(with OSC 0 or equivalent) to a generated session name like * Code Issue. It does not restore the original title on /exit as would be expected.

What Should Happen?

Either don't change the window title at all, or change it back after the session exits.

Error Messages/Logs

Steps to Reproduce

  1. Open a Claude Code sesion.
  2. Enter a prompt: "I have an issue with my code."
  3. Exit the session /exit

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.0.50

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Other

Additional Information

<img width="1588" height="1393" alt="Image" src="https://github.com/user-attachments/assets/b03b13ab-8733-414d-8405-9d4049844953" />
I had a session where it vehemently denied ever doing this, but I couldn't get a good screenshot.

View original on GitHub ↗

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