[BUG] `-n` / `--name` flag does not update Windows Terminal tab title on Windows
Resolved 💬 5 comments Opened Mar 28, 2026 by GISirFive Closed Apr 27, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
The -n / --name flag is documented as setting "a display name for this session (shown in /resume and terminal title)". While the session name is correctly
saved and visible in /resume, the terminal tab title is not updated on Windows Terminal.
## Environment
- Claude Code version: 2.1.76
- OS: Windows 11 Pro 10.0.26200
- Terminal: Windows Terminal
- Shell: bash
What Should Happen?
## Expected Behavior
The Windows Terminal tab title should update to my-session-name (or include it), as documented.
## Actual Behavior
The terminal tab title stays as the default shell path.
Error Messages/Logs
Steps to Reproduce
## Steps to Reproduce
- Open Windows Terminal on Windows 11
- Run
claude -n my-session-name - Observe the terminal tab title — it remains unchanged (e.g.,
C:\WINDOWS\system32\cmd.exe)
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.76
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
- The
-nflag correctly sets the display name — it shows up in the/resumepicker. - The
titleCMD command (title my-session-name) does change the Windows Terminal tab title, but gets overwritten once Claude Code's interactive REPL starts,
suggesting Claude Code resets the terminal title on startup.
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗