Add setting to disable terminal tab title rewriting

Resolved 💬 3 comments Opened Mar 13, 2026 by faceleg Closed Mar 16, 2026

Description

Claude Code currently writes iTerm2/terminal tab title escape sequences (\e]0;) during sessions to reflect its current activity (e.g. "Claude Code (python)", "Claude Code (sourcekit-lsp)"). While informative, this overwrites any custom tab titles set by the user's shell (e.g. via precmd/preexec hooks) and cannot be suppressed through terminal emulator settings.

Request

Add a setting in ~/.claude/settings.json (e.g. "terminalTitleRewriting": false) to opt out of this behaviour entirely.

Use case

Users who manage tab titles via shell hooks or terminal profiles find Claude Code's title rewrites disruptive. There's no way to block escape-sequence-based title changes in iTerm2 without disabling all title setting globally, which breaks other tools.

Workaround today

None.

View original on GitHub ↗

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