Terminal title escape sequence ignored - title locked to version number
Description
ANSI escape sequences to set terminal title (e.g., \033]0;CustomTitle\007) are ignored when running Claude Code. The terminal title remains locked to the Claude Code version number (e.g., "2.0.75").
Steps to Reproduce
- Open VS Code integrated terminal
- Run
claude --dangerously-skip-permissions - Ask Claude to rename the terminal:
echo -ne "\033]0;steve\007" - Observe terminal tab still shows "2.0.75"
Expected Behavior
Terminal title should change to "steve" (or whatever custom title is specified).
Actual Behavior
Terminal title remains "2.0.75" (the Claude Code version number). All Claude Code terminal sessions show the version number regardless of escape sequence attempts.
Environment
- Claude Code version: 2.0.75
- Terminal: VS Code integrated terminal (xterm-256color)
- OS: macOS (Darwin 24.6.0)
Screenshots
Multiple terminal tabs all showing "2.0.75" instead of custom titles:
- Terminal escape sequence executes without error but has no effect
- Appears Claude Code is programmatically setting/locking the terminal title
Use Case
Users configure CLAUDE.md with instructions to set descriptive terminal names for task context (e.g., "Claude: Fix auth bug", "Claude: Q4 metrics report"). This helps when running multiple Claude Code sessions simultaneously.
Suggested Fix
Either:
- Allow escape sequences from within Claude Code to override the title
- Add a configuration option to control terminal title behavior
- Don't set terminal title to version number, or set it once at startup and allow subsequent overrides
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗