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
- Open Windows Terminal with Git Bash profile
- Navigate to a git repository
- Run
claude - Observe the tab title remains
C:\Windows\system32\cmd.exe
Notes
CLAUDE_CODE_DISABLE_TERMINAL_TITLE=1correctly prevents title changes (confirmed via changelog), suggesting the title-setting code path exists but doesn't work for Git Bash on Windows.- Custom
PROMPT_COMMANDin.bashrcsets the title correctly before and after Claude runs, but not during the Claude TUI session. - The status line (
statusLinein settings.json) displays correctly at the bottom of the screen.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗