Terminal tab title not set when running in Git Bash (MINGW64) on Windows

Resolved 💬 2 comments Opened Apr 9, 2026 by tianpomin Closed Apr 9, 2026

Environment

  • OS: Windows 11 Pro (10.0.26200)
  • Terminal: Windows Terminal
  • Shell: Git Bash (MINGW64)
  • Claude Code: v2.1.97

Problem

When running Claude Code in Git Bash on Windows Terminal, the terminal tab title is never updated. It remains as the default C:\Windows\system32\cmd.exe throughout the entire session.

The bottom status line works correctly and shows project_name (branch_name), but the terminal tab title is not set at all.

Expected behavior

The terminal tab title should be updated to reflect the current project/session info (similar to what the status line shows), so users can distinguish between multiple Claude Code sessions in different tabs.

Steps to reproduce

  1. Open Windows Terminal with Git Bash profile
  2. Navigate to a git repository
  3. Run claude
  4. Observe the tab title remains C:\Windows\system32\cmd.exe

Notes

  • CLAUDE_CODE_DISABLE_TERMINAL_TITLE=1 correctly prevents title changes (confirmed via changelog), suggesting the title-setting code path exists but doesn't work for Git Bash on Windows.
  • Custom PROMPT_COMMAND in .bashrc sets the title correctly before and after Claude runs, but not during the Claude TUI session.
  • The status line (statusLine in settings.json) displays correctly at the bottom of the screen.

View original on GitHub ↗

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