[BUG]
Resolved 💬 3 comments Opened Feb 4, 2026 by jarfa Closed Feb 8, 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?
When Claude Code exits, the iTerm2 tab title remains set to "Claude Code ..." or whatever custom name was set via /rename.
What Should Happen?
The title should be cleared on exit to allow the shell to resume control, and to make my iTerm2 tabs names useful.
Error Messages/Logs
Steps to Reproduce
- Open a new iTerm2 tab (title shows "-zsh" or similar)
- Run claude
- Tab title changes to "Claude Code (claude)"
- Exit Claude Code with /exit or Ctrl+D
- Tab title still shows "Claude Code (...)" The text in the () might change as I use other programs, but "Claude Code (..." remains.
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.31 (Claude Code)
Platform
Google Vertex AI
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
<img width="1133" height="412" alt="Image" src="https://github.com/user-attachments/assets/98287f36-cebf-427e-9830-e91766d638bc" />
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗