Terminal title escape sequence ignored - title locked to version number

Resolved 💬 3 comments Opened Dec 22, 2025 by avinden Closed Dec 22, 2025

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

  1. Open VS Code integrated terminal
  2. Run claude --dangerously-skip-permissions
  3. Ask Claude to rename the terminal: echo -ne "\033]0;steve\007"
  4. 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:

  1. Allow escape sequences from within Claude Code to override the title
  2. Add a configuration option to control terminal title behavior
  3. Don't set terminal title to version number, or set it once at startup and allow subsequent overrides

View original on GitHub ↗

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